Merge lp:~attente/unity-gtk-module/1313184 into lp:unity-gtk-module/14.10

Proposed by William Hua
Status: Merged
Approved by: Charles Kerr
Approved revision: 327
Merged at revision: 329
Proposed branch: lp:~attente/unity-gtk-module/1313184
Merge into: lp:unity-gtk-module/14.10
Diff against target: 22 lines (+12/-0)
1 file modified
lib/unity-gtk-action-group.c (+12/-0)
To merge this branch: bzr merge lp:~attente/unity-gtk-module/1313184
Reviewer Review Type Date Requested Status
Charles Kerr (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+221233@code.launchpad.net

Commit message

Make up a bad state name if we can't infer a good name from a radio menu item's label or action.

Description of the change

Make up a bad state name if we can't infer a good name from a radio menu item's label or action.

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
Charles Kerr (charlesk) wrote :

This is a sane fallback imo.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/unity-gtk-action-group.c'
2--- lib/unity-gtk-action-group.c 2014-03-25 21:48:16 +0000
3+++ lib/unity-gtk-action-group.c 2014-05-28 13:42:56 +0000
4@@ -777,6 +777,18 @@
5 }
6 }
7 }
8+
9+ if (name == NULL)
10+ {
11+ /*
12+ * We tried to find a good name for this radio menu item state, but
13+ * the application wasn't nice enough to give us one, either by label
14+ * or by action. So we have to pick a bad name which is unique for
15+ * any given UnityGtkMenuItem.
16+ */
17+
18+ name = g_strdup_printf ("%p", item);
19+ }
20 }
21
22 return name;

Subscribers

People subscribed via source and target branches