diff options
author | monsta <[email protected]> | 2015-12-22 11:21:33 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2015-12-22 11:21:33 +0300 |
commit | 1765105d9c4edf62fbd5406a618fffcf3d3c09c9 (patch) | |
tree | fffa0cc7037067a3002b7dfafcf2a40a0ef30268 | |
parent | 08a0832a7ad68b708727f6bb1288888dfa4cb1a9 (diff) | |
download | mate-panel-1765105d9c4edf62fbd5406a618fffcf3d3c09c9.tar.bz2 mate-panel-1765105d9c4edf62fbd5406a618fffcf3d3c09c9.tar.xz |
wncklet: mate_gdk_spawn_command_line_on_screen can be used with any GTK+
-rw-r--r-- | applets/wncklet/window-list.c | 17 |
1 files changed, 2 insertions, 15 deletions
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 <libwnck/libwnck.h> #include <gio/gio.h> -#include <libmate-desktop/mate-aboutdialog.h> -#if GTK_CHECK_VERSION (3, 0, 0) #define MATE_DESKTOP_USE_UNSTABLE_API +#include <libmate-desktop/mate-aboutdialog.h> #include <libmate-desktop/mate-desktop-utils.h> -#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; } } |