Fix crash on Gtk 2.24.29+
This commit is contained in:
parent
755083406b
commit
4b876e7faa
@ -386,18 +386,27 @@ 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:
|
||||||
self.backgroundColor.get_color(color)
|
color = self.backgroundColor.get_color()
|
||||||
|
except:
|
||||||
|
color = Gdk.Color(0, 0, 0)
|
||||||
|
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:
|
||||||
self.borderColor.get_color(color)
|
color = self.borderColor.get_color()
|
||||||
|
except:
|
||||||
|
color = Gdk.Color(0, 0, 0)
|
||||||
|
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:
|
||||||
self.headingColor.get_color(color)
|
color = self.headingColor.get_color()
|
||||||
|
except:
|
||||||
|
color = Gdk.Color(0, 0, 0)
|
||||||
|
self.headingColor.get_color(color)
|
||||||
return self.gdkColorToString( color )
|
return self.gdkColorToString( color )
|
||||||
|
|
||||||
def gdkColorToString( self, gdkColor ):
|
def gdkColorToString( self, gdkColor ):
|
||||||
|
Loading…
Reference in New Issue
Block a user