]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk+-2.0, gtk+-3.0: assorted minor fixes
authorEvan Nemerson <evan@coeus-group.com>
Tue, 23 Oct 2012 00:48:08 +0000 (17:48 -0700)
committerJürg Billeter <j@bitron.ch>
Sun, 11 Nov 2012 13:04:20 +0000 (14:04 +0100)
vapi/gtk+-2.0.vapi
vapi/gtk+-3.0.vapi
vapi/packages/gtk+-2.0/gtk+-2.0.metadata
vapi/packages/gtk+-3.0/gtk+-3.0.metadata

index 6db49342f458e1a752b0b2deed08aa1d127a63ae..755d0d2a5008614397f2ea5f5983bdb9a0bd841d 100644 (file)
@@ -1223,7 +1223,7 @@ namespace Gtk {
                public weak Gtk.Widget colorsel;
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public ColorSelectionDialog (string title);
-               public unowned Gtk.Widget get_color_selection ();
+               public unowned Gtk.ColorSelection get_color_selection ();
                [NoAccessorMethod]
                public Gtk.Widget cancel_button { owned get; }
                public Gtk.Widget color_selection { get; }
@@ -2328,10 +2328,10 @@ namespace Gtk {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public InfoBar ();
                public void add_action_widget (Gtk.Widget child, int response_id);
-               public unowned Gtk.Widget add_button (string button_text, int response_id);
+               public unowned Gtk.Button 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 ();
+               public unowned Gtk.Container get_content_area ();
                public Gtk.MessageType get_message_type ();
                public void set_default_response (int response_id);
                public void set_message_type (Gtk.MessageType message_type);
@@ -2674,7 +2674,7 @@ namespace Gtk {
                public virtual signal void toggle_size_request (void* requisition);
        }
        [CCode (cheader_filename = "gtk/gtk.h")]
-       public class MenuShell : Gtk.Container, Atk.Implementor, Gtk.Buildable {
+       public abstract class MenuShell : Gtk.Container, Atk.Implementor, Gtk.Buildable {
                public uint32 activate_time;
                public uint active;
                public weak Gtk.Widget active_menu_item;
@@ -3279,17 +3279,17 @@ namespace Gtk {
        [CCode (cheader_filename = "gtk/gtk.h")]
        public class RadioMenuItem : Gtk.CheckMenuItem, Atk.Implementor, Gtk.Buildable, Gtk.Activatable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
-               public RadioMenuItem (GLib.SList<Gtk.RadioMenuItem> group);
+               public RadioMenuItem (GLib.SList<Gtk.RadioMenuItem>? group);
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public RadioMenuItem.from_widget (Gtk.RadioMenuItem group);
-               public unowned GLib.SList<Gtk.RadioMenuItem> get_group ();
-               public void set_group (GLib.SList<Gtk.RadioMenuItem> group);
+               public unowned GLib.SList<Gtk.RadioMenuItem>? get_group ();
+               public void set_group (GLib.SList<Gtk.RadioMenuItem>? group);
                [CCode (has_construct_function = false, type = "GtkWidget*")]
-               public RadioMenuItem.with_label (GLib.SList<Gtk.RadioMenuItem> group, string label);
+               public RadioMenuItem.with_label (GLib.SList<Gtk.RadioMenuItem>? group, string label);
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public RadioMenuItem.with_label_from_widget (Gtk.RadioMenuItem group, string label);
                [CCode (has_construct_function = false, type = "GtkWidget*")]
-               public RadioMenuItem.with_mnemonic (GLib.SList<Gtk.RadioMenuItem> group, string label);
+               public RadioMenuItem.with_mnemonic (GLib.SList<Gtk.RadioMenuItem>? group, string label);
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public RadioMenuItem.with_mnemonic_from_widget (Gtk.RadioMenuItem group, string label);
                public Gtk.RadioMenuItem group { set; }
@@ -4057,7 +4057,7 @@ namespace Gtk {
                public Statusbar ();
                public uint get_context_id (string context_description);
                public bool get_has_resize_grip ();
-               public unowned Gtk.Widget get_message_area ();
+               public unowned Gtk.Container get_message_area ();
                public void pop (uint context_id);
                public uint push (uint context_id, string text);
                public void remove (uint context_id, uint message_id);
index 6d51ac2ce7134fceff197af00a726197b928ca1e..a0c4eb468355277a3fc7f4f3646293b3c7969fd5 100644 (file)
@@ -1421,7 +1421,7 @@ namespace Gtk {
        public class ColorSelectionDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public ColorSelectionDialog (string title);
-               public unowned Gtk.Widget get_color_selection ();
+               public unowned Gtk.ColorSelection get_color_selection ();
                [NoAccessorMethod]
                public Gtk.Widget cancel_button { owned get; }
                public Gtk.Widget color_selection { get; }
@@ -2471,10 +2471,10 @@ namespace Gtk {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public InfoBar ();
                public void add_action_widget (Gtk.Widget child, int response_id);
-               public unowned Gtk.Widget add_button (string button_text, int response_id);
+               public unowned Gtk.Button 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 ();
+               public unowned Gtk.Container get_content_area ();
                public Gtk.MessageType get_message_type ();
                public void set_default_response (int response_id);
                public void set_message_type (Gtk.MessageType message_type);
@@ -2805,7 +2805,7 @@ namespace Gtk {
                public virtual signal void toggle_size_request (void* requisition);
        }
        [CCode (cheader_filename = "gtk/gtk.h")]
-       public class MenuShell : Gtk.Container, Atk.Implementor, Gtk.Buildable {
+       public abstract class MenuShell : Gtk.Container, Atk.Implementor, Gtk.Buildable {
                [CCode (has_construct_function = false)]
                protected MenuShell ();
                public void activate_item (Gtk.Widget menu_item, bool force_deactivate);
@@ -3353,17 +3353,17 @@ namespace Gtk {
        [CCode (cheader_filename = "gtk/gtk.h")]
        public class RadioMenuItem : Gtk.CheckMenuItem, Atk.Implementor, Gtk.Buildable, Gtk.Activatable {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
-               public RadioMenuItem (GLib.SList<Gtk.RadioMenuItem> group);
+               public RadioMenuItem (GLib.SList<Gtk.RadioMenuItem>? group);
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public RadioMenuItem.from_widget (Gtk.RadioMenuItem group);
                public unowned GLib.SList<Gtk.RadioMenuItem> get_group ();
-               public void set_group (GLib.SList<Gtk.RadioMenuItem> group);
+               public void set_group (GLib.SList<Gtk.RadioMenuItem>? group);
                [CCode (has_construct_function = false, type = "GtkWidget*")]
-               public RadioMenuItem.with_label (GLib.SList<Gtk.RadioMenuItem> group, string label);
+               public RadioMenuItem.with_label (GLib.SList<Gtk.RadioMenuItem>? group, string label);
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public RadioMenuItem.with_label_from_widget (Gtk.RadioMenuItem group, string label);
                [CCode (has_construct_function = false, type = "GtkWidget*")]
-               public RadioMenuItem.with_mnemonic (GLib.SList<Gtk.RadioMenuItem> group, string label);
+               public RadioMenuItem.with_mnemonic (GLib.SList<Gtk.RadioMenuItem>? group, string label);
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public RadioMenuItem.with_mnemonic_from_widget (Gtk.RadioMenuItem group, string label);
                public Gtk.RadioMenuItem group { set; }
@@ -4070,7 +4070,7 @@ namespace Gtk {
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public Statusbar ();
                public uint get_context_id (string context_description);
-               public unowned Gtk.Widget get_message_area ();
+               public unowned Gtk.Container get_message_area ();
                public void pop (uint context_id);
                public uint push (uint context_id, string text);
                public void remove (uint context_id, uint message_id);
index d15d6b0b7bc060d75740c42463bcf4a33f9f64e8..98126b0f200f0b21a1928493c2e5bbacc9d404ca 100644 (file)
@@ -148,6 +148,7 @@ GtkClipboardURIReceivedFunc.uris is_array="1" no_array_length"1" array_null_term
 gtk_color_button_get_color.color is_out="1"
 gtk_color_selection_get_current_color.color is_out="1"
 gtk_color_selection_get_previous_color.color is_out="1"
+gtk_color_selection_dialog_get_color_selection type_name="Gtk.ColorSelection"
 gtk_combo_box_get_active_iter.iter is_out="1"
 gtk_combo_box_set_model.model nullable="1"
 gtk_combo_box_set_row_separator_func.func transfer_ownership="1"
@@ -278,6 +279,8 @@ gtk_im_context_get_preedit_string.cursor_pos is_out="1"
 gtk_im_context_get_surrounding.text is_out="1"
 gtk_im_context_get_surrounding.cursor_index is_out="1"
 GtkIMContextInfo is_value_type="1" cheader_filename="gtk/gtk.h,gtk/gtkimmodule.h"
+gtk_info_bar_add_button type_name="Gtk.Button"
+gtk_info_bar_get_content_area type_name="Gtk.Container"
 gtk_init.argc hidden="1"
 gtk_init.argv is_array="1" is_ref="1" array_length_pos="0.9"
 gtk_init_add.data hidden="1"
@@ -346,6 +349,7 @@ GtkMenuItem::activate has_emitter="1"
 GtkMenuItem::toggle_size_allocate has_emitter="1"
 GtkMenuItem::toggle_size_request has_emitter="1"
 gtk_menu_set_screen.screen nullable="1"
+GtkMenuShell abstract="1"
 GtkMenuShell.children type_arguments="MenuItem" weak="0"
 GtkMenuShell::cancel has_emitter="1"
 GtkMenuShell::deactivate has_emitter="1"
@@ -473,11 +477,11 @@ gtk_radio_button_new_*from_widget.radio_group_member nullable="1"
 gtk_radio_button_new_with_label.group nullable="1" type_arguments="RadioButton"
 gtk_radio_button_new_with_mnemonic.group nullable="1" type_arguments="RadioButton"
 gtk_radio_button_set_group.group type_arguments="RadioButton"
-gtk_radio_menu_item_get_group type_arguments="RadioMenuItem"
-gtk_radio_menu_item_new.group type_arguments="RadioMenuItem"
-gtk_radio_menu_item_new_with_label.group type_arguments="RadioMenuItem"
-gtk_radio_menu_item_new_with_mnemonic.group type_arguments="RadioMenuItem"
-gtk_radio_menu_item_set_group.group type_arguments="RadioMenuItem"
+gtk_radio_menu_item_get_group type_arguments="RadioMenuItem" nullable="1"
+gtk_radio_menu_item_new.group type_arguments="RadioMenuItem" nullable="1"
+gtk_radio_menu_item_new_with_label.group type_arguments="RadioMenuItem" nullable="1"
+gtk_radio_menu_item_new_with_mnemonic.group type_arguments="RadioMenuItem" nullable="1"
+gtk_radio_menu_item_set_group.group type_arguments="RadioMenuItem" nullable="1"
 gtk_radio_tool_button_get_group type_arguments="RadioToolButton"
 gtk_radio_tool_button_new.group nullable="1" type_arguments="RadioToolButton"
 gtk_radio_tool_button_new_from_stock.group nullable="1" type_arguments="RadioToolButton"
@@ -549,6 +553,7 @@ gtk_spin_button_get_range.min is_out="1"
 gtk_spin_button_get_range.max is_out="1"
 GtkStatusIcon::button_press_event.event namespace_name="Gdk" type_name="EventButton"
 GtkStatusIcon::button_release_event.event namespace_name="Gdk" type_name="EventButton"
+gtk_statusbar_get_message_area type_name="Gtk.Container"
 gtk_status_icon_get_geometry.area is_out="1"
 gtk_status_icon_get_geometry.orientation is_out="1"
 gtk_status_icon_position_menu hidden="1"
index c7a4e23d9bd3e89758590b4010c3f24856f165c4..fdf2dbbdabae5f8a3f7a2d6d2745271d59b36f45 100644 (file)
@@ -209,6 +209,7 @@ gtk_color_selection_get_current_color deprecated_since="3.4" replacement="get_cu
 gtk_color_selection_get_current_color.color is_out="1"
 gtk_color_selection_get_previous_color.color is_out="1"
 gtk_color_selection_set_current_color deprecated_since="3.4" replacement="set_current_rgba"
+gtk_color_selection_dialog_get_color_selection type_name="Gtk.ColorSelection"
 gtk_combo_box_get_active_iter.iter is_out="1"
 gtk_combo_box_set_model.model nullable="1"
 gtk_combo_box_set_row_separator_func.func transfer_ownership="1"
@@ -378,6 +379,9 @@ GtkInfoBar:action-area-border deprecated_since="3.6" replacement="Container.set_
 GtkInfoBar:button-spacing deprecated_since="3.6" replacement="Box.set_spacing"
 GtkInfoBar:content-area-border deprecated_since="3.6" replacement="Container.set_border_width"
 GtkInfoBar:content-area-spacing deprecated_since="3.6" replacement="Container.set_spacing"
+gtk_info_bar_add_button type_name="Gtk.Button"
+gtk_info_bar_get_content_area type_name="Gtk.Container"
+gtk_color_selection_dialog_get_color_selection type_name="Gtk.ColorSelection"
 gtk_init.argc hidden="1"
 gtk_init.argv is_array="1" is_ref="1" array_length_pos="0.9"
 gtk_init_add.data hidden="1"
@@ -449,6 +453,7 @@ GtkMenuItem::activate has_emitter="1"
 GtkMenuItem::toggle_size_allocate has_emitter="1"
 GtkMenuItem::toggle_size_request has_emitter="1"
 gtk_menu_set_screen.screen nullable="1"
+GtkMenuShell abstract="1"
 GtkMenuShell.children type_arguments="MenuItem" weak="0"
 GtkMenuShell::cancel has_emitter="1"
 GtkMenuShell::deactivate has_emitter="1"
@@ -593,10 +598,10 @@ gtk_radio_button_new_with_label.group nullable="1" type_arguments="RadioButton"
 gtk_radio_button_new_with_mnemonic.group nullable="1" type_arguments="RadioButton"
 gtk_radio_button_set_group.group type_arguments="RadioButton"
 gtk_radio_menu_item_get_group type_arguments="RadioMenuItem"
-gtk_radio_menu_item_new.group type_arguments="RadioMenuItem"
-gtk_radio_menu_item_new_with_label.group type_arguments="RadioMenuItem"
-gtk_radio_menu_item_new_with_mnemonic.group type_arguments="RadioMenuItem"
-gtk_radio_menu_item_set_group.group type_arguments="RadioMenuItem"
+gtk_radio_menu_item_new.group type_arguments="RadioMenuItem" nullable="1"
+gtk_radio_menu_item_new_with_label.group type_arguments="RadioMenuItem" nullable="1"
+gtk_radio_menu_item_new_with_mnemonic.group type_arguments="RadioMenuItem" nullable="1"
+gtk_radio_menu_item_set_group.group type_arguments="RadioMenuItem" nullable="1"
 gtk_radio_tool_button_get_group type_arguments="RadioToolButton"
 gtk_radio_tool_button_new.group nullable="1" type_arguments="RadioToolButton"
 gtk_radio_tool_button_new_from_stock.group nullable="1" type_arguments="RadioToolButton"
@@ -677,6 +682,7 @@ gtk_spin_button_get_range.min is_out="1"
 gtk_spin_button_get_range.max is_out="1"
 GtkStatusIcon::button_press_event.event namespace_name="Gdk" type_name="EventButton"
 GtkStatusIcon::button_release_event.event namespace_name="Gdk" type_name="EventButton"
+gtk_statusbar_get_message_area type_name="Gtk.Container"
 gtk_status_icon_get_geometry.area is_out="1"
 gtk_status_icon_get_geometry.orientation is_out="1"
 gtk_status_icon_position_menu hidden="1"