summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-06-25 16:23:02 +0200
committerStefano Karapetsas <[email protected]>2014-06-25 16:23:02 +0200
commitc5cd7ee4a663d862a5893fb48cbfb087540978cc (patch)
tree2af5a6c6a9a3dd36924e16a08297e1ae9df7457c
parent67c9f12a0d4188b546284efec2d0cd1b90f9052d (diff)
downloadmate-panel-c5cd7ee4a663d862a5893fb48cbfb087540978cc.tar.bz2
mate-panel-c5cd7ee4a663d862a5893fb48cbfb087540978cc.tar.xz
Restore way to close windows with middle click
It was forgot during transition to libwnck Closes https://github.com/mate-desktop/mate-panel/issues/191
-rw-r--r--applets/wncklet/window-list.c3
-rw-r--r--mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c
index 14549478..1f1c6c2e 100644
--- a/applets/wncklet/window-list.c
+++ b/applets/wncklet/window-list.c
@@ -450,7 +450,8 @@ gboolean window_list_applet_fill(MatePanelApplet* applet)
#ifdef WNCK_CHECK_VERSION
#if WNCK_CHECK_VERSION (3, 4, 6)
- wnck_tasklist_set_orientation (tasklist->tasklist, tasklist->orientation);
+ wnck_tasklist_set_orientation (WNCK_TASKLIST (tasklist->tasklist), tasklist->orientation);
+ wnck_tasklist_set_middle_click_close (WNCK_TASKLIST (tasklist->tasklist), TRUE);
#endif
#endif
diff --git a/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c b/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c
index c3b659e0..a74e1883 100644
--- a/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c
+++ b/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c
@@ -237,7 +237,8 @@ container_child_background_set (GObject *source_object,
mate_panel_applet_container_child_set_finish (container, res, NULL);
if (frame->priv->bg_cancellable)
- g_object_unref (frame->priv->bg_cancellable);
+ g_clear_object (&frame->priv->bg_cancellable);
+
frame->priv->bg_cancellable = NULL;
}