gconf-editor r1424 - in trunk: . src



Author: cosimoc
Date: Thu Oct  2 13:18:23 2008
New Revision: 1424
URL: http://svn.gnome.org/viewvc/gconf-editor?rev=1424&view=rev

Log:
2008-10-02  Cosimo Cecchi  <cosimoc gnome org>

	* src/gconf-editor-window.c: (gconf_editor_window_go_to):
	Remove the checks for existence of the key, as gconf_client_get () is
	unable to distinguish between a key that doesn't exist and one with no
	value. The code should anyway be smart enough to stop at the right
	level when we supply a key that doesn't exist (#554629).


Modified:
   trunk/ChangeLog
   trunk/src/gconf-editor-window.c

Modified: trunk/src/gconf-editor-window.c
==============================================================================
--- trunk/src/gconf-editor-window.c	(original)
+++ trunk/src/gconf-editor-window.c	Thu Oct  2 13:18:23 2008
@@ -94,21 +94,8 @@
 	gint depth;
 	gint i, nchildren;
 	char *key;
-	gboolean dir_exists;
-	GError *error = NULL;
 	
 	g_return_if_fail (location != NULL);
-		
-	dir_exists = gconf_client_dir_exists (window->client, location, &error);
-	
-	if (error != NULL) {
-    		gconf_editor_window_popup_error_dialog (GTK_WINDOW (window),"%s", error);
-        	return;
-	}
-	
-	if (!gconf_client_get (window->client, location, NULL) && !dir_exists)
-		return;
-	
 	
 	child_path = gconf_tree_model_get_tree_path_from_gconf_path (
 				GCONF_TREE_MODEL (window->tree_model), location);



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