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



commit f0e847da30e2fd5247acb776a218a4486d96fe41
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]