Changed button icon text entry to a file browser button in the menu preferences.

This commit is contained in:
David Green 2011-05-14 23:29:28 +01:00
parent 28ec4116a2
commit e0c4438565
3 changed files with 590 additions and 328 deletions

View File

@ -8,43 +8,44 @@ 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-24 14:51+0100\n" "POT-Creation-Date: 2011-05-14 17:25+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"
"Language: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: usr/lib/linuxmint/mintMenu/mintMenu.py:43 #: usr/lib/linuxmint/mintMenu/mintMenu.py:50
msgid "Menu" msgid "Menu"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:250 #: usr/lib/linuxmint/mintMenu/mintMenu.py:266
msgid "Couldn't load plugin:" msgid "Couldn't load plugin:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:323 #: usr/lib/linuxmint/mintMenu/mintMenu.py:339
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:556
msgid "Preferences" msgid "Preferences"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:539 #: usr/lib/linuxmint/mintMenu/mintMenu.py:556
msgid "Edit menu" msgid "Edit menu"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:539 #: usr/lib/linuxmint/mintMenu/mintMenu.py:556
msgid "Reload plugins" msgid "Reload plugins"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:539 #: usr/lib/linuxmint/mintMenu/mintMenu.py:556
msgid "About" msgid "About"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenu.py:737 #: usr/lib/linuxmint/mintMenu/mintMenu.py:754
msgid "Advanced Gnome Menu" msgid "Advanced Gnome Menu"
msgstr "" msgstr ""
@ -150,7 +151,7 @@ msgid "Options"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:67 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:67
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:236 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:241
msgid "Applications" msgid "Applications"
msgstr "" msgstr ""
@ -159,8 +160,8 @@ msgid "Theme"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:70 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:70
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:233 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:238
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:234 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:239
msgid "Favorites" msgid "Favorites"
msgstr "" msgstr ""
@ -208,7 +209,7 @@ msgid "Search command:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:89 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:89
#: usr/lib/linuxmint/mintMenu/plugins/places.py:40 #: usr/lib/linuxmint/mintMenu/plugins/places.py:42
msgid "Places" msgid "Places"
msgstr "" msgstr ""
@ -231,27 +232,28 @@ msgid "Toggle Default Places:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:94 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:94
#: usr/lib/linuxmint/mintMenu/plugins/places.py:148 #: usr/lib/linuxmint/mintMenu/plugins/places.py:150
msgid "Computer" msgid "Computer"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:95 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:95
#: usr/lib/linuxmint/mintMenu/plugins/places.py:155 #: usr/lib/linuxmint/mintMenu/plugins/places.py:160
msgid "Home Folder" msgid "Home Folder"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:96 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:96
#: usr/lib/linuxmint/mintMenu/plugins/places.py:162 #: usr/lib/linuxmint/mintMenu/plugins/places.py:170
#: usr/lib/linuxmint/mintMenu/plugins/places.py:172
msgid "Network" msgid "Network"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:97 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:97
#: usr/lib/linuxmint/mintMenu/plugins/places.py:182 #: usr/lib/linuxmint/mintMenu/plugins/places.py:192
msgid "Desktop" msgid "Desktop"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:98 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:98
#: usr/lib/linuxmint/mintMenu/plugins/places.py:189 #: usr/lib/linuxmint/mintMenu/plugins/places.py:199
msgid "Trash" msgid "Trash"
msgstr "" msgstr ""
@ -260,7 +262,7 @@ msgid "Custom Places:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:101 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:101
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:38 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:39
msgid "System" msgid "System"
msgstr "" msgstr ""
@ -269,27 +271,27 @@ msgid "Toggle Default Items:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:105 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:105
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:134 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:135
msgid "Software Manager" msgid "Software Manager"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:106 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:106
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:141 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:142
msgid "Package Manager" msgid "Package Manager"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:107 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:107
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:148 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:149
msgid "Control Center" msgid "Control Center"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:108 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:108
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:155 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:159
msgid "Terminal" msgid "Terminal"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:109 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:109
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:162 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:173
msgid "Lock Screen" msgid "Lock Screen"
msgstr "" msgstr ""
@ -298,7 +300,7 @@ msgid "Log Out"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:111 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:111
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:176 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:187
msgid "Quit" msgid "Quit"
msgstr "" msgstr ""
@ -318,224 +320,230 @@ msgstr ""
msgid "Keyboard shortcut:" msgid "Keyboard shortcut:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:255 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:150
msgid "Images"
msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:267
msgid "Name" msgid "Name"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:256 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:268
msgid "Path" msgid "Path"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:271 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:283
msgid "Desktop theme" msgid "Desktop theme"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:406 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:418
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:440 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:452
msgid "Name:" msgid "Name:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:407 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:419
#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:441 #: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:453
msgid "Path:" msgid "Path:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/recent.py:36 #: usr/lib/linuxmint/mintMenu/plugins/recent.py:37
msgid "Recent documents" msgid "Recent documents"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:231 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:236
msgid "Search:" msgid "Search:"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:235 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:240
msgid "All applications" msgid "All applications"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:610 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:595
#, python-format #, python-format
msgid "Search Google for %s" msgid "Search Google for %s"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:617 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:602
#, python-format #, python-format
msgid "Search Wikipedia for %s" msgid "Search Wikipedia for %s"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:633 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:618
#, python-format #, python-format
msgid "Lookup %s in Dictionary" msgid "Lookup %s in Dictionary"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:640 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:625
#, python-format #, python-format
msgid "Search Computer for %s" msgid "Search Computer for %s"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:702 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:704
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:756 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:759
#, python-format #, python-format
msgid "Install package '%s'" msgid "Install package '%s'"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:860 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:863
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:927 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:931
msgid "Add to desktop" msgid "Add to desktop"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:861 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:864
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:928 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:932
msgid "Add to panel" msgid "Add to panel"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:863 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:866
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:909 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:913
msgid "Insert space" msgid "Insert space"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:864 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:867
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:910 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:914
msgid "Insert separator" msgid "Insert separator"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:866
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:931
msgid "Launch when I log in"
msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:868
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:933
msgid "Launch"
msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:869 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:869
msgid "Remove from favorites" #: usr/lib/linuxmint/mintMenu/plugins/applications.py:935
msgid "Launch when I log in"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:871 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:871
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:937 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:937
msgid "Launch"
msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:872
msgid "Remove from favorites"
msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:874
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:941
msgid "Edit properties" msgid "Edit properties"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:908 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:912
msgid "Remove" msgid "Remove"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:930 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:934
msgid "Show in my favorites" msgid "Show in my favorites"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:934 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:938
msgid "Uninstall" msgid "Uninstall"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:935 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:939
msgid "Delete from menu" msgid "Delete from menu"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:988 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:992
msgid "Search Google" msgid "Search Google"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:995 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:999
msgid "Search Wikipedia" msgid "Search Wikipedia"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1005 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1009
msgid "Lookup Dictionnary" msgid "Lookup Dictionnary"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1012 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1016
msgid "Search Computer" msgid "Search Computer"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1022 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1026
msgid "Find Software" msgid "Find Software"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1029 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1033
msgid "Find Tutorials" msgid "Find Tutorials"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1036 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1040
msgid "Find Hardware" msgid "Find Hardware"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1043 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1047
msgid "Find Ideas" msgid "Find Ideas"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1050 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1054
msgid "Find Users" msgid "Find Users"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1524 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1528
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:1701 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1705
msgid "All" msgid "All"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1701 #: usr/lib/linuxmint/mintMenu/plugins/applications.py:1705
msgid "Show all applications" msgid "Show all applications"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:138 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:139
msgid "Browse and install available software" msgid "Browse and install available software"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:145 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:146
msgid "Install, remove and upgrade software packages" msgid "Install, remove and upgrade software packages"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:152 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:156
msgid "Configure your system" msgid "Configure your system"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:159 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:163
msgid "Use the command line" msgid "Use the command line"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:166 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:166
msgid "Requires password to unlock" #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:180
msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:169
msgid "Logout" msgid "Logout"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:173 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:170
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:184
msgid "Log out or switch user" msgid "Log out or switch user"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:180 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:177
msgid "Requires password to unlock"
msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/system_management.py:191
msgid "Shutdown, restart, suspend or hibernate" msgid "Shutdown, restart, suspend or hibernate"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/places.py:152 #: usr/lib/linuxmint/mintMenu/plugins/places.py:157
msgid "" msgid ""
"Browse all local and remote disks and folders accessible from this computer" "Browse all local and remote disks and folders accessible from this computer"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/places.py:159 #: usr/lib/linuxmint/mintMenu/plugins/places.py:164
msgid "Open your personal folder" msgid "Open your personal folder"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/places.py:166 #: usr/lib/linuxmint/mintMenu/plugins/places.py:176
msgid "Browse bookmarked and local network locations" msgid "Browse bookmarked and local network locations"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/places.py:186 #: usr/lib/linuxmint/mintMenu/plugins/places.py:196
msgid "Browse items placed on the desktop" msgid "Browse items placed on the desktop"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/places.py:195 #: usr/lib/linuxmint/mintMenu/plugins/places.py:208
msgid "Browse deleted files" msgid "Browse deleted files"
msgstr "" msgstr ""
#: usr/lib/linuxmint/mintMenu/plugins/places.py:232 #: usr/lib/linuxmint/mintMenu/plugins/places.py:249
msgid "Empty trash" msgid "Empty trash"
msgstr "" msgstr ""

File diff suppressed because it is too large Load Diff

View File

@ -145,7 +145,19 @@ class mintMenuConfig( object ):
self.buttonText = wTree.get_widget( "buttonText" ) self.buttonText = wTree.get_widget( "buttonText" )
self.hotkeyText = wTree.get_widget( "hotkeyText" ) self.hotkeyText = wTree.get_widget( "hotkeyText" )
self.buttonIcon = wTree.get_widget( "buttonIcon" ) self.buttonIcon = wTree.get_widget( "buttonIcon" )
self.buttonIconImage = wTree.get_widget( "image_button_icon" ) self.buttonIconChooser = wTree.get_widget( "button_icon_chooser" )
self.image_filter = gtk.FileFilter()
self.image_filter.set_name(_("Images"))
self.image_filter.add_pattern("*.png")
self.image_filter.add_pattern("*.jpg")
self.image_filter.add_pattern("*.jpeg")
self.image_filter.add_pattern("*.bmp")
self.image_filter.add_pattern("*.ico")
self.image_filter.add_pattern("*.xpm")
self.image_filter.add_pattern("*.svg")
self.buttonIconChooser.add_filter(self.image_filter)
self.buttonIconChooser.set_filter(self.image_filter)
self.buttonIconImage = wTree.get_widget("image_button_icon")
self.searchCommand = wTree.get_widget( "search_command" ) self.searchCommand = wTree.get_widget( "search_command" )
self.computertoggle = wTree.get_widget( "computercheckbutton" ) self.computertoggle = wTree.get_widget( "computercheckbutton" )
self.homefoldertoggle = wTree.get_widget( "homecheckbutton" ) self.homefoldertoggle = wTree.get_widget( "homecheckbutton" )
@ -210,7 +222,7 @@ class mintMenuConfig( object ):
self.bindGconfValueToWidget( self.gconf, "bool", "hide_applet_icon", self.showButtonIcon, "toggled", self.setShowButtonIcon, self.getShowButtonIcon ) self.bindGconfValueToWidget( self.gconf, "bool", "hide_applet_icon", self.showButtonIcon, "toggled", self.setShowButtonIcon, self.getShowButtonIcon )
self.bindGconfValueToWidget( self.gconf, "string", "applet_text", self.buttonText, "changed", self.buttonText.set_text, self.buttonText.get_text ) self.bindGconfValueToWidget( self.gconf, "string", "applet_text", self.buttonText, "changed", self.buttonText.set_text, self.buttonText.get_text )
self.bindGconfValueToWidget( self.gconf, "string", "hot_key", self.hotkeyText, "changed", self.hotkeyText.set_text, self.hotkeyText.get_text ) self.bindGconfValueToWidget( self.gconf, "string", "hot_key", self.hotkeyText, "changed", self.hotkeyText.set_text, self.hotkeyText.get_text )
self.bindGconfValueToWidget( self.gconf, "string", "applet_icon", self.buttonIcon, "changed", self.setButtonIcon, self.buttonIcon.get_text ) self.bindGconfValueToWidget( self.gconf, "string", "applet_icon", self.buttonIconChooser, "file-set", self.setButtonIcon, self.buttonIconChooser.get_filename )
self.bindGconfValueToWidget( self.gconfApplications, "string", "search_command", self.searchCommand, "changed", self.searchCommand.set_text, self.searchCommand.get_text ) self.bindGconfValueToWidget( self.gconfApplications, "string", "search_command", self.searchCommand, "changed", self.searchCommand.set_text, self.searchCommand.get_text )
self.getPluginsToggle() self.getPluginsToggle()
@ -333,7 +345,7 @@ class mintMenuConfig( object ):
self.showButtonIcon.set_active(not value ) self.showButtonIcon.set_active(not value )
def setButtonIcon( self, value ): def setButtonIcon( self, value ):
self.buttonIcon.set_text(value) self.buttonIconChooser.set_filename(value)
self.buttonIconImage.set_from_file(value) self.buttonIconImage.set_from_file(value)
def getShowButtonIcon( self ): def getShowButtonIcon( self ):