Fixed compilation with Gtk+ < 2.14.0

This commit is contained in:
Pierre Pronchery 2010-04-21 01:36:34 +00:00
parent 2e3102e0e0
commit 57188178d3

View File

@ -460,7 +460,11 @@ void on_fullscreen(gpointer data)
Surfer * surfer = data;
GdkWindow * window;
#if GTK_CHECK_VERSION(2, 14, 0)
window = gtk_widget_get_window(surfer->window);
#else
window = surfer->window->window;
#endif
if((gdk_window_get_state(window) & GDK_WINDOW_STATE_FULLSCREEN)
!= GDK_WINDOW_STATE_FULLSCREEN)
{