Change in labels for Favourites. Now when there's no comment, app name is still bold. Not sure if it's most elegant way, but it works for now.

This commit is contained in:
tomek_tomek 2011-06-29 11:34:23 +00:00
parent 3715090486
commit 23405ae40a

View File

@ -545,12 +545,12 @@ class FavApplicationLauncher( ApplicationLauncher ):
self.addLabel( self.appGenericName, [ pango.AttrWeight( pango.WEIGHT_BOLD, 0, -1 ) ] )
self.addLabel( self.appName )
else:
self.addLabel( self.appName, [ pango.AttrWeight( pango.WEIGHT_BOLD, 0, -1 ) ] )
if self.appComment != "":
self.addLabel( self.appName, [ pango.AttrWeight( pango.WEIGHT_BOLD, 0, -1 ) ] )
self.addLabel( self.appComment )
else:
self.addLabel( self.appName )
self.addLabel ( "" )
def setSwapGeneric( self, swapGeneric ):
self.swapGeneric = swapGeneric
for child in self.labelBox: