Commits

Konstantine Rybnikov committed 717efd4

first try

  • Participants
  • Parent commits d993468

Comments (0)

Files changed (1)

+# -*- coding: utf-8 -*-
 #
 # This copyrighted material is made available to anyone wishing to use, modify,
 # copy, or redistribute it subject to the terms and conditions of the GNU
 class moduleClass(Module):
     def __init__(self):
         Module.__init__(self)
-        self.priority = 99
+        self.priority = 0
+        # self.priority = 99
         self.sidebarTitle = N_("RFRemix configure")
         self.title = N_("RFRemix configure")
         self.icon = "workstation.png"
         label.set_size_request(500, -1)
 
         self.vbox.pack_start(label, False, False, 10)
-
-	label = gtk.Label(_("<b>GNOME Preferences (if GConf installed)</b>"))
+        
+        notebook = gtk.Notebook()
+        
+        ## Here goes first tab of notebook
+        first_tab_vbox = gtk.VBox()
+        
+        label = gtk.Label(_("<b>GNOME Preferences (if GConf installed)</b>"))
         label.set_use_markup(True)
-	label.set_line_wrap(True)
+        label.set_line_wrap(True)
         label.set_alignment(0.0, 0.5)
         label.set_size_request(500, -1)
         
-        self.vbox.pack_start(label, False, True, 10)
+        first_tab_vbox.pack_start(label, False, True, 10)
 
         self.ch1 = gtk.CheckButton(label=_('Use single window mode in Nautilus'))
-        self.vbox.pack_start(self.ch1, False, True, 1)
+        first_tab_vbox.pack_start(self.ch1, False, True, 1)
         self.ch2 = gtk.CheckButton(label=_('Turn on icons in menus'))
-        self.vbox.pack_start(self.ch2, False, True, 1)
+        first_tab_vbox.pack_start(self.ch2, False, True, 1)
         self.ch3 = gtk.CheckButton(label=_('Turn on icons on buttons'))
-        self.vbox.pack_start(self.ch3, False, True, 1)
+        first_tab_vbox.pack_start(self.ch3, False, True, 1)
         self.ch5 = gtk.CheckButton(label=_('Disable menu accelerators in GNOME Terminal'))
-        self.vbox.pack_start(self.ch5, False, True, 1)
+        first_tab_vbox.pack_start(self.ch5, False, True, 1)
         self.ch6 = gtk.CheckButton(label=_('Autodetec windows-1251 encoding in Gedit'))
-        self.vbox.pack_start(self.ch6, False, True, 1)
+        first_tab_vbox.pack_start(self.ch6, False, True, 1)
         self.ch7 = gtk.CheckButton(label=_('Place collection right in the Eye of GNOME'))
-        self.vbox.pack_start(self.ch7, False, True, 1)
+        first_tab_vbox.pack_start(self.ch7, False, True, 1)
         self.ch8 = gtk.CheckButton(label=_('No padding between icons and applets in panels'))
-        self.vbox.pack_start(self.ch8, False, True, 1)
+        first_tab_vbox.pack_start(self.ch8, False, True, 1)
 
         label = gtk.Label(_("<b>System Preferences</b>"))
         label.set_use_markup(True)
         label.set_alignment(0.0, 0.5)
         label.set_size_request(500, -1)
         
-        self.vbox.pack_start(label, False, True, 10)
+        first_tab_vbox.pack_start(label, False, True, 10)
 
         self.ch15 = gtk.CheckButton(label=_('Let PackageKit work without network'))
-        self.vbox.pack_start(self.ch15, False, True, 1)
+        first_tab_vbox.pack_start(self.ch15, False, True, 1)
 
         self.ch1.set_active(True)
         self.ch2.set_active(True)
             self.button.set_sensitive(False)
         box2.pack_start(self.button)
         
-        self.vbox.pack_start(box2, False, True, 0)
+        first_tab_vbox.pack_start(box2, False, True, 0)
+        
+        notebook.append_page(first_tab_vbox, gtk.Label(_("first tab")))
+        
+        ## Here goes second tab of notebook
+        second_tab_vbox = gtk.VBox()
+        notebook.append_page(second_tab_vbox, gtk.Label(_("second tab")))
+        
+        self.vbox.pack_start(notebook)
 
     def initializeUI(self):
         pass