From c5cd7ee4a663d862a5893fb48cbfb087540978cc Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 25 Jun 2014 16:23:02 +0200 Subject: 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 --- applets/wncklet/window-list.c | 3 ++- mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c | 3 ++- 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; } -- cgit v1.2.1