[Goodies-commits] r1753 - in verve-plugin/trunk: . panel-plugin

Jannis Pohlmann jannis at xfce.org
Tue Jul 11 17:17:53 CEST 2006


Author: jannis
Date: 2006-07-11 15:17:52 +0000 (Tue, 11 Jul 2006)
New Revision: 1753

Modified:
   verve-plugin/trunk/ChangeLog
   verve-plugin/trunk/panel-plugin/verve-dbus-service.c
   verve-plugin/trunk/panel-plugin/verve-plugin.c
Log:
	* panel-plugin/verve-plugin.c: Use gdk_threads_enter/leave to lock
	  completion access (only one thread is allowed to access it at once).
	* panel-plugin/verve-dbus-service.c: Remove C++ comment style.

Modified: verve-plugin/trunk/ChangeLog
===================================================================
--- verve-plugin/trunk/ChangeLog	2006-07-11 14:37:30 UTC (rev 1752)
+++ verve-plugin/trunk/ChangeLog	2006-07-11 15:17:52 UTC (rev 1753)
@@ -1,5 +1,11 @@
 2006-07-11	Jannis Pohlmann <jannis at xfce.org>
 
+	* panel-plugin/verve-plugin.c: Use gdk_threads_enter/leave to lock
+	  completion access (only one thread is allowed to access it at once).
+	* panel-plugin/verve-dbus-service.c: Remove C++ comment style.
+
+2006-07-11	Jannis Pohlmann <jannis at xfce.org>
+
 	* scripts/Makefile.am: Add verve-focus to EXTRA_DIST (it's missing in
 	  the 0.3.1 tarball.
 	* panel-plugin/verve-env.c, panel-plugin/verve-plugin.c: Implemented 

Modified: verve-plugin/trunk/panel-plugin/verve-dbus-service.c
===================================================================
--- verve-plugin/trunk/panel-plugin/verve-dbus-service.c	2006-07-11 14:37:30 UTC (rev 1752)
+++ verve-plugin/trunk/panel-plugin/verve-dbus-service.c	2006-07-11 15:17:52 UTC (rev 1753)
@@ -98,7 +98,9 @@
   extern const DBusGObjectInfo dbus_glib_verve_dbus_service_object_info;
   GObjectClass *gobject_class;
 
-  // g_type_class_add_private (klass, sizeof (VerveDBusServicePrivate));
+#if 0
+  g_type_class_add_private (klass, sizeof (VerveDBusServicePrivate)); 
+#endif
   
   verve_dbus_service_parent_class = g_type_class_peek_parent (klass);
 

Modified: verve-plugin/trunk/panel-plugin/verve-plugin.c
===================================================================
--- verve-plugin/trunk/panel-plugin/verve-plugin.c	2006-07-11 14:37:30 UTC (rev 1752)
+++ verve-plugin/trunk/panel-plugin/verve-plugin.c	2006-07-11 15:17:52 UTC (rev 1753)
@@ -79,10 +79,10 @@
 void
 verve_plugin_load_completion (VerveEnv* env, gpointer user_data)
 {
+  gdk_threads_enter ();
+
   VervePlugin *verve = (VervePlugin*) user_data;
 
-  g_debug ("Receiving load-binaries signal\n");
-
   verve->completion = g_completion_new (NULL);
 
   /* Load command history */
@@ -91,6 +91,8 @@
   /* Load linux binaries from PATH */
   GList *binaries = verve_env_get_path_binaries (env);
 
+  g_debug ("Receiving load-binaries signal\n");
+
   /* Add command history to completion */
   if (G_LIKELY (history != NULL)) 
     g_completion_add_items (verve->completion, history);
@@ -98,6 +100,8 @@
   /* Add binaries to completion list */
   if (G_LIKELY (binaries != NULL))
     g_completion_add_items (verve->completion, binaries);
+
+  gdk_threads_leave ();
 }
 
 




More information about the Goodies-commits mailing list