libgnome tiny patch



Hi,

Jacob liked this idea before, so I'll commit very soon if no one
complains. Otherwise I'll get a bunch of bugs about how 
the gnome-terminal icon picker I'm adding doesn't work.

Havoc

Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/libgnome/ChangeLog,v
retrieving revision 1.163
diff -u -p -u -r1.163 ChangeLog
--- ChangeLog   15 Mar 2002 04:02:17 -0000      1.163
+++ ChangeLog   18 Mar 2002 01:13:34 -0000
@@ -1,3 +1,8 @@
+2002-03-17  Havoc Pennington  <hp pobox com>
+
+       * libgnome/gnome-program.c (gnome_program_locate_file): handle
+       absolute paths
+
 2002-03-14  Richard Hestilow  <hestilow ximian com>
 
        * schemas/desktop_gnome_applications_browser.schemas:
Index: libgnome/gnome-program.c
===================================================================
RCS file: /cvs/gnome/libgnome/libgnome/gnome-program.c,v
retrieving revision 1.55
diff -u -p -u -r1.55 gnome-program.c
--- libgnome/gnome-program.c    13 Mar 2002 16:02:00 -0000      1.55
+++ libgnome/gnome-program.c    18 Mar 2002 01:13:34 -0000
@@ -860,6 +860,13 @@ gnome_program_locate_file (GnomeProgram 
        } \
 }
 
+    /* Potentially add an absolute path */
+    if (*file_name == '/')
+      {
+        if (!only_if_exists || g_file_test (file_name,
G_FILE_TEST_EXISTS))
+          ADD_FILENAME (file_name);
+      }
+    
     switch (domain) {
     case GNOME_FILE_DOMAIN_LIBDIR:
        prefix_rel = "/lib";



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