When closing a tab when using left-to-right tabs, focus the next
document, not the previous. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2282 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
0421b6a95f
commit
4a62d1d04f
@ -1,3 +1,10 @@
|
||||
2008-02-25 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* src/notebook.c:
|
||||
When closing a tab when using left-to-right tabs, focus the next
|
||||
document, not the previous.
|
||||
|
||||
|
||||
2008-02-24 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
||||
* tagmanager/options.c, src/symbols.c, src/symbols.h:
|
||||
|
@ -406,11 +406,22 @@ notebook_tab_close_clicked_cb(GtkButton *button, gpointer user_data)
|
||||
}
|
||||
|
||||
|
||||
// Always use this instead of gtk_notebook_remove_page().
|
||||
/* Always use this instead of gtk_notebook_remove_page(). */
|
||||
void notebook_remove_page(gint page_num)
|
||||
{
|
||||
gint oldpage = gtk_notebook_get_current_page(GTK_NOTEBOOK(app->notebook));
|
||||
|
||||
gtk_notebook_remove_page(GTK_NOTEBOOK(app->notebook), page_num);
|
||||
|
||||
tab_count_changed();
|
||||
|
||||
/* Focus the next page, not the previous */
|
||||
if (oldpage == page_num && prefs.tab_order_ltr)
|
||||
{
|
||||
/* Unless the first tab was closed */
|
||||
if (oldpage > 0)
|
||||
gtk_notebook_set_current_page(GTK_NOTEBOOK(app->notebook), oldpage);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user