[gedit] Fix setting the virtual root
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix setting the virtual root
- Date: Sun, 16 Jun 2013 16:02:15 +0000 (UTC)
commit 4c1e7f754eedfa0d3aebf3dae213c5c8999d5055
Author: Garrett Regier <garrettregier gmail com>
Date: Sun Jun 16 08:57:05 2013 -0700
Fix setting the virtual root
Must use the file browser widget's method to get the correct root
plugins/filebrowser/gedit-file-browser-widget.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/plugins/filebrowser/gedit-file-browser-widget.c b/plugins/filebrowser/gedit-file-browser-widget.c
index 6e485d0..b66d6d5 100644
--- a/plugins/filebrowser/gedit-file-browser-widget.c
+++ b/plugins/filebrowser/gedit-file-browser-widget.c
@@ -2788,8 +2788,7 @@ on_location_entry_activate (GtkEntry *entry,
gtk_widget_grab_focus (GTK_WIDGET (obj->priv->treeview));
gtk_widget_hide (obj->priv->location_entry);
- gedit_file_browser_store_set_root (obj->priv->file_store,
- new_root);
+ gedit_file_browser_widget_set_root (obj, new_root, TRUE);
}
g_object_unref (new_root);
@@ -3163,8 +3162,7 @@ home_activated (GSimpleAction *action,
home_location = g_file_new_for_path (g_get_home_dir ());
- gedit_file_browser_store_set_virtual_root_from_location (GEDIT_FILE_BROWSER_STORE (model),
- home_location);
+ gedit_file_browser_widget_set_root (widget, home_location, TRUE);
g_object_unref (home_location);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]