~evfool/software-properties/lintianfixes

« back to all changes in this revision

Viewing changes to softwareproperties/gtk/SoftwarePropertiesGtk.py

  • Committer: Sebastian Heinlein
  • Date: 2007-02-05 09:09:36 UTC
  • Revision ID: sebi@sebi-laptop-20070205090936-137739bf3c2885fd
* updates the KDE-BUGS-FILE
* allow to edit disabled ISV sources
* refresh the user interface after changes of the sources.list

Show diffs side-by-side

added added

removed removed

Lines of Context:
263
263
        checkbox.show()
264
264
 
265
265
    # If no components are enabled there will be no need for updates
 
266
    # and source code
266
267
    if len(self.distro.enabled_comps) < 1:
267
268
        self.vbox_updates.set_sensitive(False)
 
269
        self.checkbutton_source_code.set_sensitive(False)
268
270
    else:
269
271
        self.vbox_updates.set_sensitive(True)
 
272
        self.checkbutton_source_code.set_sensitive(True)
270
273
 
271
274
    # Intiate the combobox which allows the user to specify a server for all
272
275
    # distro related sources
533
536
  def on_button_revert_clicked(self, button):
534
537
    """Restore the source list from the startup of the dialog"""
535
538
    SoftwareProperties.revert_sourceslist(self)
 
539
    self.modified_sourceslist()
536
540
    self.button_revert.set_sensitive(False)
537
541
 
538
542
  def modified_sourceslist(self):
539
543
    """The sources list was changed and now needs to be saved and reloaded"""
540
544
    SoftwareProperties.modified_sourceslist(self)
541
545
    self.button_revert.set_sensitive(True)
 
546
    self.show_distro()
 
547
    self.show_isv_sources()
542
548
 
543
549
  def show_isv_sources(self):
544
550
    """ Show the repositories of independent software vendors in the
607
613
    line = dialog.run()
608
614
    if line != None:
609
615
      self.add_source_from_line(line)
 
616
      self.modified_sourceslist()
610
617
      
611
618
  def on_edit_clicked(self, widget):
612
619
    """Show a dialog to edit an ISV source"""
654
661
    iter = model.get_iter(path)
655
662
    if iter:
656
663
      self.remove_source(model.get_value(iter, LIST_ENTRY_OBJ))
 
664
      self.modified_sourceslist()
657
665
 
658
666
  def add_key_clicked(self, widget):
659
667
    """Provide a file chooser that allows to add the gnupg of a trusted