summaryrefslogtreecommitdiff
path: root/gtk/gtkapplication.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-04-06 02:13:06 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-04-06 02:13:06 -0400
commit7d5bb09b886a88a15eba082fa150e39eb888c5ea (patch)
treeeb98c8209e71d1592de0c202c957d434429e4d23 /gtk/gtkapplication.c
parent4c039030458aa5f6bfb6510b66bb8f3ed7c7519d (diff)
downloadgtk+-7d5bb09b886a88a15eba082fa150e39eb888c5ea.tar.gz
Deprecate gtk_application_add_accelerator
The new gtk_application_set_accels_for_action api is more flexible and better.
Diffstat (limited to 'gtk/gtkapplication.c')
-rw-r--r--gtk/gtkapplication.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index 1022037eb6..a074e9ebfb 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -668,8 +668,10 @@ extract_accel_from_menu_item (GMenuModel *model,
}
g_object_unref (iter);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (accel && action)
gtk_application_add_accelerator (app, accel, action, target);
+ G_GNUC_END_IGNORE_DEPRECATIONS
if (target)
g_variant_unref (target);
@@ -1075,6 +1077,8 @@ gtk_application_update_accels (GtkApplication *application)
* than calling this function for each accelerator.
*
* Since: 3.4
+ *
+ * Deprecated: 3.14: Use gtk_application_set_accels_for_action() instead
*/
void
gtk_application_add_accelerator (GtkApplication *application,
@@ -1107,6 +1111,8 @@ gtk_application_add_accelerator (GtkApplication *application,
* with gtk_application_add_accelerator().
*
* Since: 3.4
+ *
+ * Deprecated: 3.14: Use gtk_application_set_accels_for_action() instead
*/
void
gtk_application_remove_accelerator (GtkApplication *application,