summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-12-22 13:31:47 +0300
committermonsta <[email protected]>2015-12-22 13:31:47 +0300
commitedbcafa871dcde64b549948528d21fd2d396b24f (patch)
tree801485b954f29c57423f92e369b7988a4a4d4b9a
parent2209fe603c3960b5b62c7419ff7d0980a41477ee (diff)
downloadmate-netbook-edbcafa871dcde64b549948528d21fd2d396b24f.tar.bz2
mate-netbook-edbcafa871dcde64b549948528d21fd2d396b24f.tar.xz
task-title: removed some code that will never work
"desktop window" won't even be shown in the list, so trying to run something on click on (non-existing) close button is pointless.
-rw-r--r--mate-window-picker-applet/task-title.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/mate-window-picker-applet/task-title.c b/mate-window-picker-applet/task-title.c
index a766d2d..955a2ac 100644
--- a/mate-window-picker-applet/task-title.c
+++ b/mate-window-picker-applet/task-title.c
@@ -24,8 +24,6 @@
#include <mate-panel-applet.h>
#include <math.h>
-#define MATE_DESKTOP_USE_UNSTABLE_API
-#include <libmate-desktop/mate-desktop-utils.h>
#include "task-list.h"
@@ -71,13 +69,8 @@ on_close_clicked (GtkButton *button,
window = wnck_screen_get_active_window (priv->screen);
- if (!WNCK_IS_WINDOW (window)
- || wnck_window_get_window_type (window) == WNCK_WINDOW_DESKTOP)
- {
- mate_gdk_spawn_command_line_on_screen (gdk_screen_get_default (),
- LOGOUT, NULL);
- }
- else
+ if (WNCK_IS_WINDOW (window)
+ && wnck_window_get_window_type (window) != WNCK_WINDOW_DESKTOP)
{
if (priv->window == window)
disconnect_window (title);