summaryrefslogtreecommitdiff
path: root/mate-panel/panel-action-button.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-10-26 14:34:04 +0200
committerStefano Karapetsas <[email protected]>2013-10-26 14:34:04 +0200
commita6efbbceb5b1122512cd01609eab99fe522d8435 (patch)
tree43a85aa03fce3f022c5db5f60579daea90cecae3 /mate-panel/panel-action-button.c
parentfa97943c56e331668aff4b3587fe70c5edcd36b2 (diff)
downloadmate-panel-a6efbbceb5b1122512cd01609eab99fe522d8435.tar.bz2
mate-panel-a6efbbceb5b1122512cd01609eab99fe522d8435.tar.xz
mate-panel: Add GTK3 support
Diffstat (limited to 'mate-panel/panel-action-button.c')
-rw-r--r--mate-panel/panel-action-button.c9
1 files changed, 9 insertions, 0 deletions
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 <glib/gi18n.h>
#include <gio/gio.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
+#define MATE_DESKTOP_USE_UNSTABLE_API
+#include <libmate-desktop/mate-desktop-utils.h>
+#endif
+
#include <libpanel-util/panel-error.h>
#include <libpanel-util/panel-launch.h>
#include <libpanel-util/panel-session-manager.h>
@@ -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) {