~persia/unity-gtk-module/blacklist-freeciv-harder

« back to all changes in this revision

Viewing changes to lib/unity-gtk-action-group.c

  • Committer: William Hua
  • Date: 2014-05-28 13:37:11 UTC
  • mto: This revision was merged to the branch mainline in revision 329.
  • Revision ID: william.hua@canonical.com-20140528133711-2gsh95o2xk92vg3k
Make up a state name if we can't infer a good one for a radio menu item.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
    }
781
793
 
782
794
  return name;