~growlf/gdm2setup/0.2

« back to all changes in this revision

Viewing changes to src/gdm2setup.py

  • Committer: Garth Johnson
  • Date: 2010-01-20 01:56:46 UTC
  • Revision ID: growlf@saphyre-20100120015646-1huy0b30hwblh9oh
Updated install instructions to include installing to the system menu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
        userlist_cb = self.builder.get_object('autologin_combobox')
63
63
        userlist_cb.set_sensitive(True) 
64
64
        if not userlist_cb.get_active_text():
65
 
            userlist_cb.set_active(0)
66
 
          
 
65
            userlist_cb.set_active(0)          
67
66
        # Set the conf
68
67
        self.theme.SetAutoLogin(True, userlist_cb.get_active_text())
69
68
 
128
127
 
129
128
        # Setup main window
130
129
        self.window = self.builder.get_object("mainwindow")
 
130
        
 
131
        # Set Autologin status and associated buttons
131
132
        if self.theme.GetAutoLogin():
132
133
            self.builder.get_object("autologin_radiobutton").set_active(True)
133
134
            self.builder.get_object("autologin_combobox").set_sensitive(True) 
137
138
            self.builder.get_object("autologin_combobox").set_sensitive(False) 
138
139
            self.builder.get_object("userlist_checkbutton").set_sensitive(True) 
139
140
            
 
141
        # Build the GTKThemes combobox entries and attach them
140
142
        GTKThemes = self.theme.GetGTKThemes()
141
143
        GTKTheme = self.theme.GetLoginGTKTheme()
142
144
        self.gtktheme_cb = self.builder.get_object('gtktheme_combobox')
152
154
                self.gtktheme_cb.set_active(themes_count)
153
155
            themes_count += 1
154
156
            
 
157
        # Build the IconThemes combobox entries and attach them
155
158
        IconThemes = self.theme.GetIconThemes()
156
159
        IconTheme = self.theme.GetLoginIconTheme()
157
160
        self.icontheme_cb = self.builder.get_object('icontheme_combobox')
167
170
                self.icontheme_cb.set_active(themes_count)
168
171
            themes_count += 1
169
172
            
 
173
        # Build the UserList combobox entries and attach them
170
174
        UserList = self.theme.GetAvailableUsers() 
171
175
        User = self.theme.GetAutoLoginUser()
172
176
        self.user_cb = self.builder.get_object('autologin_combobox')
183
187
            users_count += 1
184
188
        self.user_cb.set_sensitive(False) 
185
189
 
 
190
        # Set the preview image to the current 
186
191
        self.PreviewThumb = self.builder.get_object('wallpaper_image')
187
192
        self.update_preview()
188
193
        
 
194
        # Set the status of the login sound option
189
195
        playsound_cb = self.builder.get_object('playsound_checkbutton')
190
196
        playsound_cb.set_active(self.theme.GetLoginSound())
191
197