Added GTK themes support and configuration

This commit is contained in:
Clement Lefebvre 2010-09-15 17:11:24 +01:00
parent 8ce4ae0111
commit 063db350db
5 changed files with 173 additions and 92 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
mintmenu (5.0.8) julia; urgency=low
* Added GTK Themes support and configuration
-- Clement Lefebvre <root@linuxmint.com> Wed, 15 Sep 2010 17:11:00 +0000
mintmenu (5.0.7) julia; urgency=low mintmenu (5.0.7) julia; urgency=low
* Fixed called to HidePlugin * Fixed called to HidePlugin

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-09-13 12:11+0100\n" "POT-Creation-Date: 2010-09-15 17:10+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -24,31 +24,31 @@ msgstr ""
msgid "Couldn't load plugin:" msgid "Couldn't load plugin:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:325 #: usr/lib/linuxmint/mintMenu/mintMenu.py:323
msgid "Couldn't initialize plugin" msgid "Couldn't initialize plugin"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:539 #: usr/lib/linuxmint/mintMenu/mintMenu.py:537
msgid "Preferences" msgid "Preferences"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:539 #: usr/lib/linuxmint/mintMenu/mintMenu.py:537
msgid "Edit menu" msgid "Edit menu"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:539 #: usr/lib/linuxmint/mintMenu/mintMenu.py:537
msgid "Reload plugins" msgid "Reload plugins"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:539 #: usr/lib/linuxmint/mintMenu/mintMenu.py:537
msgid "About" msgid "About"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:729 #: usr/lib/linuxmint/mintMenu/mintMenu.py:745
msgid "Advanced Gnome Menu" msgid "Advanced Gnome Menu"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:732 #: usr/lib/linuxmint/mintMenu/mintMenu.py:748
msgid "Based on USP from S.Chanderbally" msgid "Based on USP from S.Chanderbally"
msgstr "" msgstr ""
@ -150,7 +150,7 @@ msgid "Options"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:66 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:66
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:258 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:257
msgid "Applications" msgid "Applications"
msgstr "" msgstr ""
@ -159,8 +159,8 @@ msgid "Colors"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:69 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:69
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:254
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:255 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:255
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:256
msgid "Favorites" msgid "Favorites"
msgstr "" msgstr ""
@ -180,150 +180,158 @@ msgstr ""
msgid "Borders:" msgid "Borders:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:78 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:75
msgid "Number of columns:" msgid "Theme:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:79 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:79
msgid "Number of columns:"
msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:80 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:80
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:81 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:81
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:82
msgid "Icon size:" msgid "Icon size:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:82 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:83
msgid "Hover delay (ms):" msgid "Hover delay (ms):"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:83 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:84
msgid "Button icon:" msgid "Button icon:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:84 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:85
msgid "Search command:" msgid "Search command:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:86 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:87
#: usr/lib/linuxmint/mintMenu/plugins/places.py:40 #: usr/lib/linuxmint/mintMenu/plugins/places.py:40
msgid "Places" msgid "Places"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:87 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:88
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:98 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:99
msgid "Allow Scrollbar" msgid "Allow Scrollbar"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:88 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:89
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:99 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:100
msgid "Height:" msgid "Height:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:89 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:90
msgid "Toggle Default Places:" msgid "Toggle Default Places:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:90 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:91
#: usr/lib/linuxmint/mintMenu/plugins/places.py:145 #: usr/lib/linuxmint/mintMenu/plugins/places.py:145
msgid "Computer" msgid "Computer"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:91 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:92
#: usr/lib/linuxmint/mintMenu/plugins/places.py:152 #: usr/lib/linuxmint/mintMenu/plugins/places.py:152
msgid "Home Folder" msgid "Home Folder"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:92 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:93
#: usr/lib/linuxmint/mintMenu/plugins/places.py:159 #: usr/lib/linuxmint/mintMenu/plugins/places.py:159
msgid "Network" msgid "Network"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:93 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:94
#: usr/lib/linuxmint/mintMenu/plugins/places.py:179 #: usr/lib/linuxmint/mintMenu/plugins/places.py:179
msgid "Desktop" msgid "Desktop"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:94 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:95
#: usr/lib/linuxmint/mintMenu/plugins/places.py:186 #: usr/lib/linuxmint/mintMenu/plugins/places.py:186
msgid "Trash" msgid "Trash"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:95 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:96
msgid "Custom Places:" msgid "Custom Places:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:97 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:98
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:38 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:38
msgid "System" msgid "System"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:100 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:101
msgid "Toggle Default Items:" msgid "Toggle Default Items:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:101 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:102
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:134 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:134
msgid "Software Manager" msgid "Software Manager"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:102 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:103
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:141 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:141
msgid "Package Manager" msgid "Package Manager"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:103 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:104
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:148 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:148
msgid "Control Center" msgid "Control Center"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:104 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:105
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:155 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:155
msgid "Terminal" msgid "Terminal"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:105 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:106
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:162 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:162
msgid "Lock Screen" msgid "Lock Screen"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:106 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:107
msgid "Log Out" msgid "Log Out"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:107 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:108
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:176 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:176
msgid "Quit" msgid "Quit"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:109 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:110
msgid "Edit Place" msgid "Edit Place"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:110 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:111
msgid "New Place" msgid "New Place"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:111 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:112
msgid "Select a folder" msgid "Select a folder"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:113 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:114
msgid "Keyboard shortcut:" msgid "Keyboard shortcut:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:244 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:245
msgid "Name" msgid "Name"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:245 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:246
msgid "Path" msgid "Path"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:371 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:261
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:405 msgid "Desktop theme"
msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:396
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:430
msgid "Name:" msgid "Name:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:372 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:397
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:406 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:431
msgid "Path:" msgid "Path:"
msgstr "" msgstr ""
@ -331,142 +339,142 @@ msgstr ""
msgid "Recent documents" msgid "Recent documents"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:253 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:252
msgid "Search:" msgid "Search:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:257 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:256
msgid "All applications" msgid "All applications"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:620 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:619
#, python-format #, python-format
msgid "Search Google for %s" msgid "Search Google for %s"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:627 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:626
#, python-format #, python-format
msgid "Search Wikipedia for %s" msgid "Search Wikipedia for %s"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:643 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:642
#, python-format #, python-format
msgid "Lookup %s in Dictionary" msgid "Lookup %s in Dictionary"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:650 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:649
#, python-format #, python-format
msgid "Search Computer for %s" msgid "Search Computer for %s"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:712 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:711
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:766 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:765
#, python-format #, python-format
msgid "Install package '%s'" msgid "Install package '%s'"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:870 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:869
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:937 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:936
msgid "Add to desktop" msgid "Add to desktop"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:871 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:870
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:938 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:937
msgid "Add to panel" msgid "Add to panel"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:872
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:918
msgid "Insert space"
msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:873 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:873
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:919 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:919
msgid "Insert space"
msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:874
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:920
msgid "Insert separator" msgid "Insert separator"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:876 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:875
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:941 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:940
msgid "Launch when I log in" msgid "Launch when I log in"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:878 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:877
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:943 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:942
msgid "Launch" msgid "Launch"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:879 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:878
msgid "Remove from favorites" msgid "Remove from favorites"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:881 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:880
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:947 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:946
msgid "Edit properties" msgid "Edit properties"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:918 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:917
msgid "Remove" msgid "Remove"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:940 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:939
msgid "Show in my favorites" msgid "Show in my favorites"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:944 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:943
msgid "Uninstall" msgid "Uninstall"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:945 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:944
msgid "Delete from menu" msgid "Delete from menu"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:998 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:997
msgid "Search Google" msgid "Search Google"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1005 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1004
msgid "Search Wikipedia" msgid "Search Wikipedia"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1015 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1014
msgid "Lookup Dictionnary" msgid "Lookup Dictionnary"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1022 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1021
msgid "Search Computer" msgid "Search Computer"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1032 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1031
msgid "Find Software" msgid "Find Software"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1039 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1038
msgid "Find Tutorials" msgid "Find Tutorials"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1046 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1045
msgid "Find Hardware" msgid "Find Hardware"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1053 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1052
msgid "Find Ideas" msgid "Find Ideas"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1060 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1059
msgid "Find Users" msgid "Find Users"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1534 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1533
msgid "" msgid ""
"Couldn't save favorites. Check if you have write access to ~/.linuxmint/" "Couldn't save favorites. Check if you have write access to ~/.linuxmint/"
"mintMenu" "mintMenu"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1717 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1710
msgid "All" msgid "All"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1717 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1710
msgid "Show all applications" msgid "Show all applications"
msgstr "" msgstr ""

View File

@ -501,6 +501,7 @@ class MenuWin( object ):
self.gconf = EasyGConf( "/apps/mintMenu/" ) self.gconf = EasyGConf( "/apps/mintMenu/" )
self.gconf.notifyAdd( "applet_text", self.gconfEntriesChanged ) self.gconf.notifyAdd( "applet_text", self.gconfEntriesChanged )
self.gconf.notifyAdd( "theme_name", self.changeTheme )
self.gconf.notifyAdd( "hot_key", self.gconfEntriesChanged ) self.gconf.notifyAdd( "hot_key", self.gconfEntriesChanged )
self.gconf.notifyAdd( "applet_icon", self.gconfEntriesChanged ) self.gconf.notifyAdd( "applet_icon", self.gconfEntriesChanged )
self.gconf.notifyAdd( "hide_applet_icon", self.gconfEntriesChanged ) self.gconf.notifyAdd( "hide_applet_icon", self.gconfEntriesChanged )
@ -603,6 +604,7 @@ class MenuWin( object ):
def getGconfEntries( self, *args, **kargs ): def getGconfEntries( self, *args, **kargs ):
self.hideIcon = self.gconf.get( "bool", "hide_applet_icon", False ) self.hideIcon = self.gconf.get( "bool", "hide_applet_icon", False )
self.buttonText = self.gconf.get( "string", "applet_text", "Menu" ) self.buttonText = self.gconf.get( "string", "applet_text", "Menu" )
self.theme_name = self.gconf.get( "string", "theme_name", "default" )
self.hotkeyText = self.gconf.get( "string", "hot_key", "<Control>Super_L" ) self.hotkeyText = self.gconf.get( "string", "hot_key", "<Control>Super_L" )
self.buttonIcon = self.gconf.get( "string", "applet_icon", ICON ) self.buttonIcon = self.gconf.get( "string", "applet_icon", ICON )
self.setIconSize( self.gconf.get( "int", "applet_icon_size", 2 ) ) self.setIconSize( self.gconf.get( "int", "applet_icon_size", 2 ) )
@ -618,6 +620,9 @@ class MenuWin( object ):
self.iconSize = gtk.ICON_SIZE_MENU self.iconSize = gtk.ICON_SIZE_MENU
def changeBackground( self, applet, type, color, pixmap ): def changeBackground( self, applet, type, color, pixmap ):
self.applyTheme()
# get reset style # get reset style
self.applet.set_style(None) self.applet.set_style(None)
rc_style = gtk.RcStyle() rc_style = gtk.RcStyle()
@ -630,6 +635,21 @@ class MenuWin( object ):
style.bg_pixmap[ gtk.STATE_NORMAL ] = pixmap style.bg_pixmap[ gtk.STATE_NORMAL ] = pixmap
applet.set_style( style ) applet.set_style( style )
def changeTheme(self, *args):
self.gconfEntriesChanged()
self.applyTheme()
self.mainwin.RegenPlugins()
def applyTheme(self):
style_settings = gtk.settings_get_default()
desktop_theme = self.gconf.get( "string", '/desktop/gnome/interface/gtk_theme', "")
if self.theme_name == "default":
style_settings.set_property("gtk-theme-name", desktop_theme)
else:
try:
style_settings.set_property("gtk-theme-name", self.theme_name)
except:
style_settings.set_property("gtk-theme-name", desktop_theme)
def changeOrientation( self, *args, **kargs ): def changeOrientation( self, *args, **kargs ):
@ -703,7 +723,6 @@ class MenuWin( object ):
self.getGconfEntries() self.getGconfEntries()
self.updateButton() self.updateButton()
def showAboutDialog( self, uicomponent, verb ): def showAboutDialog( self, uicomponent, verb ):
gtk.about_dialog_set_email_hook( lambda dialog, mail: gnomevfs.url_show( "mailto:" + mail ) ) gtk.about_dialog_set_email_hook( lambda dialog, mail: gnomevfs.url_show( "mailto:" + mail ) )

View File

@ -648,7 +648,7 @@
<widget class="GtkTable" id="table29"> <widget class="GtkTable" id="table29">
<property name="visible">True</property> <property name="visible">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="n_rows">3</property> <property name="n_rows">4</property>
<property name="n_columns">2</property> <property name="n_columns">2</property>
<property name="row_spacing">2</property> <property name="row_spacing">2</property>
<child> <child>
@ -743,6 +743,29 @@
<property name="y_options">GTK_FILL</property> <property name="y_options">GTK_FILL</property>
</packing> </packing>
</child> </child>
<child>
<widget class="GtkLabel" id="themeLabel">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Theme:</property>
</widget>
<packing>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
</packing>
</child>
<child>
<widget class="GtkComboBox" id="themesCombo">
<property name="visible">True</property>
<property name="items" translatable="yes">Default</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
</packing>
</child>
</widget> </widget>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>

View File

@ -72,6 +72,7 @@ class mintMenuConfig( object ):
wTree.get_widget("backgroundColorLabel").set_text(_("Background:")) wTree.get_widget("backgroundColorLabel").set_text(_("Background:"))
wTree.get_widget("headingColorLabel").set_text(_("Headings:")) wTree.get_widget("headingColorLabel").set_text(_("Headings:"))
wTree.get_widget("borderColorLabel").set_text(_("Borders:")) wTree.get_widget("borderColorLabel").set_text(_("Borders:"))
wTree.get_widget("themeLabel").set_text(_("Theme:"))
#wTree.get_widget("applicationsLabel").set_text(_("Applications")) #wTree.get_widget("applicationsLabel").set_text(_("Applications"))
#wTree.get_widget("favoritesLabel").set_text(_("Favorites")) #wTree.get_widget("favoritesLabel").set_text(_("Favorites"))
@ -251,10 +252,34 @@ class mintMenuConfig( object ):
wTree.get_widget("downButton").connect("clicked", self.moveDown) wTree.get_widget("downButton").connect("clicked", self.moveDown)
wTree.get_widget("removeButton").connect("clicked", self.removePlace) wTree.get_widget("removeButton").connect("clicked", self.removePlace)
#Detect themes and show theme here
theme_name = commands.getoutput("gconftool-2 --get /apps/mintMenu/theme_name").strip()
themes = commands.getoutput("find /usr/share/themes -name gtkrc")
themes = themes.split("\n")
model = gtk.ListStore(str, str)
wTree.get_widget("themesCombo").set_model(model)
selected_theme = model.append([_("Desktop theme"), "default"])
for theme in themes:
if theme.startswith("/usr/share/themes") and theme.endswith("/gtk-2.0/gtkrc"):
theme = theme.replace("/usr/share/themes/", "")
theme = theme.replace("gtk-2.0", "")
theme = theme.replace("gtkrc", "")
theme = theme.replace("/", "")
theme = theme.strip()
iter = model.append([theme, theme])
if theme == theme_name:
selected_theme = iter
wTree.get_widget("themesCombo").set_active_iter(selected_theme)
wTree.get_widget("themesCombo").connect("changed", self.set_theme)
self.mainWindow.present() self.mainWindow.present()
self.getBackgroundColor() self.getBackgroundColor()
def set_theme(self, widget):
model = widget.get_model()
iter = widget.get_active_iter()
theme_name = model.get_value(iter, 1)
os.system("gconftool-2 --type string --set /apps/mintMenu/theme_name \"%s\"" % theme_name)
def getPluginsToggle(self): def getPluginsToggle(self):
if (commands.getoutput("gconftool-2 --get /apps/mintMenu/plugins_list | grep recent | wc -l") == "0"): if (commands.getoutput("gconftool-2 --get /apps/mintMenu/plugins_list | grep recent | wc -l") == "0"):
self.showRecentPlugin.set_active(False) self.showRecentPlugin.set_active(False)