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,17 +386,26 @@ class mintMenuConfig( object ):
self.headingColorLabel.set_sensitive( widget.get_active() )
def getBackgroundColor( self ):
color = Gdk.Color(0,0,0)
try:
color = self.backgroundColor.get_color()
except:
color = Gdk.Color(0, 0, 0)
self.backgroundColor.get_color(color)
return self.gdkColorToString( color )
def getBorderColor( self ):
color = Gdk.Color(0,0,0)
try:
color = self.borderColor.get_color()
except:
color = Gdk.Color(0, 0, 0)
self.borderColor.get_color(color)
return self.gdkColorToString( color )
def getHeadingColor( self ):
color = Gdk.Color(0,0,0)
try:
color = self.headingColor.get_color()
except:
color = Gdk.Color(0, 0, 0)
self.headingColor.get_color(color)
return self.gdkColorToString( color )