From a6efbbceb5b1122512cd01609eab99fe522d8435 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sat, 26 Oct 2013 14:34:04 +0200 Subject: mate-panel: Add GTK3 support --- mate-panel/panel-action-button.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mate-panel/panel-action-button.c') diff --git a/mate-panel/panel-action-button.c b/mate-panel/panel-action-button.c index 6fc891e9..214fdf2a 100644 --- a/mate-panel/panel-action-button.c +++ b/mate-panel/panel-action-button.c @@ -33,6 +33,11 @@ #include #include +#if GTK_CHECK_VERSION (3, 0, 0) +#define MATE_DESKTOP_USE_UNSTABLE_API +#include +#endif + #include #include #include @@ -290,7 +295,11 @@ panel_action_connect_server (GtkWidget *widget) screen = gtk_widget_get_screen (GTK_WIDGET (widget)); error = NULL; +#if GTK_CHECK_VERSION (3, 0, 0) + mate_gdk_spawn_command_line_on_screen (screen, "caja-connect-server", +#else gdk_spawn_command_line_on_screen (screen, "caja-connect-server", +#endif &error); if (error) { -- cgit v1.2.1