[gedit] Small cleanup I had locally on top of the recent ctrl+delete commit.



commit 611fe56ae2d75e3f4697ea9ea4f70dc3be12f7bf
Author: Paolo Borelli <pborelli gnome org>
Date:   Wed Apr 6 03:49:49 2011 +0200

    Small cleanup I had locally on top of the recent ctrl+delete commit.

 plugins/filebrowser/gedit-file-browser-widget.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/plugins/filebrowser/gedit-file-browser-widget.c b/plugins/filebrowser/gedit-file-browser-widget.c
index fbc0268..57161b0 100644
--- a/plugins/filebrowser/gedit-file-browser-widget.c
+++ b/plugins/filebrowser/gedit-file-browser-widget.c
@@ -2866,13 +2866,16 @@ on_treeview_key_press_event (GeditFileBrowserView   *treeview,
 			     GdkEventKey            *event,
 			     GeditFileBrowserWidget *obj)
 {
+	GtkTreeModel *model;
 	guint modifiers;
 
 	if (do_change_directory (obj, event))
+	{
 		return TRUE;
+	}
 
-	if (!GEDIT_IS_FILE_BROWSER_STORE
-	    (gtk_tree_view_get_model (GTK_TREE_VIEW (treeview))))
+	model = gtk_tree_view_get_model (GTK_TREE_VIEW (treeview));
+	if (!GEDIT_IS_FILE_BROWSER_STORE (model))
 	{
 		return FALSE;
 	}



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