Merge lp:~ted/unity/set-indicator-env into lp:unity

Proposed by Ted Gould
Status: Merged
Approved by: Gord Allott
Approved revision: 1075
Merged at revision: 1081
Proposed branch: lp:~ted/unity/set-indicator-env
Merge into: lp:unity
Diff against target: 26 lines (+9/-0)
1 file modified
services/panel-service.c (+9/-0)
To merge this branch: bzr merge lp:~ted/unity/set-indicator-env
Reviewer Review Type Date Requested Status
Jay Taoko (community) Approve
Review via email: mp+56369@code.launchpad.net

Description of the change

Set the indicator objects' environment so they know where they are.

To post a comment you must log in.
Revision history for this message
Jay Taoko (jaytaoko) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'services/panel-service.c'
2--- services/panel-service.c 2011-03-29 15:25:22 +0000
3+++ services/panel-service.c 2011-04-05 14:12:25 +0000
4@@ -568,6 +568,13 @@
5 g_free (entry_id);
6 }
7
8+static const gchar * indicator_environment[] = {
9+ "unity",
10+ "unity-3d",
11+ "unity-panel-service",
12+ NULL
13+};
14+
15 static void
16 load_indicator (PanelService *self, IndicatorObject *object, const gchar *_name)
17 {
18@@ -575,6 +582,8 @@
19 gchar *name;
20 GList *entries, *entry;
21
22+ indicator_object_set_environment(object, (const GStrv)indicator_environment);
23+
24 if (_name != NULL)
25 name = g_strdup (_name);
26 else