~kelemeng/usb-creator/bug853227

« back to all changes in this revision

Viewing changes to usbcreator/frontends/gtk/frontend.py

  • Committer: Bazaar Package Importer
  • Author(s): Evan Dandrea, Evan Dandrea, Colin Watson, Roderick B. Greening, Dmitrijs Ledkovs, Ignace Mouzannar, Jonathan Riddell
  • Date: 2010-08-03 10:49:34 UTC
  • Revision ID: james.westby@ubuntu.com-20100803104934-k6qlegxdr3x0lr17
Tags: 0.2.23
[ Evan Dandrea ]
* Continue evaluting whether or not a partition can be used even if
  there is no source present (LP: #566390).
* Change the team from the Installer Team to usb-creator Hackers to
  match the bzr ACL.

[ Colin Watson ]
* Make usb-creator-common depend on parted (LP: #529366).

[ Roderick B. Greening ]
* Fix cannot resize usb-creator-kde main window (LP: #580551). 
* Update branding on KDE Icon (LP: #580558). 
* Switch from exists to isfile detection in backend (LP: #608741)
* Bump version strings to 0.2.23

[ Dmitrijs Ledkovs ]
* desktop:
  + removed obsolete encoding keys from desktop files
* man:
  + fixed hyphens, minus signs & undefined macros
  + removed non-working "-v" flag from usb-creator-gtk.8 (LP: #574089)
* po:
  + translations dump from lucid. (LP: #570174)
* debian/usb-creator-common.install:
  + install translations (for ppa's, archive will strip them)
* debian/source:
  + using 3.0 (native) format
* debian/copyright:
  + updated to DEP-5 format
* debian/control:
  + removed transitional package (LTS is released)
  + improved extended description
  + added forgotten python-support dependency
  + updated descriptions (thanks Matthew Paul Thomas)
* debian/rules:
  + using dh tiny rules
  + using python-support
  + vendor branded icons installed if available
  + debian-menu installed if there are branded xpm's
* .bzr-builddeb:
  + defaults to native

* Use XDG_CACHE_DIR for usb-creator.log
* Use XDG IconTheme spec for window icons (LP: #535061)
* Fix install button sensetivity (LP: #582531)

[ Ignace Mouzannar ]
* Initial Debian release (Closes: #582884, #576359)
* debian/control:
  + Added Build dependency on kdesdk-scripts (Debian specific)
* debian/usb-creator-gtk.menu and debian/usb-creator-kde.menu:
  + Added these files as per the Debian Menu Policy
* debian/Debian/*.xpm:
  + Added the xpm icons needed by the menu files
* debian/copyright:
  + Added myself in the debian/* copyright

[ Jonathan Riddell ]
* Fix kde/frontend.py for PyQt 4.7 which now expects a string not a
  QString for loadUi

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
if 'USBCREATOR_LOCAL' in os.environ:
33
33
    ui_path = os.path.join(os.getcwd(), 'gui/usbcreator-gtk.ui')
34
 
    icon_path = os.path.join(os.getcwd(), 'desktop/usb-creator-gtk.png')
35
34
else:
36
35
    ui_path = '/usr/share/usb-creator/usbcreator-gtk.ui'
37
 
    icon_path = '/usr/share/pixmaps/usb-creator-gtk.png'
38
36
 
39
37
gtk.gdk.threads_init()
40
38
 
109
107
                widget.set_name(gtk.Buildable.get_name(widget))
110
108
                setattr(self, gtk.Widget.get_name(widget), widget)
111
109
 
112
 
        gtk.window_set_default_icon_from_file(icon_path)
 
110
        gtk.window_set_default_icon_name('usb-creator-gtk')
113
111
        for w in self.all_widgets:
114
112
            process_labels(w)
115
113
 
163
161
                if fname.endswith('.iso') or fname.endswith('.img'):
164
162
                    self.backend.add_image(os.path.join(download_dir, fname))
165
163
 
 
164
        # Sets first pre-populated image as current in the backend
 
165
        self.selection_changed_source(self.source_treeview.get_selection())
 
166
 
166
167
        if not persistent:
167
168
            self.persist_disabled.set_active(True)
168
169
            self.persist_vbox.hide()
444
445
        status = target['status']
445
446
        source = self.backend.get_current_source()
446
447
        if not source:
 
448
            self.button_install.set_sensitive(False)
447
449
            return
448
450
        stype = self.backend.sources[source]['type']
449
 
        if status == CAN_USE or stype == SOURCE_IMG:
 
451
        if status == CAN_USE and stype in (SOURCE_IMG, SOURCE_ISO):
450
452
            self.button_install.set_sensitive(True)
451
453
        else:
452
454
            self.button_install.set_sensitive(False)