diff --git a/debian/changelog b/debian/changelog index 2d7b7dd..1d2c061 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mintmenu (5.0.8) julia; urgency=low + + * Added GTK Themes support and configuration + + -- Clement Lefebvre Wed, 15 Sep 2010 17:11:00 +0000 + mintmenu (5.0.7) julia; urgency=low * Fixed called to HidePlugin diff --git a/mintmenu.pot b/mintmenu.pot index 3240241..ec2579a 100644 --- a/mintmenu.pot +++ b/mintmenu.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\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" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -24,31 +24,31 @@ msgstr "" msgid "Couldn't load plugin:" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:325 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:323 msgid "Couldn't initialize plugin" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:539 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:537 msgid "Preferences" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:539 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:537 msgid "Edit menu" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:539 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:537 msgid "Reload plugins" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:539 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:537 msgid "About" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:729 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:745 msgid "Advanced Gnome Menu" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:732 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:748 msgid "Based on USP from S.Chanderbally" msgstr "" @@ -150,7 +150,7 @@ msgid "Options" msgstr "" #: 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" msgstr "" @@ -159,8 +159,8 @@ msgid "Colors" msgstr "" #: 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:256 msgid "Favorites" msgstr "" @@ -180,150 +180,158 @@ msgstr "" msgid "Borders:" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:78 -msgid "Number of columns:" +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:75 +msgid "Theme:" msgstr "" #: 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:81 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:82 msgid "Icon size:" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:82 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:83 msgid "Hover delay (ms):" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:83 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:84 msgid "Button icon:" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:84 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:85 msgid "Search command:" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:86 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:87 #: usr/lib/linuxmint/mintMenu/plugins/places.py:40 msgid "Places" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:87 -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:98 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:88 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:99 msgid "Allow Scrollbar" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:88 -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:99 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:89 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:100 msgid "Height:" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:89 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:90 msgid "Toggle Default Places:" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:90 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:91 #: usr/lib/linuxmint/mintMenu/plugins/places.py:145 msgid "Computer" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:91 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:92 #: usr/lib/linuxmint/mintMenu/plugins/places.py:152 msgid "Home Folder" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:92 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:93 #: usr/lib/linuxmint/mintMenu/plugins/places.py:159 msgid "Network" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:93 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:94 #: usr/lib/linuxmint/mintMenu/plugins/places.py:179 msgid "Desktop" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:94 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:95 #: usr/lib/linuxmint/mintMenu/plugins/places.py:186 msgid "Trash" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:95 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:96 msgid "Custom Places:" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:97 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:98 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:38 msgid "System" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:100 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:101 msgid "Toggle Default Items:" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:101 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:102 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:134 msgid "Software Manager" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:102 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:103 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:141 msgid "Package Manager" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:103 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:104 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:148 msgid "Control Center" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:104 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:105 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:155 msgid "Terminal" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:105 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:106 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:162 msgid "Lock Screen" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:106 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:107 msgid "Log Out" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:107 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:108 #: usr/lib/linuxmint/mintMenu/plugins/system_management.py:176 msgid "Quit" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:109 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:110 msgid "Edit Place" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:110 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:111 msgid "New Place" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:111 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:112 msgid "Select a folder" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:113 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:114 msgid "Keyboard shortcut:" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:244 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:245 msgid "Name" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:245 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:246 msgid "Path" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:371 -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:405 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:261 +msgid "Desktop theme" +msgstr "" + +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:396 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:430 msgid "Name:" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:372 -#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:406 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:397 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:431 msgid "Path:" msgstr "" @@ -331,142 +339,142 @@ msgstr "" msgid "Recent documents" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:253 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:252 msgid "Search:" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:257 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:256 msgid "All applications" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:620 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:619 #, python-format msgid "Search Google for %s" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:627 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:626 #, python-format msgid "Search Wikipedia for %s" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:643 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:642 #, python-format msgid "Lookup %s in Dictionary" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:650 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:649 #, python-format msgid "Search Computer for %s" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:712 -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:766 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:711 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:765 #, python-format msgid "Install package '%s'" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:870 -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:937 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:869 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:936 msgid "Add to desktop" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:871 -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:938 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:870 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:937 msgid "Add to panel" 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:919 -msgid "Insert space" -msgstr "" - -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:874 -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:920 msgid "Insert separator" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:876 -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:941 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:875 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:940 msgid "Launch when I log in" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:878 -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:943 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:877 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:942 msgid "Launch" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:879 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:878 msgid "Remove from favorites" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:881 -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:947 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:880 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:946 msgid "Edit properties" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:918 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:917 msgid "Remove" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:940 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:939 msgid "Show in my favorites" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:944 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:943 msgid "Uninstall" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:945 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:944 msgid "Delete from menu" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:998 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:997 msgid "Search Google" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1005 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1004 msgid "Search Wikipedia" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1015 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1014 msgid "Lookup Dictionnary" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1022 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1021 msgid "Search Computer" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1032 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1031 msgid "Find Software" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1039 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1038 msgid "Find Tutorials" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1046 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1045 msgid "Find Hardware" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1053 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1052 msgid "Find Ideas" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1060 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1059 msgid "Find Users" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1534 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1533 msgid "" "Couldn't save favorites. Check if you have write access to ~/.linuxmint/" "mintMenu" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1717 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1710 msgid "All" msgstr "" -#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1717 +#: usr/lib/linuxmint/mintMenu/plugins/applications.py:1710 msgid "Show all applications" msgstr "" diff --git a/usr/lib/linuxmint/mintMenu/mintMenu.py b/usr/lib/linuxmint/mintMenu/mintMenu.py index 72a8e43..da953a4 100755 --- a/usr/lib/linuxmint/mintMenu/mintMenu.py +++ b/usr/lib/linuxmint/mintMenu/mintMenu.py @@ -501,6 +501,7 @@ class MenuWin( object ): self.gconf = EasyGConf( "/apps/mintMenu/" ) self.gconf.notifyAdd( "applet_text", self.gconfEntriesChanged ) + self.gconf.notifyAdd( "theme_name", self.changeTheme ) self.gconf.notifyAdd( "hot_key", self.gconfEntriesChanged ) self.gconf.notifyAdd( "applet_icon", self.gconfEntriesChanged ) self.gconf.notifyAdd( "hide_applet_icon", self.gconfEntriesChanged ) @@ -603,6 +604,7 @@ class MenuWin( object ): def getGconfEntries( self, *args, **kargs ): self.hideIcon = self.gconf.get( "bool", "hide_applet_icon", False ) 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", "Super_L" ) self.buttonIcon = self.gconf.get( "string", "applet_icon", ICON ) self.setIconSize( self.gconf.get( "int", "applet_icon_size", 2 ) ) @@ -618,6 +620,9 @@ class MenuWin( object ): self.iconSize = gtk.ICON_SIZE_MENU def changeBackground( self, applet, type, color, pixmap ): + + self.applyTheme() + # get reset style self.applet.set_style(None) rc_style = gtk.RcStyle() @@ -629,7 +634,22 @@ class MenuWin( object ): style = applet.style style.bg_pixmap[ gtk.STATE_NORMAL ] = pixmap 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 ): @@ -701,8 +721,7 @@ class MenuWin( object ): def gconfEntriesChanged( self, *args ): self.getGconfEntries() - self.updateButton() - + self.updateButton() def showAboutDialog( self, uicomponent, verb ): diff --git a/usr/lib/linuxmint/mintMenu/mintMenuConfig.glade b/usr/lib/linuxmint/mintMenu/mintMenuConfig.glade index f60e15e..eaefe62 100644 --- a/usr/lib/linuxmint/mintMenu/mintMenuConfig.glade +++ b/usr/lib/linuxmint/mintMenu/mintMenuConfig.glade @@ -648,7 +648,7 @@ True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 3 + 4 2 2 @@ -743,6 +743,29 @@ GTK_FILL + + + True + 0 + Theme: + + + 3 + 4 + + + + + True + Default + + + 1 + 2 + 3 + 4 + + False diff --git a/usr/lib/linuxmint/mintMenu/mintMenuConfig.py b/usr/lib/linuxmint/mintMenu/mintMenuConfig.py index 22b8af8..d26ce4d 100755 --- a/usr/lib/linuxmint/mintMenu/mintMenuConfig.py +++ b/usr/lib/linuxmint/mintMenu/mintMenuConfig.py @@ -72,6 +72,7 @@ class mintMenuConfig( object ): wTree.get_widget("backgroundColorLabel").set_text(_("Background:")) wTree.get_widget("headingColorLabel").set_text(_("Headings:")) wTree.get_widget("borderColorLabel").set_text(_("Borders:")) + wTree.get_widget("themeLabel").set_text(_("Theme:")) #wTree.get_widget("applicationsLabel").set_text(_("Applications")) #wTree.get_widget("favoritesLabel").set_text(_("Favorites")) @@ -250,10 +251,34 @@ class mintMenuConfig( object ): wTree.get_widget("upButton").connect("clicked", self.moveUp) wTree.get_widget("downButton").connect("clicked", self.moveDown) 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.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): if (commands.getoutput("gconftool-2 --get /apps/mintMenu/plugins_list | grep recent | wc -l") == "0"):