PATCH: make gnome-desktop-item-edit work



This small patch makes gnome-desktop-item-edit work to edit existing
.desktop files.

- Frank

Index: gnome-desktop-item-edit.c
===================================================================
RCS file: /cvs/gnome/gnome-panel/gnome-panel/gnome-desktop-item-edit.c,v
retrieving revision 1.4
diff -u -r1.4 gnome-desktop-item-edit.c
--- gnome-desktop-item-edit.c	2002/03/26 04:19:39	1.4
+++ gnome-desktop-item-edit.c	2002/04/22 01:38:19
@@ -105,8 +105,7 @@
 		gnome_vfs_file_info_clear (info);
 
 		if (gnome_vfs_get_file_info
-		    (uri, info, GNOME_VFS_FILE_INFO_DEFAULT) != GNOME_VFS_OK) {
-			/* ok, this doesn't exist, really */
+		    (uri, info, GNOME_VFS_FILE_INFO_DEFAULT) == GNOME_VFS_OK) {
 			if (is_ext (desktops[i], ".directory")) {
 				char *dirname = g_path_get_dirname (uri);
 				char *basename = g_path_get_basename (dirname);


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