From 1765105d9c4edf62fbd5406a618fffcf3d3c09c9 Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 22 Dec 2015 11:21:33 +0300 Subject: wncklet: mate_gdk_spawn_command_line_on_screen can be used with any GTK+ --- applets/wncklet/window-list.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'applets/wncklet/window-list.c') diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c index bd7cf5d1..6b5fe654 100644 --- a/applets/wncklet/window-list.c +++ b/applets/wncklet/window-list.c @@ -23,11 +23,9 @@ #include #include -#include -#if GTK_CHECK_VERSION (3, 0, 0) #define MATE_DESKTOP_USE_UNSTABLE_API +#include #include -#endif #include "wncklet.h" #include "window-list.h" @@ -528,10 +526,7 @@ gboolean window_list_applet_fill(MatePanelApplet* applet) static void call_system_monitor(GtkAction* action, TasklistData* tasklist) { -#if !GTK_CHECK_VERSION (3, 0, 0) - char* argv[2] = {NULL, NULL}; -#endif - char* programpath; + char *programpath; int i; for (i = 0; i < G_N_ELEMENTS(system_monitors); i += 1) @@ -542,17 +537,9 @@ static void call_system_monitor(GtkAction* action, TasklistData* tasklist) { g_free(programpath); -#if GTK_CHECK_VERSION (3, 0, 0) mate_gdk_spawn_command_line_on_screen(gtk_widget_get_screen(tasklist->applet), system_monitors[i], NULL); -#else - argv[0] = system_monitors[i]; - gdk_spawn_on_screen(gtk_widget_get_screen(tasklist->applet), NULL, argv, NULL, - G_SPAWN_SEARCH_PATH, - NULL, NULL, NULL, NULL); -#endif - return; } } -- cgit v1.2.1