summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaszlo Boros <[email protected]>2013-10-26 15:46:25 +0200
committerStefano Karapetsas <[email protected]>2013-10-26 15:46:25 +0200
commit275dfc749eb988b3316b32e0a74dad2d7c92936f (patch)
tree1dd50db5bb35facc65a4994d417ddb755b67960b
parentd59de9e94eb0eb770f082fb53bb471e9003cf244 (diff)
downloadmate-notification-daemon-275dfc749eb988b3316b32e0a74dad2d7c92936f.tar.bz2
mate-notification-daemon-275dfc749eb988b3316b32e0a74dad2d7c92936f.tar.xz
daemon: Add GTK3 support
-rw-r--r--src/daemon/daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index 56c40f7..c1c7018 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -1152,7 +1152,7 @@ static gboolean fullscreen_window_exists(GtkWidget* nw)
WnckWorkspace* wnck_workspace;
GList* l;
- #if (GDK_PIXBUF_MAJOR == 2) && (GDK_PIXBUF_MINOR < 22)
+ #if GTK_CHECK_VERSION (3, 0, 0) || ((GDK_PIXBUF_MAJOR == 2) && (GDK_PIXBUF_MINOR < 22))
wnck_screen = wnck_screen_get(GDK_SCREEN_XNUMBER(gdk_window_get_screen(gtk_widget_get_window(nw))));
#else
wnck_screen = wnck_screen_get(GDK_SCREEN_XNUMBER(gdk_drawable_get_screen(GDK_DRAWABLE(GTK_WIDGET(nw)->window))));