Fix crash on Gtk 2.24.29+

This commit is contained in:
Sorokin Alexei 2016-01-25 16:03:15 +00:00 committed by Clement Lefebvre
parent 755083406b
commit 4b876e7faa

View File

@ -386,16 +386,25 @@ class mintMenuConfig( object ):
self.headingColorLabel.set_sensitive( widget.get_active() ) self.headingColorLabel.set_sensitive( widget.get_active() )
def getBackgroundColor( self ): def getBackgroundColor( self ):
try:
color = self.backgroundColor.get_color()
except:
color = Gdk.Color(0, 0, 0) color = Gdk.Color(0, 0, 0)
self.backgroundColor.get_color(color) self.backgroundColor.get_color(color)
return self.gdkColorToString( color ) return self.gdkColorToString( color )
def getBorderColor( self ): def getBorderColor( self ):
try:
color = self.borderColor.get_color()
except:
color = Gdk.Color(0, 0, 0) color = Gdk.Color(0, 0, 0)
self.borderColor.get_color(color) self.borderColor.get_color(color)
return self.gdkColorToString( color ) return self.gdkColorToString( color )
def getHeadingColor( self ): def getHeadingColor( self ):
try:
color = self.headingColor.get_color()
except:
color = Gdk.Color(0, 0, 0) color = Gdk.Color(0, 0, 0)
self.headingColor.get_color(color) self.headingColor.get_color(color)
return self.gdkColorToString( color ) return self.gdkColorToString( color )