Commits

Konstantine Rybnikov committed c9b7f2a

more enhancements

  • Participants
  • Parent commits 717efd4

Comments (0)

Files changed (1)

                 os.system('/usr/sbin/freetype-backend rfremix')
             else: # 1 or else is for original fonts
                 os.system(' /usr/sbin/freetype-backend fedora')
+        if self.wmanager_button.get_property('sensitive'):
+            if self.wmanager_button.state == 0: # gdm
+                print "yeeeeah! GDM!"
+            else: # kdm
+                print "woohooo!! KDM!!"
         return RESULT_SUCCESS
 
     def createScreen(self):
         second_tab_vbox = gtk.VBox()
         notebook.append_page(second_tab_vbox, gtk.Label(_("second tab")))
         
+        label = gtk.Label(_("Choose window manager"))
+        label.set_alignment(0.0, 0.5)
+        second_tab_vbox.pack_start(label, False, True, 0)
+        
+        __active_already_set = False # is gdm is not present and someone is (kdm) -- let's set that one. Else -- gdm is active anyway.
+        box = gtk.VBox()
+        self.wmanager_button = gtk.RadioButton(None, (_("GDM (default)")))
+        self.wmanager_button.set_active(True)
+        if not os.path.exists('/usr/bin/gdm'):
+            self.wmanager_button.set_sensitive(False)
+        else:
+            __active_already_set = True
+        box.pack_start(self.wmanager_button)
+        self.wmanager_button = gtk.RadioButton(self.wmanager_button, (_("KDM")))
+        self.wmanager_button.set_active(True)
+        if not os.path.exists('/usr/bin/kdm'):
+            self.wmanager_button.set_sensitive(False)
+        else:
+            if __active_already_set is False:
+                self.wmanager_button.set_active(True)
+        
+        box.pack_start(self.wmanager_button)
+        
+        second_tab_vbox.pack_start(box, False, True, 0)
+        
         self.vbox.pack_start(notebook)
-
+    
     def initializeUI(self):
         pass