From 3d182160bb366f441ef72b4d7365354d392661de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Wilmet?= Date: Wed, 20 Apr 2016 17:03:36 +0200 Subject: [PATCH] app-accels: rename static functions Remove the "accels_" prefix from the remaining static functions. The prefix no longer makes sense since the whole file is devoted to accels. https://bugzilla.gnome.org/show_bug.cgi?id=764879 --- gtk/gtkapplicationaccels.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gtk/gtkapplicationaccels.c b/gtk/gtkapplicationaccels.c index d8fd00f43d..afbac9a105 100644 --- a/gtk/gtkapplicationaccels.c +++ b/gtk/gtkapplicationaccels.c @@ -100,9 +100,9 @@ accel_key_equal (gconstpointer a, } static void -accels_add_entry (GtkApplicationAccels *accels, - AccelKey *key, - const gchar *action_and_target) +add_entry (GtkApplicationAccels *accels, + AccelKey *key, + const gchar *action_and_target) { const gchar **old; const gchar **new; @@ -124,9 +124,9 @@ accels_add_entry (GtkApplicationAccels *accels, } static void -accels_remove_entry (GtkApplicationAccels *accels, - AccelKey *key, - const gchar *action_and_target) +remove_entry (GtkApplicationAccels *accels, + AccelKey *key, + const gchar *action_and_target) { const gchar **old; const gchar **new; @@ -235,7 +235,7 @@ gtk_application_accels_set_accels_for_action (GtkApplicationAccels *accels, { /* We need to remove accel entries from existing keys */ for (i = 0; old_keys[i].key; i++) - accels_remove_entry (accels, &old_keys[i], action_and_target); + remove_entry (accels, &old_keys[i], action_and_target); } if (keys) @@ -243,7 +243,7 @@ gtk_application_accels_set_accels_for_action (GtkApplicationAccels *accels, g_hash_table_replace (accels->action_to_accels, action_and_target, keys); for (i = 0; i < n; i++) - accels_add_entry (accels, &keys[i], action_and_target); + add_entry (accels, &keys[i], action_and_target); } else {