diff options
author | Stefano Karapetsas <[email protected]> | 2013-10-26 14:34:04 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-10-26 14:34:04 +0200 |
commit | a6efbbceb5b1122512cd01609eab99fe522d8435 (patch) | |
tree | 43a85aa03fce3f022c5db5f60579daea90cecae3 /mate-panel/panel-session.c | |
parent | fa97943c56e331668aff4b3587fe70c5edcd36b2 (diff) | |
download | mate-panel-a6efbbceb5b1122512cd01609eab99fe522d8435.tar.bz2 mate-panel-a6efbbceb5b1122512cd01609eab99fe522d8435.tar.xz |
mate-panel: Add GTK3 support
Diffstat (limited to 'mate-panel/panel-session.c')
-rw-r--r-- | mate-panel/panel-session.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mate-panel/panel-session.c b/mate-panel/panel-session.c index dbfcebb5..5f43f3f4 100644 --- a/mate-panel/panel-session.c +++ b/mate-panel/panel-session.c @@ -26,7 +26,11 @@ #include <stdlib.h> +#include <gtk/gtk.h> #include <gdk/gdk.h> +#if GTK_CHECK_VERSION (3, 0, 0) +#include <gdk/gdkx.h> +#endif #include <libegg/eggsmclient.h> @@ -76,5 +80,9 @@ panel_session_init (void) /* We don't want the WM to try and save/restore our * window position */ +#if GTK_CHECK_VERSION (3, 0, 0) + gdk_x11_set_sm_client_id (NULL); +#else gdk_set_sm_client_id (NULL); +#endif } |