gedit r6278 - in trunk: . plugins/filebrowser
- From: pborelli svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6278 - in trunk: . plugins/filebrowser
- Date: Mon, 12 May 2008 15:48:33 +0100 (BST)
Author: pborelli
Date: Mon May 12 14:48:32 2008
New Revision: 6278
URL: http://svn.gnome.org/viewvc/gedit?rev=6278&view=rev
Log:
commit a fix on jesse's behalf
Modified:
trunk/ChangeLog
trunk/plugins/filebrowser/gedit-file-browser-view.c
Modified: trunk/plugins/filebrowser/gedit-file-browser-view.c
==============================================================================
--- trunk/plugins/filebrowser/gedit-file-browser-view.c (original)
+++ trunk/plugins/filebrowser/gedit-file-browser-view.c Mon May 12 14:48:32 2008
@@ -1264,23 +1264,13 @@
copy = gtk_tree_path_copy (path);
- if (!gtk_tree_path_up (copy))
+ if (gtk_tree_path_up (copy) &&
+ (gtk_tree_path_get_depth (copy) != 0) &&
+ gtk_tree_model_get_iter (GTK_TREE_MODEL (model), &parent, copy))
{
- gtk_tree_path_free (copy);
- return;
+ restore_expand_state (view, model, &parent);
}
- if (gtk_tree_path_get_depth (copy) == 0)
- {
- gtk_tree_path_free (copy);
- return;
- }
-
- gtk_tree_model_get_iter (GTK_TREE_MODEL (model),
- &parent,
- copy);
-
- restore_expand_state (view, model, &parent);
gtk_tree_path_free (copy);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]