Added icon shortcut to apps applet
authorEnrico Zini <enrico@enricozini.org>
Sun, 6 Sep 2009 20:04:02 +0000 (21:04 +0100)
committerEnrico Zini <enrico@enricozini.org>
Sun, 6 Sep 2009 20:04:02 +0000 (21:04 +0100)
README
src/app_wm.vala

diff --git a/README b/README
index 270c1e271fed74cfb072a02c40da55c38363fd80..71ca8e4cce7a97c97c554d9d905e5e0e569bbda6 100644 (file)
--- a/README
+++ b/README
@@ -122,7 +122,6 @@ TODO list / wish list
  http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/index.html;hb=HEAD
 
  * Features to add:
- - icon linking to "current apps" in the main screen
  - alarm
     - vibrate at alarm trigger
     - play sound at alarm trigger
index 4d03acbaba36ec25768fec37f6263a204126c0c3..2c33efcb0ef078b6501f7868b5d032fd8b696997 100644 (file)
@@ -266,10 +266,29 @@ public class Launcher: Applet
        }
 }
 
+public class AppShortcut : Object
+{
+       private StatusIcon icon;
+
+       public AppShortcut()
+       {
+               icon = new StatusIcon();
+               icon.install();
+               icon.clicked += on_icon_clicked;
+               icon.set_from_file(zavai.config.icondir + "/apps.png");
+       }
+
+       public void on_icon_clicked()
+       {
+               zavai.app.push_applet("wm.list");
+       }
+}
+
 RaiseIcon raise_icon;
 CloseOrBack close_or_back;
 WindowList window_list;
 Launcher launcher;
+AppShortcut app_shortcut;
 
 public void init()
 {
@@ -279,6 +298,8 @@ public void init()
        close_or_back = new CloseOrBack();
        close_or_back.set_visible(true);
 
+       app_shortcut = new AppShortcut();
+
        launcher = new Launcher("Run program");
        zavai.registry.register_applet("wm.launcher", launcher);