[PATCH] Simple no-brainer for gnome-utils



(at least I think it is a nobrainer)

Nautilus OAFIIDs have changed (as of 2002-04-18. See Nautilus Changelog),
so nautilus_is_running() in gsearchtool.c
will no longer function.

This fixes it. In addition it moves the OAFIID up as a define. The OAFIID
might change again.

I have no CVS-access, so someone else will have to apply.

Gaute
Index: gsearchtool/gsearchtool.c
===================================================================
RCS file: /cvs/gnome/gnome-utils/gsearchtool/gsearchtool.c,v
retrieving revision 1.48
diff -p -u -r1.48 gsearchtool.c
--- gsearchtool/gsearchtool.c	17 Apr 2002 02:22:21 -0000	1.48
+++ gsearchtool/gsearchtool.c	25 Apr 2002 12:37:22 -0000
@@ -41,6 +41,7 @@
 #define BACKSLASH_IS_PATH_SEPARATOR ISSLASH ('\\')
 #define C_STANDARD_STRFTIME_CHARACTERS "aAbBcdHIjmMpSUwWxXyYZ"
 #define C_STANDARD_NUMERIC_STRFTIME_CHARACTERS "dHIjmMSUwWyY"
+#define NAUTILUS_OAFIID "OAFIID:Nautilus_Factory"
 
 typedef enum {
 	NOT_RUNNING,
@@ -918,7 +919,7 @@ nautilus_is_running()
 	gboolean ret;
 	
 	CORBA_exception_init (&ev); 
-	obj = bonobo_activation_activate_from_id ("OAFIID:nautilus_factory:bd1e1862-92d7-4391-963e-37583f0daef3",
+	obj = bonobo_activation_activate_from_id (NAUTILUS_OAFIID,
 		Bonobo_ACTIVATION_FLAG_EXISTING_ONLY, NULL, &ev);
 		
 	ret = !CORBA_Object_is_nil (obj, &ev);


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