~ubuntu-branches/ubuntu/oneiric/gnome-panel/oneiric

« back to all changes in this revision

Viewing changes to gnome-panel/panel-menu-button.c

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2011-09-26 11:24:36 UTC
  • mto: This revision was merged to the branch mainline in revision 212.
  • Revision ID: package-import@ubuntu.com-20110926112436-bodyg4x82ka051cf
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
749
749
        tooltip = g_settings_get_string (settings_instance,
750
750
                                         PANEL_MENU_BUTTON_TOOLTIP_KEY);
751
751
 
752
 
        scheme = g_strndup (menu_path, strcspn (menu_path, ":"));
753
 
        root = panel_menu_scheme_to_path_root (scheme);
754
 
        g_free (scheme);
 
752
        if (!PANEL_GLIB_STR_EMPTY (menu_path)) {
 
753
                scheme = g_strndup (menu_path, strcspn (menu_path, ":"));
 
754
                root = panel_menu_scheme_to_path_root (scheme);
 
755
                g_free (scheme);
 
756
        } else
 
757
                root = APPLICATIONS_MENU;
755
758
 
756
759
        if (root == LAST_MENU) {
757
760
                g_printerr ("Unknown menu scheme, cannot load menu button\n");