pluma: Add GTK3 support

This commit is contained in:
Stefano Karapetsas
2013-10-30 00:56:56 +01:00
parent 5f87f64677
commit 7f0ccea481
31 changed files with 462 additions and 32 deletions

View File

@@ -20,7 +20,10 @@
#ifndef __EGG_SM_CLIENT_PRIVATE_H__
#define __EGG_SM_CLIENT_PRIVATE_H__
#include <gtk/gtk.h>
#if !GTK_CHECK_VERSION (3, 0, 0)
#include <gdkconfig.h>
#endif
#include "eggsmclient.h"
G_BEGIN_DECLS

View File

@@ -367,7 +367,11 @@ sm_client_xsmp_startup (EggSMClient *client,
free (ret_client_id);
gdk_threads_enter ();
#if GTK_CHECK_VERSION (3, 0, 0)
gdk_x11_set_sm_client_id (xsmp->client_id);
#else
gdk_set_sm_client_id (xsmp->client_id);
#endif
gdk_threads_leave ();
g_debug ("Got client ID \"%s\"", xsmp->client_id);