[gtk+] app-accels: rename static functions



commit 3d182160bb366f441ef72b4d7365354d392661de
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Apr 20 17:03:36 2016 +0200

    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 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkapplicationaccels.c b/gtk/gtkapplicationaccels.c
index d8fd00f..afbac9a 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
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]