diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2013-06-28 11:27:19 -0400 |
---|---|---|
committer | William Jon McCann <william.jon.mccann@gmail.com> | 2013-06-30 11:19:50 -0400 |
commit | c96a1c49802468bd0c7b7ad44782e864bdaaf430 (patch) | |
tree | 13f309f9c852b765f7e144146a7db20bcd060b50 /gtk/gtkrecentchooser.c | |
parent | 32ce8fa60ab1973f7003162ddf321fcb1d5d3b92 (diff) | |
download | gtk+-c96a1c49802468bd0c7b7ad44782e864bdaaf430.tar.gz |
Deprecate GtkAction and GtkUIManager
It is recommended to use GAction et al and GtkBuilder.
Diffstat (limited to 'gtk/gtkrecentchooser.c')
-rw-r--r-- | gtk/gtkrecentchooser.c | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/gtk/gtkrecentchooser.c b/gtk/gtkrecentchooser.c index 4918fbcbf5..c5e151fb31 100644 --- a/gtk/gtkrecentchooser.c +++ b/gtk/gtkrecentchooser.c @@ -1030,13 +1030,19 @@ _gtk_recent_chooser_update (GtkActivatable *activatable, GtkAction *action, const gchar *property_name) { + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; GtkRecentChooser *recent_chooser = GTK_RECENT_CHOOSER (activatable); GtkRecentChooser *action_chooser = GTK_RECENT_CHOOSER (action); GtkRecentAction *recent_action = GTK_RECENT_ACTION (action); + G_GNUC_END_IGNORE_DEPRECATIONS; if (strcmp (property_name, "show-numbers") == 0 && recent_chooser_has_show_numbers (recent_chooser)) - g_object_set (recent_chooser, "show-numbers", - gtk_recent_action_get_show_numbers (recent_action), NULL); + { + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; + g_object_set (recent_chooser, "show-numbers", + gtk_recent_action_get_show_numbers (recent_action), NULL); + G_GNUC_END_IGNORE_DEPRECATIONS; + } else if (strcmp (property_name, "show-private") == 0) gtk_recent_chooser_set_show_private (recent_chooser, gtk_recent_chooser_get_show_private (action_chooser)); else if (strcmp (property_name, "show-not-found") == 0) @@ -1059,16 +1065,22 @@ void _gtk_recent_chooser_sync_action_properties (GtkActivatable *activatable, GtkAction *action) { + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; GtkRecentChooser *recent_chooser = GTK_RECENT_CHOOSER (activatable); GtkRecentChooser *action_chooser = GTK_RECENT_CHOOSER (action); + G_GNUC_END_IGNORE_DEPRECATIONS; if (!action) return; if (recent_chooser_has_show_numbers (recent_chooser)) - g_object_set (recent_chooser, "show-numbers", - gtk_recent_action_get_show_numbers (GTK_RECENT_ACTION (action)), - NULL); + { + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; + g_object_set (recent_chooser, "show-numbers", + gtk_recent_action_get_show_numbers (GTK_RECENT_ACTION (action)), + NULL); + G_GNUC_END_IGNORE_DEPRECATIONS; + } gtk_recent_chooser_set_show_private (recent_chooser, gtk_recent_chooser_get_show_private (action_chooser)); gtk_recent_chooser_set_show_not_found (recent_chooser, gtk_recent_chooser_get_show_not_found (action_chooser)); gtk_recent_chooser_set_show_tips (recent_chooser, gtk_recent_chooser_get_show_tips (action_chooser)); @@ -1090,7 +1102,9 @@ _gtk_recent_chooser_set_related_action (GtkRecentChooser *recent_chooser, if (prev_action == action) return; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; gtk_activatable_do_set_related_action (GTK_ACTIVATABLE (recent_chooser), action); + G_GNUC_END_IGNORE_DEPRECATIONS; g_object_set_qdata (G_OBJECT (recent_chooser), quark_gtk_related_action, action); } @@ -1118,7 +1132,9 @@ _gtk_recent_chooser_set_use_action_appearance (GtkRecentChooser *recent_chooser, g_object_set_qdata (G_OBJECT (recent_chooser), quark_gtk_use_action_appearance, GINT_TO_POINTER (!use_appearance)); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; gtk_activatable_sync_action_properties (GTK_ACTIVATABLE (recent_chooser), action); + G_GNUC_END_IGNORE_DEPRECATIONS; } } |