gnome-terminal r2824 - trunk/src



Author: chpe
Date: Thu May 29 19:57:43 2008
New Revision: 2824
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2824&view=rev

Log:
Just put this code to the sole callsite.


Modified:
   trunk/src/terminal-accels.c

Modified: trunk/src/terminal-accels.c
==============================================================================
--- trunk/src/terminal-accels.c	(original)
+++ trunk/src/terminal-accels.c	Thu May 29 19:57:43 2008
@@ -208,8 +208,6 @@
                                      GdkModifierType  mask,
                                      gboolean         translate);
 
-static void      queue_gconf_sync (void);
-
 static gboolean sync_idle_cb (gpointer data);
 
 static guint sync_idle_id = 0;
@@ -410,7 +408,9 @@
   g_assert (key_entry);
 
   key_entry->needs_gconf_sync = TRUE;
-  queue_gconf_sync ();
+
+  if (sync_idle_id == 0)
+    sync_idle_id = g_idle_add (sync_idle_cb, NULL);
 }
 
 static gboolean
@@ -517,13 +517,6 @@
   return FALSE;
 }
 
-static void
-queue_gconf_sync (void)
-{
-  if (sync_idle_id == 0)
-    sync_idle_id = g_idle_add (sync_idle_cb, NULL);
-}
-
 /* We have the same KeyEntry* in both columns;
  * we only have two columns because we want to be able
  * to sort by either one of them.



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