libgnomeui patch that removes program_invocation_name usage



OK to check in?

Index: libgnomeui/ChangeLog
===================================================================
RCS file: /cvs/gnome/libgnomeui/libgnomeui/ChangeLog,v
retrieving revision 1.1737
diff -u -u -r1.1737 ChangeLog
--- libgnomeui/ChangeLog	2001/12/08 14:18:18	1.1737
+++ libgnomeui/ChangeLog	2001/12/08 14:42:57
@@ -1,3 +1,10 @@
+2001-12-08  ERDI Gergo  <cactus cactus rulez org>
+
+	* gnome-ui-init.c (libgnomeui_segv_handle): 
+	* gnome-client.c (gnome_client_new_without_connection): 
+	* gnome-app.c (gnome_app_class_init): use g_get_prgname () instead
+	of program_invocation_name
+
 2001-12-08  James Henstridge  <james daa com au>
 
 	* gnome-appbar.c (gnome_appbar_constructor): _priv->interactivity
Index: libgnomeui/gnome-app.c
===================================================================
RCS file: /cvs/gnome/libgnomeui/libgnomeui/gnome-app.c,v
retrieving revision 1.141
diff -u -u -r1.141 gnome-app.c
--- libgnomeui/gnome-app.c	2001/12/07 18:28:22	1.141
+++ libgnomeui/gnome-app.c	2001/12/08 14:42:58
@@ -149,7 +149,7 @@
 				      g_param_spec_string ("app_id",
 							   _("App ID"),
 							   _("The application ID string"),
-							   program_invocation_short_name,
+							   g_get_prgname (),
 							   (G_PARAM_READABLE |
 							    G_PARAM_WRITABLE)));
 }
Index: libgnomeui/gnome-client.c
===================================================================
RCS file: /cvs/gnome/libgnomeui/libgnomeui/gnome-client.c,v
retrieving revision 1.118
diff -u -u -r1.118 gnome-client.c
--- libgnomeui/gnome-client.c	2001/12/07 16:48:25	1.118
+++ libgnomeui/gnome-client.c	2001/12/08 14:43:01
@@ -1385,7 +1385,7 @@
   /* Non-glibc systems do not get this set on the master_client until 
      client_parse_func but this is not a problem.
      The SM specs require explictly require that this is the value: */
-  client->program = g_strdup (program_invocation_name);
+  client->program = g_strdup (g_get_prgname ());
 
   return client;
 }
Index: libgnomeui/gnome-ui-init.c
===================================================================
RCS file: /cvs/gnome/libgnomeui/libgnomeui/gnome-ui-init.c,v
retrieving revision 1.166
diff -u -u -r1.166 gnome-ui-init.c
--- libgnomeui/gnome-ui-init.c	2001/12/08 08:24:13	1.166
+++ libgnomeui/gnome-ui-init.c	2001/12/08 14:43:02
@@ -307,7 +307,7 @@
 
         gnome_type_init();
         /* #warning FIXME: here... gtk_rc ... */
-        libgnomeui_rc_parse (program, program_invocation_name);
+        libgnomeui_rc_parse (program, g_get_prgname ());
 
         libgnomeui_segv_setup (program, TRUE);
 
@@ -516,11 +516,11 @@
 
 		/* Child process */
 		execl (GNOMEUIBINDIR "/gnome_segv2", GNOMEUIBINDIR "/gnome_segv",
-		       program_invocation_name, buf,
+		       g_get_prgname (), buf,
 		       gnome_program_get_app_version (program), NULL);
 
                 execlp ("gnome_segv2", "gnome_segv2",
-			program_invocation_name, buf,
+			g_get_prgname (), buf,
 			gnome_program_get_app_version (program), NULL);
 
                 _exit(99);

-- 
   .--= ULLA! =----------------------.   `We are not here to give users what
   \    http://cactus.rulez.org       \   they want'  -- RMS, at GUADEC 2001
    `-----= cactus cactus rulez org =--'
Ács-tanács: kétszer mérj, de csak egyszer fűrészelj!




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