gnome-commander r1497 - in trunk: . src



Author: epiotr
Date: Wed Jan  9 23:11:36 2008
New Revision: 1497
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1497&view=rev

Log:
Made "view.home" working on non-home connections too

Modified:
   trunk/ChangeLog
   trunk/src/gnome-cmd-user-actions.cc

Modified: trunk/src/gnome-cmd-user-actions.cc
==============================================================================
--- trunk/src/gnome-cmd-user-actions.cc	(original)
+++ trunk/src/gnome-cmd-user-actions.cc	Wed Jan  9 23:11:36 2008
@@ -1138,13 +1138,14 @@
 
 void view_home (GtkMenuItem *menuitem, gpointer not_used)
 {
-    gnome_cmd_file_selector_goto_directory (gnome_cmd_main_win_get_fs (main_win, ACTIVE), "~");
+    gnome_cmd_file_selector_set_connection (get_fs (ACTIVE), get_home_con ());
+    gnome_cmd_file_selector_goto_directory (get_fs (ACTIVE), "~");
 }
 
 
 void view_root (GtkMenuItem *menuitem, gpointer not_used)
 {
-    gnome_cmd_file_selector_goto_directory (gnome_cmd_main_win_get_fs (main_win, ACTIVE), "/");
+    gnome_cmd_file_selector_goto_directory (get_fs (ACTIVE), "/");
 }
 
 



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