~ci-train-bot/unity-gtk-module/unity-gtk-module-ubuntu-artful-2909

« back to all changes in this revision

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

  • Committer: CI bot
  • Author(s): William Hua
  • Date: 2014-07-16 16:45:02 UTC
  • mfrom: (326.2.1 trunk)
  • Revision ID: ps-jenkins@lists.canonical.com-20140716164502-8jxq5lzin8jjwxyc
Make up a bad state name if we can't infer a good name from a radio menu item's label or action. Fixes: 1313184
Approved by: Charles Kerr, PS Jenkins bot

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;