Fix crash on Gtk 2.24.29+
This commit is contained in:
parent
755083406b
commit
4b876e7faa
@ -386,17 +386,26 @@ class mintMenuConfig( object ):
|
|||||||
self.headingColorLabel.set_sensitive( widget.get_active() )
|
self.headingColorLabel.set_sensitive( widget.get_active() )
|
||||||
|
|
||||||
def getBackgroundColor( self ):
|
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)
|
self.backgroundColor.get_color(color)
|
||||||
return self.gdkColorToString( color )
|
return self.gdkColorToString( color )
|
||||||
|
|
||||||
def getBorderColor( self ):
|
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)
|
self.borderColor.get_color(color)
|
||||||
return self.gdkColorToString( color )
|
return self.gdkColorToString( color )
|
||||||
|
|
||||||
def getHeadingColor( self ):
|
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)
|
self.headingColor.get_color(color)
|
||||||
return self.gdkColorToString( color )
|
return self.gdkColorToString( color )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user