From: skeezix Date: Tue, 8 Feb 2011 20:22:49 +0000 (-0500) Subject: mmenu; fix 'reveal hidden' to work (broken in recent changes to category_publish... X-Git-Tag: sz_beta3~79 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-libraries.git;a=commitdiff_plain;h=26822a4e2a509f4edbf462079657f1581287bc78 mmenu; fix 'reveal hidden' to work (broken in recent changes to category_publish() model of operation) --- diff --git a/minimenu/mmui.c b/minimenu/mmui.c index 6447ca9..ceffeca 100644 --- a/minimenu/mmui.c +++ b/minimenu/mmui.c @@ -3116,11 +3116,13 @@ void ui_revealscreen ( void ) { if ( sel >= 0 ) { // fix up category name, if its been hacked +#if 0 // prepending and .. wtf crap is this if ( strchr ( g_categories [ sel ] -> catname, '.' ) ) { char *t = g_categories [ sel ] -> catname; g_categories [ sel ] -> catname = strdup ( strchr ( g_categories [ sel ] -> catname, '.' ) + 1 ); free ( t ); } +#endif // reflag this guy to be visible g_categories [ sel ] -> catflags = CFNORMAL; @@ -3141,13 +3143,13 @@ void ui_revealscreen ( void ) { ui_catshift = ui_category - ( screen_width / tab_width ) + 1; } - // redraw tabs - render_mask |= CHANGED_CATEGORY; } - for ( i = 0; i < g_categorycount; i++ ) { - free ( labels [ i ] ); - } + // republish categories + category_publish ( CFNORMAL, NULL ); + + // redraw tabs + render_mask |= CHANGED_CATEGORY; return; }