Update of /cvsroot/freevo/freevo/skins/main1 In directory sc8-pr-cvs1:/tmp/cvs-serv13110/skins/main1
Modified Files: skin_main1.py Log Message: Feature to change display_style to a text one when all images are equal. Index: skin_main1.py =================================================================== RCS file: /cvsroot/freevo/freevo/skins/main1/skin_main1.py,v retrieving revision 1.97 retrieving revision 1.98 diff -C2 -d -r1.97 -r1.98 *** skin_main1.py 4 May 2003 16:44:45 -0000 1.97 --- skin_main1.py 22 Jun 2003 09:57:13 -0000 1.98 *************** *** 10,13 **** --- 10,16 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.98 2003/06/22 09:57:13 gsbarbieri + # Feature to change display_style to a text one when all images are equal. + # # Revision 1.97 2003/05/04 16:44:45 dischi # height=-1 for text in title area *************** *** 328,333 **** return current display style """ ! if menu and menu.force_skin_layout != -1: ! return menu.force_skin_layout return self.display_style --- 331,362 ---- return current display style """ ! if menu: ! if menu.force_skin_layout != -1: ! return menu.force_skin_layout ! else: ! different = 0 ! last = menu.choices[ 0 ].image ! for i in menu.choices: ! if last != i.image: ! different = 1 ! break ! last = i.image ! if not different: ! if menu and menu.skin_settings: ! settings = menu.skin_settings ! else: ! settings = self.settings ! ! # get the correct <menu> ! if settings.menu.has_key(menu.item_types): ! area = settings.menu[menu.item_types] ! else: ! area = settings.menu['default'] ! ! # search for a text menu: ! for i in range( len( area.style ) ): ! if area.style[ i ][ 1 ] and not area.style[ i ][ 0 ]: ! return i ! return self.display_style *************** *** 414,419 **** settings = self.settings rows, cols = self.listing_area.get_items_geometry(settings, object, ! self.display_style)[:2] return (cols, rows) --- 443,452 ---- settings = self.settings + menu = None + if type == 'menu': + menu = object + rows, cols = self.listing_area.get_items_geometry(settings, object, ! self.GetDisplayStyle( menu ))[:2] return (cols, rows) *************** *** 489,493 **** for a in self.area_names: area = eval('self.%s_area' % a) ! area.draw(settings, object, self.display_style, self.last_draw, self.force_redraw) --- 522,526 ---- for a in self.area_names: area = eval('self.%s_area' % a) ! area.draw(settings, object, self.GetDisplayStyle( menu ), self.last_draw, self.force_redraw) ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog