Revision: 4841 http://geany.svn.sourceforge.net/geany/?rev=4841&view=rev Author: eht16 Date: 2010-04-19 20:48:54 +0000 (Mon, 19 Apr 2010)
Log Message: ----------- Properly guard the automatic sidebar notebook tab hiding against older GTK versions
Modified Paths: -------------- trunk/src/sidebar.c
Modified: trunk/src/sidebar.c =================================================================== --- trunk/src/sidebar.c 2010-04-19 20:42:44 UTC (rev 4840) +++ trunk/src/sidebar.c 2010-04-19 20:48:54 UTC (rev 4841) @@ -988,12 +988,15 @@ static void sidebar_tabs_show_hide(GtkNotebook *notebook, GtkWidget *child, guint page_num, gpointer data) { - gint tabs = gtk_notebook_get_n_pages(notebook); + if (gtk_check_version(2, 10, 0) == NULL) + { + gint tabs = gtk_notebook_get_n_pages(notebook);
- if (interface_prefs.sidebar_symbol_visible == FALSE) - tabs--; - if (interface_prefs.sidebar_openfiles_visible == FALSE) - tabs--; + if (interface_prefs.sidebar_symbol_visible == FALSE) + tabs--; + if (interface_prefs.sidebar_openfiles_visible == FALSE) + tabs--;
- gtk_notebook_set_show_tabs(notebook, (tabs > 1)); + gtk_notebook_set_show_tabs(notebook, (tabs > 1)); + } }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.