summaryrefslogtreecommitdiff
path: root/gtk/gtkapplicationaccels.c
diff options
context:
space:
mode:
authorSébastien Wilmet <swilmet@gnome.org>2016-04-20 17:03:36 +0200
committerSébastien Wilmet <swilmet@gnome.org>2016-04-22 12:39:44 +0200
commit3d182160bb366f441ef72b4d7365354d392661de (patch)
treeefff32a85a001019201abc81eae4d56511a58e93 /gtk/gtkapplicationaccels.c
parentbce4a0abdefa01a10c43da09c10a3526d2d03941 (diff)
downloadgtk+-3d182160bb366f441ef72b4d7365354d392661de.tar.gz
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
Diffstat (limited to 'gtk/gtkapplicationaccels.c')
-rw-r--r--gtk/gtkapplicationaccels.c16
1 files 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
{