~cyphermox/software-properties/additional-drivers

« back to all changes in this revision

Viewing changes to softwareproperties/gtk/SoftwarePropertiesGtk.py

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2012-06-27 15:58:03 UTC
  • Revision ID: mathieu-tl@ubuntu.com-20120627155803-58kr4teuorjbvzr2
Version objects from Packages have a summary member, not the package itself,
since the short description can change from version to version

Show diffs side-by-side

added added

removed removed

Lines of Context:
982
982
 
983
983
      last_button = None
984
984
      for pkg in self.dev_pkgs[alias]['packages']:
985
 
        radio_button = Gtk.RadioButton.new_with_label(None, "Use %s (%s)" % (pkg.summary, pkg.shortname))
 
985
        radio_button = Gtk.RadioButton.new_with_label(None, "Use %s (%s)" % (pkg.candidate.summary, pkg.shortname))
986
986
        if last_button is not None:
987
987
          radio_button.join_group(last_button)
988
988
        device_detail.pack_start(radio_button, True, False, 0)
1014
1014
 
1015
1015
    last_button = None
1016
1016
    for pkg in [self.apt_cache['fglrx'], self.apt_cache['nvidia-current']]:
1017
 
      radio_button = Gtk.RadioButton.new_with_label(None, "Use %s (%s)" % (pkg.summary, pkg.shortname))
 
1017
      radio_button = Gtk.RadioButton.new_with_label(None, "Use %s (%s)" % (pkg.candidate.summary, pkg.shortname))
1018
1018
      if last_button is not None:
1019
1019
        radio_button.join_group(last_button)
1020
1020
      device_detail.pack_start(radio_button, True, False, 0)
1063
1063
        status_str.append("proprietary")
1064
1064
 
1065
1065
      driver_status = Gtk.Image()
1066
 
      radio_button = Gtk.RadioButton.new_with_label(None, "Use %s (%s)" % (pkg.summary, ", ".join(status_str)))
 
1066
      radio_button = Gtk.RadioButton.new_with_label(None, "Use %s (%s)" % (pkg.candidate.summary, ", ".join(status_str)))
1067
1067
      if last_button is not None:
1068
1068
        radio_button.join_group(last_button)
1069
1069
      device_detail.pack_start(radio_button, True, False, 0)