]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk+-3.0: Fix gtk_widgets_compute_expand bindings
authorJürg Billeter <j@bitron.ch>
Fri, 9 Dec 2011 12:02:27 +0000 (13:02 +0100)
committerJürg Billeter <j@bitron.ch>
Mon, 12 Dec 2011 19:51:03 +0000 (20:51 +0100)
Based on patch by Alexander Larsson.

Fixes bug 665860.

vapi/gtk+-3.0.vapi
vapi/packages/gtk+-3.0/gtk+-3.0-custom.vala
vapi/packages/gtk+-3.0/gtk+-3.0.metadata

index aa328f0aeae839e24e36d4b4651b00a5c8b3e817..5406c9fa4c67dd46f70981a7addb545b17a700b7 100644 (file)
@@ -5378,7 +5378,9 @@ namespace Gtk {
                public virtual void adjust_size_request (Gtk.Orientation orientation, ref int minimum_size, ref int natural_size);
                public bool child_focus (Gtk.DirectionType direction);
                public void class_path (out uint path_length, out unowned string path, out unowned string path_reversed);
-               public virtual void compute_expand (Gtk.Orientation orientation);
+               public virtual bool compute_expand (Gtk.Orientation orientation);
+               [CCode (vfunc_name = "compute_expand")]
+               public virtual void compute_expand_internal (out bool hexpand, out bool vexpand);
                public Pango.Context create_pango_context ();
                public Pango.Layout create_pango_layout (string? text);
                public void destroyed (out unowned Gtk.Widget widget_pointer);
index 2aaa6203941b69e6bb5e680931e7e24c128141aa..dba41c46592f328db9aafbad0d8d8d1b25bdc234 100644 (file)
@@ -63,6 +63,8 @@ namespace Gtk {
                [CCode (has_new_function = false, construct_function = "gtk_widget_new")]
                public extern Widget (...);
                public class uint activate_signal;
+               [CCode (vfunc_name = "compute_expand")]
+               public virtual void compute_expand_internal (out bool hexpand, out bool vexpand);
        }
 
        public interface Editable {
index e7724bdbfc3cda2d99983432ae0b275319cfd9b7..db32c6fca8aa1d502d3bbbf9af4436cbcd9fcb60 100644 (file)
@@ -948,6 +948,7 @@ GtkWidget:can-focus accessor_method="0"
 gtk_widget_class_path.path_length is_out="1"
 gtk_widget_class_path.path is_out="1"
 gtk_widget_class_path.path_reversed is_out="1"
+gtk_widget_compute_expand type_name="bool"
 gtk_widget_create_pango_context transfer_ownership="1"
 gtk_widget_create_pango_layout transfer_ownership="1"
 gtk_widget_create_pango_layout.text nullable="1"