* gscreen.c (x_fill_panel): Use g_get_current_dir().

This commit is contained in:
Pavel Roskin 2001-07-18 03:42:09 +00:00
parent ce150c8aa9
commit 7f952351c0
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2001-07-17 Pavel Roskin <proski@gnu.org>
* gscreen.c (x_fill_panel): Use g_get_current_dir().
2001-07-16 Pavel Roskin <proski@gnu.org> 2001-07-16 Pavel Roskin <proski@gnu.org>
* glayout.c (gnome_exit): Position message boxes near the * glayout.c (gnome_exit): Position message boxes near the

View File

@ -329,10 +329,9 @@ x_fill_panel (WPanel *panel)
gtk_signal_handler_block_by_data (GTK_OBJECT (panel->tree), panel); gtk_signal_handler_block_by_data (GTK_OBJECT (panel->tree), panel);
if (vfs_current_is_local ()){ if (vfs_current_is_local ()){
char buffer [MC_MAXPATHLEN]; char *cur_dir = g_get_current_dir ();
gtk_dtree_select_dir (GTK_DTREE (panel->tree), cur_dir);
get_current_wd (buffer, sizeof (buffer)-1); g_free (cur_dir);
gtk_dtree_select_dir (GTK_DTREE (panel->tree), buffer);
} else } else
gtk_dtree_select_dir (GTK_DTREE (panel->tree), panel->cwd); gtk_dtree_select_dir (GTK_DTREE (panel->tree), panel->cwd);