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
=== modified file 'lib/unity-gtk-action-group.c'
--- lib/unity-gtk-action-group.c 2014-03-25 21:48:16 +0000
+++ lib/unity-gtk-action-group.c 2014-05-28 13:42:56 +0000
@@ -777,6 +777,18 @@
777 }777 }
778 }778 }
779 }779 }
780
781 if (name == NULL)
782 {
783 /*
784 * We tried to find a good name for this radio menu item state, but
785 * the application wasn't nice enough to give us one, either by label
786 * or by action. So we have to pick a bad name which is unique for
787 * any given UnityGtkMenuItem.
788 */
789
790 name = g_strdup_printf ("%p", item);
791 }
780 }792 }
781793
782 return name;794 return name;

Subscribers

People subscribed via source and target branches