]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk+-3.0: Improve Dialog.get_content_area binding
authorJürg Billeter <j@bitron.ch>
Fri, 16 Dec 2011 08:47:28 +0000 (09:47 +0100)
committerJürg Billeter <j@bitron.ch>
Wed, 21 Dec 2011 15:19:20 +0000 (16:19 +0100)
gtk_dialog_get_content_area always returns a pointer to GtkBox.

vapi/gtk+-3.0.vapi
vapi/packages/gtk+-3.0/gtk+-3.0.metadata
vapigen/valagidlparser.vala

index 5406c9fa4c67dd46f70981a7addb545b17a700b7..b6bd093f3606e35efd160c85258b8d56fd043309 100644 (file)
@@ -1542,7 +1542,8 @@ namespace Gtk {
                public unowned Gtk.Widget add_button (string button_text, int response_id);
                public void add_buttons (...);
                public unowned Gtk.Widget get_action_area ();
-               public unowned Gtk.Widget get_content_area ();
+               [CCode (type = "GtkWidget*")]
+               public unowned Gtk.Box get_content_area ();
                public int get_response_for_widget (Gtk.Widget widget);
                public unowned Gtk.Widget get_widget_for_response (int response_id);
                public int run ();
index db32c6fca8aa1d502d3bbbf9af4436cbcd9fcb60..0149cde048f28d73c890a2af905a9719384c68fd 100644 (file)
@@ -203,6 +203,7 @@ gtk_container_get_focus_chain.focusable_widgets is_out="1" takes_ownership="1" t
 gtk_container_set_focus_chain.focusable_widgets type_arguments="Widget"
 GtkContainerClass name="pointer"
 GtkDestroyNotify has_target="0"
+gtk_dialog_get_content_area type_name="Box" ctype="GtkWidget*"
 gtk_dialog_new_with_buttons.title nullable="1"
 gtk_dialog_new_with_buttons.parent nullable="1"
 gtk_dialog_set_alternative_button_order sentinel="-1"
index 1fbfc48b10cc81d2f41bfd92aea20164f3ec409f..66141dd6894fe080d710af19e0159506bd4a7be0 100644 (file)
@@ -2258,6 +2258,8 @@ public class Vala.GIdlParser : CodeVisitor {
                                        m.set_attribute_string ("CCode", "array_length_type", eval (nv[1]));
                                } else if (nv[0] == "type_name") {
                                        m.return_type = return_type = parse_type_from_string (eval (nv[1]), return_type.value_owned);
+                               } else if (nv[0] == "ctype") {
+                                       m.set_attribute_string ("CCode", "type", eval (nv[1]));
                                } else if (nv[0] == "type_arguments") {
                                        parse_type_arguments_from_string (return_type, eval (nv[1]));
                                } else if (nv[0] == "deprecated") {