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:
parent
3715090486
commit
23405ae40a
@ -545,11 +545,11 @@ class FavApplicationLauncher( ApplicationLauncher ):
|
|||||||
self.addLabel( self.appGenericName, [ pango.AttrWeight( pango.WEIGHT_BOLD, 0, -1 ) ] )
|
self.addLabel( self.appGenericName, [ pango.AttrWeight( pango.WEIGHT_BOLD, 0, -1 ) ] )
|
||||||
self.addLabel( self.appName )
|
self.addLabel( self.appName )
|
||||||
else:
|
else:
|
||||||
if self.appComment != "":
|
|
||||||
self.addLabel( self.appName, [ pango.AttrWeight( pango.WEIGHT_BOLD, 0, -1 ) ] )
|
self.addLabel( self.appName, [ pango.AttrWeight( pango.WEIGHT_BOLD, 0, -1 ) ] )
|
||||||
|
if self.appComment != "":
|
||||||
self.addLabel( self.appComment )
|
self.addLabel( self.appComment )
|
||||||
else:
|
else:
|
||||||
self.addLabel( self.appName )
|
self.addLabel ( "" )
|
||||||
|
|
||||||
def setSwapGeneric( self, swapGeneric ):
|
def setSwapGeneric( self, swapGeneric ):
|
||||||
self.swapGeneric = swapGeneric
|
self.swapGeneric = swapGeneric
|
||||||
|
Loading…
Reference in New Issue
Block a user