Fix crash on Gtk 2.24.29+
This commit is contained in:
parent
755083406b
commit
4b876e7faa
@ -386,16 +386,25 @@ class mintMenuConfig( object ):
|
||||
self.headingColorLabel.set_sensitive( widget.get_active() )
|
||||
|
||||
def getBackgroundColor( self ):
|
||||
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 ):
|
||||
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 ):
|
||||
try:
|
||||
color = self.headingColor.get_color()
|
||||
except:
|
||||
color = Gdk.Color(0, 0, 0)
|
||||
self.headingColor.get_color(color)
|
||||
return self.gdkColorToString( color )
|
||||
|
Loading…
Reference in New Issue
Block a user