Fixed compilation with Gtk+ < 2.14.0
This commit is contained in:
parent
2e3102e0e0
commit
57188178d3
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user