~jgonzalezdr/cairo-dock-plug-ins/suspend-workaround-applet_3.3

« back to all changes in this revision

Viewing changes to clock/src/applet-config.c

  • Committer: Fabrice Rey
  • Date: 2013-09-27 23:42:26 UTC
  • Revision ID: fabounet03@gmail.com-20130927234226-d03se1r91jmffdu2
All: updated to use the new menu API

Show diffs side-by-side

added added

removed removed

Lines of Context:
404
404
                g_string_printf (sFilePath, "%s/%s", cDirPath, cFileName);
405
405
                if (g_file_test (sFilePath->str, G_FILE_TEST_IS_DIR))
406
406
                {
407
 
                        pSubMenu = gtk_menu_new ();
 
407
                        pSubMenu = gtk_menu_new ();  // inside the config window => use a normal GTK menu
408
408
                        gtk_menu_item_set_submenu (GTK_MENU_ITEM (pMenuItem), pSubMenu);
409
409
                        pPathList = _cd_clock_parse_dir (sFilePath->str, cLocationPath, pSubMenu, pPathList, myApplet);
410
410
                        g_free (cLocationPath);
435
435
}
436
436
static void _cd_clock_search_for_location (GtkButton *pButton, GldiModuleInstance *myApplet)
437
437
{
438
 
        GtkWidget *pMenu = gtk_menu_new ();
 
438
        GtkWidget *pMenu = gtk_menu_new ();  // inside the config window => use a normal GTK menu
439
439
        if (s_pTimeZoneList != NULL)
440
440
                cd_clock_free_timezone_list ();
441
441
        s_pTimeZoneList = _cd_clock_parse_dir (CD_CLOCK_TIMEZONE_DIR, NULL, pMenu, NULL, myApplet);