diff options
Diffstat (limited to 'frontends/gtk/global_history.c')
-rw-r--r-- | frontends/gtk/global_history.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/frontends/gtk/global_history.c b/frontends/gtk/global_history.c index 33032e567..71528cb49 100644 --- a/frontends/gtk/global_history.c +++ b/frontends/gtk/global_history.c @@ -188,7 +188,7 @@ MENUHANDLER(export) NSGTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); - gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(save_dialog), + nsgtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(save_dialog), getenv("HOME") ? getenv("HOME") : "/"); gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(save_dialog), @@ -332,10 +332,7 @@ static nserror nsgtk_global_history_init(void) "globalHistoryDrawingArea")); /* make the delete event hide the window */ - g_signal_connect(G_OBJECT(ncwin->wnd), - "delete_event", - G_CALLBACK(gtk_widget_hide_on_delete), - NULL); + nsgtk_window_set_hide_on_close(ncwin->wnd, TRUE); nsgtk_global_history_init_menu(ncwin); |