Use different icon name for network in places when theme is not Mint-X

This commit is contained in:
Clement Lefebvre 2010-10-26 14:44:31 +01:00
parent 435908ec44
commit db45018cc6
2 changed files with 10 additions and 4 deletions

3
debian/changelog vendored
View File

@ -1,8 +1,9 @@
mintmenu (5.1.6) julia; urgency=low mintmenu (5.1.6) julia; urgency=low
* Highlighted apps now appear in bold, as opposed to using the fg[gtk.SELECTED] color (to avoid white on white issues with certain themes) * Highlighted apps now appear in bold, as opposed to using the fg[gtk.SELECTED] color (to avoid white on white issues with certain themes)
* Network icon in places uses "network-workgroup" icon name when the theme is not Mint-X.
-- Clement Lefebvre <root@linuxmint.com> Tue, 26 Oct 2010 13:57:00 +0000 -- Clement Lefebvre <root@linuxmint.com> Tue, 26 Oct 2010 14:44:00 +0000
mintmenu (5.1.5) julia; urgency=low mintmenu (5.1.5) julia; urgency=low

View File

@ -135,7 +135,7 @@ class pluginclass( object ):
# Allow plugin to be minimized to the left plugin pane # Allow plugin to be minimized to the left plugin pane
self.sticky = self.gconf.get( "bool", "sticky", False ) self.sticky = self.gconf.get( "bool", "sticky", False )
self.minimized = self.gconf.get( "bool", "minimized", False ) self.minimized = self.gconf.get( "bool", "minimized", False )
def ClearAll(self): def ClearAll(self):
for child in self.placesBtnHolder.get_children(): for child in self.placesBtnHolder.get_children():
child.destroy() child.destroy()
@ -159,8 +159,13 @@ class pluginclass( object ):
self.placesBtnHolder.pack_start( Button2, False, False ) self.placesBtnHolder.pack_start( Button2, False, False )
self.mintMenuWin.setTooltip( Button2, _("Open your personal folder") ) self.mintMenuWin.setTooltip( Button2, _("Open your personal folder") )
if ( self.shownetwork == True ): if ( self.shownetwork == True ):
Button3 = easyButton( "notification-network-ethernet-connected", self.iconsize, [_("Network")], -1, -1 ) gconftheme = EasyGConf( "/desktop/gnome/interface/" )
icon_theme = gconftheme.get("string", "icon_theme", "Mint-X")
if "Mint-X" in icon_theme:
Button3 = easyButton( "notification-network-ethernet-connected", self.iconsize, [_("Network")], -1, -1)
else:
Button3 = easyButton( "network-workgroup", self.iconsize, [_("Network")], -1, -1)
Button3.connect( "clicked", self.ButtonClicked, "nautilus network:" ) Button3.connect( "clicked", self.ButtonClicked, "nautilus network:" )
Button3.show() Button3.show()
self.placesBtnHolder.pack_start( Button3, False, False ) self.placesBtnHolder.pack_start( Button3, False, False )