[PATCH] fixes a small bug in the gnome-desktop module



hi

	this patch (2 lines) fixes a small bug in the gnome-desktop module,
it's needed to make gnome-desktop-item-edit work (partially) when
creating new launchers.

regards,
Diego

PD: i sent a similar patch to George Lebl some days ago but I have
obtained no answer, so i'm sending it here.
Index: gnome-desktop/ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-desktop/ChangeLog,v
retrieving revision 1.415
diff -u -r1.415 ChangeLog
--- gnome-desktop/ChangeLog	14 Mar 2002 00:24:25 -0000	1.415
+++ gnome-desktop/ChangeLog	17 Mar 2002 15:31:19 -0000
@@ -1,3 +1,9 @@
+2002-03-17	Diego González  <dggonz yahoo com>
+
+	* libgnome-desktop/gnome-desktop-item
+	  (gnome_desktop_item_set_location_file): fix, so that it stores the name
+	  of the file and doesn't get into an infinite loop.
+
 2002-03-13  Gregory Leblanc  <gleblanc linuxweasel com>
 
 	* gnome-desktop.spec.in:  Rewrite from Chris Chabot
Index: gnome-desktop/libgnome-desktop/gnome-desktop-item.c
===================================================================
RCS file: /cvs/gnome/gnome-desktop/libgnome-desktop/gnome-desktop-item.c,v
retrieving revision 1.94
diff -u -r1.94 gnome-desktop-item.c
--- gnome-desktop/libgnome-desktop/gnome-desktop-item.c	12 Mar 2002 22:11:11 -0000	1.94
+++ gnome-desktop/libgnome-desktop/gnome-desktop-item.c	17 Mar 2002 15:31:20 -0000
@@ -2172,10 +2172,10 @@
 	if (file != NULL) {
 		char *uri;
 		uri = gnome_vfs_get_uri_from_local_path (file);
-		gnome_desktop_item_set_location_file (item, uri);
+		gnome_desktop_item_set_location (item, uri);
 		g_free (uri);
 	} else {
-		gnome_desktop_item_set_location_file (item, NULL);
+		gnome_desktop_item_set_location (item, NULL);
 	}
 }
 


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