~gilir/+junk/ubiquity-lxdm-autologin

« back to all changes in this revision

Viewing changes to ubiquity/components/mythbuntu.py

  • Committer: Bazaar Package Importer
  • Author(s): Evan Dandrea, Evan Dandrea, Mario Limonciello, Colin Watson
  • Date: 2008-01-30 15:32:25 UTC
  • Revision ID: james.westby@ubuntu.com-20080130153225-z3npeh2w3gwzeg2i
Tags: 1.7.5
[ Evan Dandrea ]
* Add accessibility support to 'only-ubiquity'.
* Move noninteractive frontend to a purely gobject-based event loop
  (LP: #149477).
* Noninteractive mode now implies --automatic (LP: #149473).
* Add new nautilus gconf keys to the list we temporarily disable to
  prevent constant pop-ups.
* Automatic update of included source packages: console-setup
  1.21ubuntu2, migration-assistant 0.6.0, partman-target 52ubuntu3,
  user-setup 1.16ubuntu3.

[ Mario Limonciello ]
* Add proper theme support to mythbuntu FE.

[ Colin Watson ]
* Update console-setup component for layout and variant changes in
  console-setup 1.21ubuntu1.
* Run fontconfig-voodoo with --force.
* Call 'fontconfig-voodoo --auto --force --quiet' when the language is
  changed. May help with LP #185269.

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
        FilteredCommand.ok_handler(self)
146
146
 
147
147
class MythbuntuThemes(FilteredCommand):
 
148
#since all themes are pre-installed, we are seeding the ones
 
149
#that will be *removed*
148
150
    def prepare(self):
149
151
        questions = ['^mythbuntu/officialthemes',
150
152
             '^mythbuntu/communitythemes']
153
155
    def run(self,priority,question):
154
156
        if question.startswith('mythbuntu/officialthemes'):
155
157
            official = self.frontend.get_officialthemes()
156
 
            self.preseed_bool('mythbuntu/officialthemes', official)
 
158
            official_string=""
 
159
            for theme in official:
 
160
                if not official[theme].get_active():
 
161
                    official_string+=theme + " "
 
162
            self.preseed('mythbuntu/officialthemes', official_string)
157
163
        elif question.startswith('mythbuntu/communitythemes'):
158
164
            community = self.frontend.get_communitythemes()
159
 
            self.preseed_bool('mythbuntu/communitythemes', community)
 
165
            community_string=""
 
166
            for theme in community:
 
167
                if not community[theme].get_active():
 
168
                    community_string+=theme + " "
 
169
            self.preseed('mythbuntu/communitythemes', community_string)
160
170
 
161
171
        return FilteredCommand.run(self, priority, question)
162
172
 
163
173
    def ok_handler(self):
164
174
        official = self.frontend.get_officialthemes()
165
 
        self.preseed_bool('mythbuntu/officialthemes', official)
 
175
        official_string=""
 
176
        for theme in official:
 
177
            if not official[theme].get_active():
 
178
                official_string+=theme + " "
 
179
        self.preseed('mythbuntu/officialthemes', official_string)
166
180
        community = self.frontend.get_communitythemes()
167
 
        self.preseed_bool('mythbuntu/communitythemes', community)
 
181
        community_string=""
 
182
        for theme in community:
 
183
            if not community[theme].get_active():
 
184
                community_string+=theme + " "
 
185
        self.preseed('mythbuntu/communitythemes', community_string)
168
186
        FilteredCommand.ok_handler(self)
169
187
 
170
188
class MythbuntuServices(FilteredCommand):