Properly guard the automatic sidebar notebook tab hiding against older GTK versions
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4841 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
c499da1b4d
commit
9761d8057d
@ -987,6 +987,8 @@ void sidebar_focus_symbols_tab(void)
|
||||
|
||||
static void sidebar_tabs_show_hide(GtkNotebook *notebook, GtkWidget *child,
|
||||
guint page_num, gpointer data)
|
||||
{
|
||||
if (gtk_check_version(2, 10, 0) == NULL)
|
||||
{
|
||||
gint tabs = gtk_notebook_get_n_pages(notebook);
|
||||
|
||||
@ -997,3 +999,4 @@ static void sidebar_tabs_show_hide(GtkNotebook *notebook, GtkWidget *child,
|
||||
|
||||
gtk_notebook_set_show_tabs(notebook, (tabs > 1));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user