summaryrefslogtreecommitdiff
path: root/unity-private
diff options
authorNeil Jagdish Patel <neil.patel@canonical.com>2010-09-22 19:16:13 +0100
committerNeil Jagdish Patel <neil.patel@canonical.com>2010-09-22 19:16:13 +0100
commitc8a0197fec14acf706e91fb761cb51b118fc8a82 (patch)
treeb98ad3c9f0b8b28b1e3a8c3e0732e7ea84d0b987 /unity-private
parent396b8e0d032543b82e52b4e72e395e347b7dbb54 (diff)
parent0e6eff65039dda1b90fe36a04849ead62fc2d469 (diff)
[merge] Support new libindicator API
(bzr r543)
Diffstat (limited to 'unity-private')
-rw-r--r--unity-private/panel/panel-indicator-object-entry-view.vala3
-rw-r--r--unity-private/panel/panel-indicator-object-view.vala8
2 files changed, 11 insertions, 0 deletions
diff --git a/unity-private/panel/panel-indicator-object-entry-view.vala b/unity-private/panel/panel-indicator-object-entry-view.vala
index c1d2e05d4..2829ef4fe 100644
--- a/unity-private/panel/panel-indicator-object-entry-view.vala
+++ b/unity-private/panel/panel-indicator-object-entry-view.vala
@@ -23,6 +23,7 @@ namespace Unity.Panel.Indicators
{
public unowned Indicator.ObjectEntry entry { get; construct; }
public signal void menu_moved (Gtk.MenuDirectionType type);
+ public signal void entry_shown ();
private Clutter.CairoTexture bg;
public Ctk.Image image;
@@ -469,6 +470,8 @@ namespace Unity.Panel.Indicators
entry.menu.move_current.connect (menu_key_moved);
entry.menu.notify["visible"].connect (menu_vis_changed);
bg.opacity = 255;
+
+ entry_shown ();
}
}
diff --git a/unity-private/panel/panel-indicator-object-view.vala b/unity-private/panel/panel-indicator-object-view.vala
index 0816efc89..c102bb248 100644
--- a/unity-private/panel/panel-indicator-object-view.vala
+++ b/unity-private/panel/panel-indicator-object-view.vala
@@ -68,6 +68,7 @@ namespace Unity.Panel.Indicators
IndicatorObjectEntryView object_entry_view = new IndicatorObjectEntryView (indicator_object_entry);
object_entry_view.menu_moved.connect (this.on_menu_moved);
+ object_entry_view.entry_shown.connect (on_entry_shown);
this.indicator_entry_array.add (object_entry_view);
this.add_actor (object_entry_view);
@@ -167,12 +168,19 @@ namespace Unity.Panel.Indicators
IndicatorObjectEntryView object_entry_view = new IndicatorObjectEntryView (indicator_object_entry);
object_entry_view.menu_moved.connect (this.on_menu_moved);
+ object_entry_view.entry_shown.connect (on_entry_shown);
this.indicator_entry_array.add (object_entry_view);
this.add_actor (object_entry_view);
}
+ private void on_entry_shown (IndicatorObjectEntryView view)
+ {
+ indicator_object.entry_activate (view.entry,
+ global_shell.get_current_time ());
+ }
+
private void remove_entry (Indicator.ObjectEntry entry)
{
for (int i = 0; i < indicator_entry_array.size; i++)