Always switch to the tab when showing the unsaved file dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1117 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
cf28714548
commit
f415b70a2f
@ -6,6 +6,8 @@
|
||||
Open tabs left to right by default.
|
||||
* src/keyfile.c:
|
||||
Scroll cursor to 50% of the view for session files at startup.
|
||||
* src/callbacks.c, src/dialogs.c:
|
||||
Always switch to the tab when showing the unsaved file dialog.
|
||||
|
||||
|
||||
2006-12-17 Enrico Tröger <enrico.troeger@uvena.de>
|
||||
|
@ -112,7 +112,6 @@ static gboolean account_for_unsaved()
|
||||
|
||||
if (doc_list[idx].changed)
|
||||
{
|
||||
gtk_notebook_set_current_page(GTK_NOTEBOOK(app->notebook), p);
|
||||
if (! dialogs_show_unsaved_file(idx))
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -338,6 +338,10 @@ gboolean dialogs_show_unsaved_file(gint idx)
|
||||
gchar *msg, *short_fn = NULL;
|
||||
gint ret;
|
||||
|
||||
// display the file tab to remind the user of the document
|
||||
gtk_notebook_set_current_page(GTK_NOTEBOOK(app->notebook),
|
||||
document_find_by_sci(doc_list[idx].sci));
|
||||
|
||||
if (doc_list[idx].file_name != NULL)
|
||||
{
|
||||
short_fn = g_path_get_basename(doc_list[idx].file_name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user