Revision: 1117 http://svn.sourceforge.net/geany/?rev=1117&view=rev Author: ntrel Date: 2006-12-18 04:34:29 -0800 (Mon, 18 Dec 2006)
Log Message: ----------- Always switch to the tab when showing the unsaved file dialog.
Modified Paths: -------------- trunk/ChangeLog trunk/src/callbacks.c trunk/src/dialogs.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-12-18 12:24:39 UTC (rev 1116) +++ trunk/ChangeLog 2006-12-18 12:34:29 UTC (rev 1117) @@ -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
Modified: trunk/src/callbacks.c =================================================================== --- trunk/src/callbacks.c 2006-12-18 12:24:39 UTC (rev 1116) +++ trunk/src/callbacks.c 2006-12-18 12:34:29 UTC (rev 1117) @@ -112,7 +112,6 @@
if (doc_list[idx].changed) { - gtk_notebook_set_current_page(GTK_NOTEBOOK(app->notebook), p); if (! dialogs_show_unsaved_file(idx)) return FALSE; }
Modified: trunk/src/dialogs.c =================================================================== --- trunk/src/dialogs.c 2006-12-18 12:24:39 UTC (rev 1116) +++ trunk/src/dialogs.c 2006-12-18 12:34:29 UTC (rev 1117) @@ -338,6 +338,10 @@ 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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.