[Sugar-devel] [PATCH]_Switch_Desktop

Ignacio Rodríguez nachoel01 at gmail.com
Thu Oct 11 08:41:46 EDT 2012


     def _update(self):
         active = self._model.get_active_desktop()
-        self._active_desktop_label.set_markup("<big>" + _("Active desktop environment: ")
-            + "<b>" + active + "</b></big>")
-        self._active_desktop_label.show()
-        
+        if active == 'GNOME':
+		self._active_desktop_label.set_markup("<big>" + _("After restart desktop environment: ")
+        	    + "<b>" + 'GNOME' + "</b></big>")
+        	self._active_desktop_label.show()
+        else:
+		self._active_desktop_label.set_markup("<big>" + _("Active desktop environment: ")
+        	    + "<b>" + active + "</b></big>")
+        	self._active_desktop_label.show()
         sugar_active = active == "Sugar"
         gnome_active = active == "GNOME"
         unknown_active = active == "Unknown"


More information about the Sugar-devel mailing list