pluma: Add GTK3 support
This commit is contained in:
@@ -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
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user