From: skeezix Date: Sun, 13 Feb 2011 03:47:32 +0000 (-0500) Subject: mmenu; added Pick Skin and Manage Categories type options to Configure menu (still... X-Git-Tag: sz_beta3~70 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-libraries.git;a=commitdiff_plain;h=36af8dacb33edc9307d08a2918166c7cf77d72af mmenu; added Pick Skin and Manage Categories type options to Configure menu (still leaving them in Select root menu for now, but at least all in Configure now) --- diff --git a/minimenu/mmconf.c b/minimenu/mmconf.c index ce9cbec..3f2fac2 100644 --- a/minimenu/mmconf.c +++ b/minimenu/mmconf.c @@ -66,6 +66,8 @@ confitem_t pages[] = { { "General Options", "Miscellaneous handy options", NULL /* default */, NULL, ct_switch_page, page_general }, { "Show/Hide Applications", "Each application can be hidden/revealed", NULL /* default */, NULL, ct_switch_page, page_appshowhide }, { "Show/Hide/Order Tabs", "Each tab can be hidden/revealed or re-ordered", NULL /* default */, NULL, ct_switch_page, page_tabshowhide }, + { "Manage Custom Categories", "Can make your own categories/tabs", NULL /* default */, NULL, ct_go_manage_categories }, + { "Select a Minimenu Skin", "Download alternate look and feels!", NULL /* default */, NULL, ct_go_manage_skins }, { "", "", NULL, NULL, ct_nil }, { "Exit configuration", "Quit and save configuration", NULL /* default */, NULL, ct_exit }, { "", "", NULL, NULL, ct_nil }, @@ -224,6 +226,8 @@ unsigned char conf_run_menu ( confitem_t *toplevel ) { break; case ct_nil: + case ct_go_manage_categories: + case ct_go_manage_skins: case ct_switch_page: case ct_reset: case ct_exit: @@ -253,6 +257,14 @@ unsigned char conf_run_menu ( confitem_t *toplevel ) { page = page [ sel ].newhead; sel = 0; // should use a stack.. break; + case ct_go_manage_categories: + ui_manage_categories(); + break; + case ct_go_manage_skins: + if ( ui_pick_skin() ) { + emit_and_quit ( MM_RESTART ); + } + break; case ct_filename: break; case ct_nil: @@ -373,6 +385,8 @@ void conf_display_page ( confitem_t *page, unsigned int selitem, unsigned int fi break; case ct_exit: break; + case ct_go_manage_categories: + case ct_go_manage_skins: case ct_nil: break; } // switch @@ -409,6 +423,8 @@ void conf_display_page ( confitem_t *page, unsigned int selitem, unsigned int fi case ct_reset: case ct_exit: case ct_visible_tab_list: + case ct_go_manage_categories: + case ct_go_manage_skins: break; } // switch @@ -513,6 +529,8 @@ char *conf_format_int ( int v, change_type_e c ) { case ct_switch_page: case ct_visible_tab_list: case ct_nil: + case ct_go_manage_categories: + case ct_go_manage_skins: break; } // switch diff --git a/minimenu/mmconf.h b/minimenu/mmconf.h index 53d7635..8408e2b 100644 --- a/minimenu/mmconf.h +++ b/minimenu/mmconf.h @@ -11,6 +11,8 @@ typedef enum { ct_boolean, // boolean 1/0 value ct_exit, // save and quit configuring ct_filename, // pick a filename + ct_go_manage_categories, // go to other menu, manage categories + ct_go_manage_skins, // to to other menu, pick skins //ct_category_list } change_type_e;