Move Run program inside Current Apps (next to back link)
[gregoa/zavai.git] / src / app_wm.vala
index 08015dc2fdfa745d97057314cf363f6680546059..7aa688e57253eda8f78e16f0bc3402cd00e52d92 100644 (file)
@@ -124,13 +124,17 @@ public class CloseOrBack : Gtk.StatusIcon
 
 public class WindowList : Applet
 {
-       Wnck.Tasklist selector;
+       protected Wnck.Tasklist selector;
+       protected AppletPushLink launcher_link;
 
        public WindowList(string label)
        {
                _label = label;
                selector = new Wnck.Tasklist(Wnck.Screen.get_default());
                pack_start(selector, true, true, 0);
+
+               launcher_link = new AppletPushLink("wm.launcher");
+        button_box.pack_start(launcher_link, true, true, 0);
        }
 }
 
@@ -274,13 +278,14 @@ public void init()
        close_or_back = new CloseOrBack();
        close_or_back.set_visible(true);
 
+       launcher = new Launcher("Run program");
+       zavai.registry.register_applet("wm.launcher", launcher);
+
        window_list = new WindowList("Current apps");
        zavai.registry.register_applet("wm.list", window_list);
        zavai.registry.getmenu("menu.main").add_applet("wm.list");
 
-       launcher = new Launcher("Run program");
-       zavai.registry.register_applet("wm.launcher", launcher);
-       zavai.registry.getmenu("menu.main").add_applet("wm.launcher");
+       //zavai.registry.getmenu("menu.main").add_applet("wm.launcher");
 }
 
 }