From: skeezix Date: Wed, 9 Feb 2011 21:20:56 +0000 (-0500) Subject: mmenu; for ED, but not quite ready X-Git-Tag: sz_beta3~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe972a52b37c845ec79cfcd66116aacee4284a43;p=pandora-libraries.git mmenu; for ED, but not quite ready --- diff --git a/minimenu/mmui.c b/minimenu/mmui.c index 4dde7b8..3a0c175 100644 --- a/minimenu/mmui.c +++ b/minimenu/mmui.c @@ -3371,8 +3371,37 @@ void ui_menu_context ( mm_appref_t *a ) { // write conf, so it will take next time conf_write ( g_conf, conf_determine_location ( g_conf ) ); - // request rescan and wrap up - rescan_apps++; + // can we just 'hide' this guy without reloading all apps? (this is for you, EvilDragon) + if ( 0 ) { + // + // DOESN'T WORK YET; other parts of app are still hanging onto some values and blow up + // + char *uid = strdup ( a -> ref -> unique_id ); + unsigned int i; + for ( i = 0; i < g_categorycount; i++ ) { + mm_appref_t *p = g_categories [ i ] -> refs; + mm_appref_t *n; + while ( p ) { + n = p -> next; + + if ( strcmp ( p -> ref -> unique_id, uid ) == 0 ) { + free ( p ); + if ( g_categories [ i ] -> refcount ) { + g_categories [ i ] -> refcount--; + } + } + + p = n; + } // while for each appref + } // for each cat/tab + + free ( uid ); + + } else { + // request rescan and wrap up + rescan_apps++; + } + context_alive = 0; // nolonger visible, so lets just get out }