X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=minimenu%2Fmmconf.c;h=b67b834ac8f2878e849da09fe0e880be87873008;hb=c74f8aca301117ae6722ec67b3ce9f5fa86bd69d;hp=b25ec9c2402f8a6388efd4de1b756e7bb121bc55;hpb=3617e64d8e47accd9fcac8270240e90545609000;p=pandora-libraries.git diff --git a/minimenu/mmconf.c b/minimenu/mmconf.c index b25ec9c..b67b834 100644 --- a/minimenu/mmconf.c +++ b/minimenu/mmconf.c @@ -11,6 +11,8 @@ #include "pnd_container.h" #include "pnd_conf.h" #include "pnd_discovery.h" +#include "pnd_notify.h" +#include "pnd_dbusnotify.h" #include "mmenu.h" #include "mmconf.h" @@ -28,13 +30,16 @@ confitem_t page_general[] = { { "Set CPU speed within Minimenu", "Whether the next setting is applied or not", "0", "minimenu.use_mm_speed", ct_boolean }, { "CPU speed within Minimenu", "Set low; speed to run Minimenu at", "400", "minimenu.mm_speed", ct_cpu_speed }, #endif - { "Set CPU speed when leaving", "Whether the next setting is applied or not", "0", "minimenu.use_run_speed", ct_boolean }, - { "CPU speed when leaving", "Before running app, set this speed; app may override.", "500", "minimenu.run_speed", ct_cpu_speed }, { "Show 'All' tab", "Whethor an All tab is shown or not", "1", "categories.do_all_cat", ct_boolean }, { "Show directory browser tabs", "Show a tab for each SD card?", "0", "filesystem.do_browser", ct_boolean }, { "Detail panel on start?", "Show or hide the detail panel when menu starts", "1", "display.show_detail_pane", ct_boolean }, - { "Start with app selected", "Whethor selection is placed by default or not", "0", "minimenu.start_selected", ct_boolean }, { "Sub-categories as folders?", "If no, uses tabs instead of folders within tabs.", "1", "tabs.subcat_as_folders", ct_boolean }, + { "Start with app selected", "Whethor selection is placed by default or not", "0", "minimenu.start_selected", ct_boolean }, + { "Auto discover pnd apps?", "If no, turn on diectory browser to manually find apps", "1", "filesystem.do_pnd_disco", ct_boolean }, + // dropped option -- we now strictly enforce free desktop categories (or user defined, but no more bogus PXML categories) + // { "Keep bad categories in Other?", "Lazy dev! Put broken categories into Other to keep clean", "1", "categories.good_cats_only", ct_boolean }, + { "Set CPU speed when leaving", "Whether the next setting is applied or not", "0", "minimenu.use_run_speed", ct_boolean }, + { "CPU speed when leaving", "Before running app, set this speed; app may override.", "500", "minimenu.run_speed", ct_cpu_speed }, { "Wrap tab change", "Changing tab left or right, does it wrap around?", "0", "tabs.wraparound", ct_boolean }, { "Grid stop vertical", "Changing selection up or down, does it stop or wrap?", "0", "grid.wrap_vert_stop", ct_boolean }, { "Live (not exit) on app run?", "Normally menu exits (to save ram) on app run", "0", "minimenu.live_on_run", ct_boolean }, @@ -567,6 +572,7 @@ unsigned char conf_prepare_page ( confitem_t *page ) { unsigned int i; char catname [ 512 ]; char *actual_catname; + char finalbuf [ 101 ]; for ( i = 0; i < g_categorycount; i++ ) { @@ -585,7 +591,13 @@ unsigned char conf_prepare_page ( confitem_t *page ) { continue; } - p -> text = strndup ( actual_catname, 40 ); + if ( g_categories [ i ] -> parent_catname ) { + snprintf ( finalbuf, 100, "%s [%s]", actual_catname, g_categories [ i ] -> parent_catname ); + } else { + strncpy ( finalbuf, actual_catname, 100 ); + } + + p -> text = strndup ( finalbuf, 40 ); p -> desc = NULL; p -> def = NULL;