From 844589b03e39ac07af3b63b234d03221ac11e766 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 13 Aug 2013 16:48:51 -0400 Subject: [PATCH] GSimpleActionGroup: Deprecated redundant API See https://bugzilla.gnome.org/show_bug.cgi?id=705600 --- gio/gsimpleactiongroup.c | 8 ++++++++ gio/gsimpleactiongroup.h | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/gio/gsimpleactiongroup.c b/gio/gsimpleactiongroup.c index 655986c..ce4921c 100644 --- a/gio/gsimpleactiongroup.c +++ b/gio/gsimpleactiongroup.c @@ -309,6 +309,8 @@ g_simple_action_group_new (void) * Returns: (transfer none): a #GAction, or %NULL * * Since: 2.28 + * + * Deprecated: 2.38: Use g_action_map_lookup_action() */ GAction * g_simple_action_group_lookup (GSimpleActionGroup *simple, @@ -332,6 +334,8 @@ g_simple_action_group_lookup (GSimpleActionGroup *simple, * The action group takes its own reference on @action. * * Since: 2.28 + * + * Deprecated: 2.38: Use g_action_map_add_action() **/ void g_simple_action_group_insert (GSimpleActionGroup *simple, @@ -352,6 +356,8 @@ g_simple_action_group_insert (GSimpleActionGroup *simple, * If no action of this name is in the group then nothing happens. * * Since: 2.28 + * + * Deprecated: 2.38: Use g_action_map_remove_action() **/ void g_simple_action_group_remove (GSimpleActionGroup *simple, @@ -375,6 +381,8 @@ g_simple_action_group_remove (GSimpleActionGroup *simple, * and adding them to the action group. * * Since: 2.30 + * + * Deprecated: 2.38: Use g_action_map_add_action_entries() **/ void g_simple_action_group_add_entries (GSimpleActionGroup *simple, diff --git a/gio/gsimpleactiongroup.h b/gio/gsimpleactiongroup.h index 5f17626..197e30e 100644 --- a/gio/gsimpleactiongroup.h +++ b/gio/gsimpleactiongroup.h @@ -76,19 +76,19 @@ GType g_simple_action_group_get_type (void) G GLIB_AVAILABLE_IN_ALL GSimpleActionGroup * g_simple_action_group_new (void); -GLIB_AVAILABLE_IN_ALL +GLIB_DEPRECATED_IN_2_38_FOR (g_action_map_lookup_action) GAction * g_simple_action_group_lookup (GSimpleActionGroup *simple, const gchar *action_name); -GLIB_AVAILABLE_IN_ALL +GLIB_DEPRECATED_IN_2_38_FOR (g_action_map_add_action) void g_simple_action_group_insert (GSimpleActionGroup *simple, GAction *action); -GLIB_AVAILABLE_IN_ALL +GLIB_DEPRECATED_IN_2_38_FOR (g_action_map_remove_action) void g_simple_action_group_remove (GSimpleActionGroup *simple, const gchar *action_name); -GLIB_AVAILABLE_IN_2_30 +GLIB_DEPRECATED_IN_2_38_FOR (g_action_map_add_action_entries) void g_simple_action_group_add_entries (GSimpleActionGroup *simple, const GActionEntry *entries, gint n_entries, -- 2.7.4