mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* gscreen.c (x_fill_panel): Use g_get_current_dir().
This commit is contained in:
parent
ce150c8aa9
commit
7f952351c0
@ -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>
|
||||
|
||||
* glayout.c (gnome_exit): Position message boxes near the
|
||||
|
@ -329,10 +329,9 @@ x_fill_panel (WPanel *panel)
|
||||
gtk_signal_handler_block_by_data (GTK_OBJECT (panel->tree), panel);
|
||||
|
||||
if (vfs_current_is_local ()){
|
||||
char buffer [MC_MAXPATHLEN];
|
||||
|
||||
get_current_wd (buffer, sizeof (buffer)-1);
|
||||
gtk_dtree_select_dir (GTK_DTREE (panel->tree), buffer);
|
||||
char *cur_dir = g_get_current_dir ();
|
||||
gtk_dtree_select_dir (GTK_DTREE (panel->tree), cur_dir);
|
||||
g_free (cur_dir);
|
||||
} else
|
||||
gtk_dtree_select_dir (GTK_DTREE (panel->tree), panel->cwd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user