Don't look up "scroll_arrow_hlength" and "scroll_arrow_vlength"

GtkWidget properties on GTK < 2.10.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2887 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2008-08-14 15:48:11 +00:00
parent b185501584
commit a25c8ec38b

View File

@ -141,8 +141,12 @@ static gboolean is_position_on_tab_bar(GtkNotebook *notebook, GdkEventButton *ev
tab_pos = gtk_notebook_get_tab_pos(notebook);
nb = GTK_WIDGET(notebook);
#if GTK_CHECK_VERSION(2, 10, 0)
gtk_widget_style_get(GTK_WIDGET(notebook), "scroll-arrow-hlength", &scroll_arrow_hlength,
"scroll-arrow-vlength", &scroll_arrow_vlength, NULL);
#else
scroll_arrow_hlength = scroll_arrow_vlength = 16;
#endif
if (! gdk_event_get_coords((GdkEvent*) event, &x, &y))
{