Specific GTKRC name
This commit is contained in:
parent
3f63fac7ed
commit
b9bb28eb61
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
mintmenu (5.0.9) julia; urgency=low
|
||||||
|
|
||||||
|
* Added GTK RC name to mintmenu (allows GTK themes to have mintMenu specific sections)
|
||||||
|
|
||||||
|
-- Clement Lefebvre <root@linuxmint.com> Fri, 17 Sep 2010 14:54:00 +0000
|
||||||
|
|
||||||
mintmenu (5.0.8) julia; urgency=low
|
mintmenu (5.0.8) julia; urgency=low
|
||||||
|
|
||||||
* Added GTK Themes support and configuration
|
* Added GTK Themes support and configuration
|
||||||
|
@ -523,6 +523,8 @@ class MenuWin( object ):
|
|||||||
self.mainwin.window.connect( "unmap-event", lambda *args: self.applet.set_state( gtk.STATE_NORMAL ) )
|
self.mainwin.window.connect( "unmap-event", lambda *args: self.applet.set_state( gtk.STATE_NORMAL ) )
|
||||||
self.mainwin.window.connect( "size-allocate", lambda *args: self.positionMenu() )
|
self.mainwin.window.connect( "size-allocate", lambda *args: self.positionMenu() )
|
||||||
|
|
||||||
|
self.mainwin.window.set_name("mintmenu") # Name used in Gtk RC files
|
||||||
|
|
||||||
icon = iconManager.getIcon( self.mainwin.icon, 1 )
|
icon = iconManager.getIcon( self.mainwin.icon, 1 )
|
||||||
if icon:
|
if icon:
|
||||||
gtk.window_set_default_icon( icon )
|
gtk.window_set_default_icon( icon )
|
||||||
@ -644,7 +646,7 @@ class MenuWin( object ):
|
|||||||
style_settings = gtk.settings_get_default()
|
style_settings = gtk.settings_get_default()
|
||||||
desktop_theme = self.gconf.get( "string", '/desktop/gnome/interface/gtk_theme', "")
|
desktop_theme = self.gconf.get( "string", '/desktop/gnome/interface/gtk_theme', "")
|
||||||
if self.theme_name == "default":
|
if self.theme_name == "default":
|
||||||
style_settings.set_property("gtk-theme-name", desktop_theme)
|
style_settings.set_property("gtk-theme-name", desktop_theme)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
style_settings.set_property("gtk-theme-name", self.theme_name)
|
style_settings.set_property("gtk-theme-name", self.theme_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user