When allowing non-local locations in the File Open dialog, we should do this in the File Save dialog as well.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3396 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-12-17 16:28:36 +00:00
parent afa4255e51
commit 120e758840
2 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,9 @@
* geany.glade, src/interface.c: * geany.glade, src/interface.c:
Re-add can_focus flag to the notebook widgets in the preferences Re-add can_focus flag to the notebook widgets in the preferences
dialog to make keyboard navigation easier (closes #2417200). dialog to make keyboard navigation easier (closes #2417200).
* src/dialogs.c:
When allowing non-local locations in the File Open dialog, we should
do this in the File Save dialog as well.
2008-12-16 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> 2008-12-16 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -498,6 +498,9 @@ static void create_save_file_dialog(void)
gtk_box_pack_start(GTK_BOX(vbox), check_open_new_tab, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), check_open_new_tab, FALSE, FALSE, 0);
gtk_widget_show_all(vbox); gtk_widget_show_all(vbox);
gtk_file_chooser_set_extra_widget(GTK_FILE_CHOOSER(ui_widgets.save_filesel), vbox); gtk_file_chooser_set_extra_widget(GTK_FILE_CHOOSER(ui_widgets.save_filesel), vbox);
#if GTK_CHECK_VERSION(2, 14, 0)
gtk_file_chooser_set_local_only(GTK_FILE_CHOOSER(ui_widgets.save_filesel), FALSE);
#endif
g_signal_connect(check_open_new_tab, "toggled", g_signal_connect(check_open_new_tab, "toggled",
G_CALLBACK(on_save_as_new_tab_toggled), rename_btn); G_CALLBACK(on_save_as_new_tab_toggled), rename_btn);