]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gdl-1.0: update to 2.30.0
authorNicolas Joseph <nicolas.joseph@valaide.org>
Sun, 16 May 2010 02:50:10 +0000 (19:50 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Sun, 16 May 2010 02:50:10 +0000 (19:50 -0700)
Fixes bug 615397.

vapi/gdl-1.0.vapi
vapi/packages/gdl-1.0/gdl-1.0-custom.vala [new file with mode: 0644]
vapi/packages/gdl-1.0/gdl-1.0.gi

index 3b30d7eb2303765423f93cc516dc93a947084c5e..767d689fdcb4da2a34beac387ad861e54dfe24d6 100644 (file)
@@ -3,7 +3,7 @@
 [CCode (cprefix = "Gdl", lower_case_cprefix = "gdl_")]
 namespace Gdl {
        [CCode (cheader_filename = "gdl/gdl.h")]
-       public class Dock : Gdl.DockObject, Gtk.Buildable, Atk.Implementor {
+       public class Dock : Gdl.DockObject, Atk.Implementor, Gtk.Buildable {
                public weak Gdl.DockObject root;
                [CCode (type = "GtkWidget*", has_construct_function = false)]
                public Dock ();
@@ -31,7 +31,7 @@ namespace Gdl {
                public virtual signal void layout_changed ();
        }
        [CCode (cheader_filename = "gdl/gdl.h")]
-       public class DockBar : Gtk.Box, Gtk.Buildable, Atk.Implementor, Gtk.Orientable {
+       public class DockBar : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
                public weak Gdl.Dock dock;
                [CCode (type = "GtkWidget*", has_construct_function = false)]
                public DockBar (Gdl.Dock dock);
@@ -45,7 +45,7 @@ namespace Gdl {
                public Gdl.DockMaster master { owned get; set; }
        }
        [CCode (cheader_filename = "gdl/gdl.h")]
-       public class DockItem : Gdl.DockObject, Gtk.Buildable, Atk.Implementor {
+       public class DockItem : Gdl.DockObject, Atk.Implementor, Gtk.Buildable {
                public weak Gtk.Widget child;
                public int dragoff_x;
                public int dragoff_y;
@@ -59,6 +59,7 @@ namespace Gdl {
                public void hide_item ();
                public void iconify_item ();
                public void @lock ();
+               public void notify_selected ();
                public void preferred_size (Gtk.Requisition req);
                public void set_default_position (Gdl.DockObject reference);
                public virtual void set_orientation (Gtk.Orientation orientation);
@@ -84,9 +85,10 @@ namespace Gdl {
                public virtual signal void dock_drag_begin ();
                public virtual signal void dock_drag_end (bool cancelled);
                public virtual signal void dock_drag_motion (int x, int y);
+               public virtual signal void selected ();
        }
        [CCode (cheader_filename = "gdl/gdl.h")]
-       public class DockItemGrip : Gtk.Container, Gtk.Buildable, Atk.Implementor {
+       public class DockItemGrip : Gtk.Container, Atk.Implementor, Gtk.Buildable {
                public weak Gdk.Window title_window;
                [CCode (type = "GtkWidget*", has_construct_function = false)]
                public DockItemGrip (Gdl.DockItem item);
@@ -138,7 +140,7 @@ namespace Gdl {
                public virtual signal void layout_changed ();
        }
        [CCode (cheader_filename = "gdl/gdl.h")]
-       public class DockObject : Gtk.Container, Gtk.Buildable, Atk.Implementor {
+       public class DockObject : Gtk.Container, Atk.Implementor, Gtk.Buildable {
                public Gdl.DockObjectFlags flags;
                public int freeze_count;
                public bool reduce_pending;
@@ -150,8 +152,22 @@ namespace Gdl {
                public void freeze ();
                public unowned Gdl.DockObject get_parent_object ();
                public unowned Gdl.Dock get_toplevel ();
+               [CCode (cname = "GDL_DOCK_OBJECT_ATTACHED")]
+               public bool is_attached ();
+               [CCode (cname = "GDL_DOCK_OBJECT_AUTOMATIC")]
+               public bool is_automatic ();
                public bool is_bound ();
                public bool is_compound ();
+               [CCode (cname = "GDL_DOCK_OBJECT_FROZEN")]
+               public bool is_frozen ();
+               [CCode (cname = "GDL_DOCK_OBJECT_IN_DETACH")]
+               public bool is_in_detach ();
+               [CCode (cname = "GDL_DOCK_OBJECT_IN_REFLOW")]
+               public bool is_in_reflow ();
+               [CCode (cname = "GDL_DOCK_OBJECT_SET_FLAGS")]
+               public bool is_set_flags (Gdl.DockObjectFlags flags);
+               [CCode (cname = "GDL_DOCK_OBJECT_UNSET_FLAGS")]
+               public bool is_unset_flags (Gdl.DockObjectFlags flags);
                public static unowned string nick_from_type (GLib.Type type);
                public virtual void present (Gdl.DockObject child);
                public virtual void reduce ();
@@ -172,7 +188,7 @@ namespace Gdl {
                public virtual signal void docked (Gdl.DockObject requestor, Gdl.DockPlacement position, GLib.Value other_data);
        }
        [CCode (cheader_filename = "gdl/gdl.h")]
-       public class DockPlaceholder : Gdl.DockObject, Gtk.Buildable, Atk.Implementor {
+       public class DockPlaceholder : Gdl.DockObject, Atk.Implementor, Gtk.Buildable {
                [CCode (type = "GtkWidget*", has_construct_function = false)]
                public DockPlaceholder (string name, Gdl.DockObject object, Gdl.DockPlacement position, bool sticky);
                public void attach (Gdl.DockObject object);
diff --git a/vapi/packages/gdl-1.0/gdl-1.0-custom.vala b/vapi/packages/gdl-1.0/gdl-1.0-custom.vala
new file mode 100644 (file)
index 0000000..fc15645
--- /dev/null
@@ -0,0 +1,21 @@
+namespace Gdl
+{
+  public class DockObject
+  {
+    [CCode (cname = "GDL_DOCK_OBJECT_AUTOMATIC")]
+    public bool is_automatic ();
+    [CCode (cname = "GDL_DOCK_OBJECT_ATTACHED")]
+    public bool is_attached ();
+    [CCode (cname = "GDL_DOCK_OBJECT_IN_REFLOW")]
+    public bool is_in_reflow ();
+    [CCode (cname = "GDL_DOCK_OBJECT_IN_DETACH")]
+    public bool is_in_detach ();
+    [CCode (cname = "GDL_DOCK_OBJECT_SET_FLAGS")]
+    public bool is_set_flags (DockObjectFlags flags);
+    [CCode (cname = "GDL_DOCK_OBJECT_UNSET_FLAGS")]
+    public bool is_unset_flags (DockObjectFlags flags);
+    [CCode (cname = "GDL_DOCK_OBJECT_FROZEN")]
+    public bool is_frozen ();
+  }
+}
+
index b92f169b4336e1b70cfed733da82ae31a66238f2..57ead031ad2de1770d45dd166639f8e1468f5d79 100644 (file)
@@ -69,8 +69,8 @@
                </flags>
                <object name="GdlDock" parent="GdlDockObject" type-name="GdlDock" get-type="gdl_dock_get_type">
                        <implements>
-                               <interface name="GtkBuildable"/>
                                <interface name="AtkImplementor"/>
+                               <interface name="GtkBuildable"/>
                        </implements>
                        <method name="add_floating_item" symbol="gdl_dock_add_floating_item">
                                <return-type type="void"/>
                </object>
                <object name="GdlDockBar" parent="GtkBox" type-name="GdlDockBar" get-type="gdl_dock_bar_get_type">
                        <implements>
-                               <interface name="GtkBuildable"/>
                                <interface name="AtkImplementor"/>
+                               <interface name="GtkBuildable"/>
                                <interface name="GtkOrientable"/>
                        </implements>
                        <method name="get_orientation" symbol="gdl_dock_bar_get_orientation">
                </object>
                <object name="GdlDockItem" parent="GdlDockObject" type-name="GdlDockItem" get-type="gdl_dock_item_get_type">
                        <implements>
-                               <interface name="GtkBuildable"/>
                                <interface name="AtkImplementor"/>
+                               <interface name="GtkBuildable"/>
                        </implements>
                        <method name="bind" symbol="gdl_dock_item_bind">
                                <return-type type="void"/>
                                        <parameter name="behavior" type="GdlDockItemBehavior"/>
                                </parameters>
                        </constructor>
+                       <method name="notify_selected" symbol="gdl_dock_item_notify_selected">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="item" type="GdlDockItem*"/>
+                               </parameters>
+                       </method>
                        <method name="preferred_size" symbol="gdl_dock_item_preferred_size">
                                <return-type type="void"/>
                                <parameters>
                                        <parameter name="y" type="gint"/>
                                </parameters>
                        </signal>
+                       <signal name="selected" when="FIRST">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="object" type="GdlDockItem*"/>
+                               </parameters>
+                       </signal>
                        <vfunc name="set_orientation">
                                <return-type type="void"/>
                                <parameters>
                </object>
                <object name="GdlDockItemGrip" parent="GtkContainer" type-name="GdlDockItemGrip" get-type="gdl_dock_item_grip_get_type">
                        <implements>
-                               <interface name="GtkBuildable"/>
                                <interface name="AtkImplementor"/>
+                               <interface name="GtkBuildable"/>
                        </implements>
                        <method name="hide_handle" symbol="gdl_dock_item_grip_hide_handle">
                                <return-type type="void"/>
                </object>
                <object name="GdlDockObject" parent="GtkContainer" type-name="GdlDockObject" get-type="gdl_dock_object_get_type">
                        <implements>
-                               <interface name="GtkBuildable"/>
                                <interface name="AtkImplementor"/>
+                               <interface name="GtkBuildable"/>
                        </implements>
                        <method name="bind" symbol="gdl_dock_object_bind">
                                <return-type type="void"/>
                </object>
                <object name="GdlDockPlaceholder" parent="GdlDockObject" type-name="GdlDockPlaceholder" get-type="gdl_dock_placeholder_get_type">
                        <implements>
-                               <interface name="GtkBuildable"/>
                                <interface name="AtkImplementor"/>
+                               <interface name="GtkBuildable"/>
                        </implements>
                        <method name="attach" symbol="gdl_dock_placeholder_attach">
                                <return-type type="void"/>