Merge lp:~parnold-x/wingpanel-indicator-ayatana/update_labels into lp:~wingpanel-devs/wingpanel-indicator-ayatana/trunk

Proposed by Djax
Status: Merged
Approved by: Cody Garver
Approved revision: 20
Merged at revision: 20
Proposed branch: lp:~parnold-x/wingpanel-indicator-ayatana/update_labels
Merge into: lp:~wingpanel-devs/wingpanel-indicator-ayatana/trunk
Diff against target: 12 lines (+3/-0)
1 file modified
src/AyatanaIndicator.vala (+3/-0)
To merge this branch: bzr merge lp:~parnold-x/wingpanel-indicator-ayatana/update_labels
Reviewer Review Type Date Requested Status
WingPanel Devs Pending
Review via email: mp+307099@code.launchpad.net

Commit message

Update menuitem labels on change

Description of the change

update menuitem labels on change.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/AyatanaIndicator.vala'
2--- src/AyatanaIndicator.vala 2016-08-18 21:29:40 +0000
3+++ src/AyatanaIndicator.vala 2016-09-28 21:27:20 +0000
4@@ -287,6 +287,9 @@
5 } else {
6 button = new Wingpanel.Widgets.Button (label);
7 }
8+ (item as Gtk.CheckMenuItem).notify["label"].connect (() => {
9+ (button as Wingpanel.Widgets.Button).set_caption ((item as Gtk.MenuItem).get_label ().replace ("_", ""));
10+ });
11
12 button.set_state (state);
13

Subscribers

People subscribed via source and target branches

to all changes: