Merge lp:~charlesk/indicator-power/lp-1223635 into lp:indicator-power/13.10

Proposed by Charles Kerr
Status: Merged
Approved by: Ted Gould
Approved revision: 197
Merged at revision: 196
Proposed branch: lp:~charlesk/indicator-power/lp-1223635
Merge into: lp:indicator-power/13.10
Diff against target: 36 lines (+4/-11)
1 file modified
src/service.c (+4/-11)
To merge this branch: bzr merge lp:~charlesk/indicator-power/lp-1223635
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+185105@code.launchpad.net

Description of the change

Adds a title in the header's action state

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ted Gould (ted) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/service.c'
--- src/service.c 2013-09-04 15:32:43 +0000
+++ src/service.c 2013-09-11 16:54:51 +0000
@@ -332,15 +332,13 @@
332332
333 g_variant_builder_init (&b, G_VARIANT_TYPE("a{sv}"));333 g_variant_builder_init (&b, G_VARIANT_TYPE("a{sv}"));
334334
335 g_variant_builder_add (&b, "{sv}", "title", g_variant_new_string (_("Battery")));
336
335 g_variant_builder_add (&b, "{sv}", "visible",337 g_variant_builder_add (&b, "{sv}", "visible",
336 g_variant_new_boolean (should_be_visible (self)));338 g_variant_new_boolean (should_be_visible (self)));
337339
338 if (label != NULL)340 if (label != NULL)
339 {341 g_variant_builder_add (&b, "{sv}", "label", g_variant_new_take_string (label));
340 g_variant_builder_add (&b, "{sv}", "label", g_variant_new_string (label));
341
342 g_free (label);
343 }
344342
345 if (icon != NULL)343 if (icon != NULL)
346 {344 {
@@ -350,12 +348,7 @@
350 }348 }
351349
352 if (a11y != NULL)350 if (a11y != NULL)
353 {351 g_variant_builder_add (&b, "{sv}", "accessible-desc", g_variant_new_take_string (a11y));
354 g_variant_builder_add (&b, "{sv}", "accessible-desc",
355 g_variant_new_string (a11y));
356
357 g_free (a11y);
358 }
359352
360 return g_variant_builder_end (&b);353 return g_variant_builder_end (&b);
361}354}

Subscribers

People subscribed via source and target branches