[gnome-applets/wip/segeiger/type-changed] Handle type-changed signal for all windows



commit 8307963c9c06a279f9c09ef58c2c49f15f62dcfc
Author: Sebastian Geiger <sbastig gmx net>
Date:   Fri Jan 22 11:18:05 2016 +0100

    Handle type-changed signal for all windows

 windowpicker/src/task-list.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/windowpicker/src/task-list.c b/windowpicker/src/task-list.c
index 076097a..2833d81 100644
--- a/windowpicker/src/task-list.c
+++ b/windowpicker/src/task-list.c
@@ -107,12 +107,14 @@ static void on_window_opened (WnckScreen *screen,
 {
     g_return_if_fail (taskList != NULL);
     WnckWindowType type = wnck_window_get_window_type (window);
+
+    g_signal_connect (window, "type-changed", G_CALLBACK (type_changed), taskList);
+
     if (type == WNCK_WINDOW_DESKTOP
         || type == WNCK_WINDOW_DOCK
         || type == WNCK_WINDOW_SPLASHSCREEN
         || type == WNCK_WINDOW_MENU)
     {
-        g_signal_connect (window, "type-changed", G_CALLBACK (type_changed), taskList);
         return;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]