~ubuntu-branches/ubuntu/intrepid/update-manager/intrepid

« back to all changes in this revision

Viewing changes to src/utils.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2006-04-20 18:23:54 UTC
  • Revision ID: james.westby@ubuntu.com-20060420182354-mbpnqmq3owrrvvwu
Tags: 0.42.2ubuntu13
* po/POTFILES.in: add missing desktop file (ubuntu: #39410)
* UpdateManager/UpdateManager.py: 
  - fix in the get_changelog logic (ubuntu: #40058)
  - correct a error in the changelog parser (ubuntu: #40060)
  - fix download size reporting (ubuntu: #39579)
* debian/rules: added dh_iconcache
* setup.py: install the icons into the hicolor icon schema
  (thanks to Sebastian Heinlein)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import gobject
2
 
import gtk
3
 
import gtk.glade
4
 
 
5
 
def error(parent, primary, secondary):
6
 
    p = "<span weight=\"bold\" size=\"larger\">%s</span>" % primary
7
 
    dialog = gtk.MessageDialog(parent,gtk.DIALOG_MODAL,
8
 
                               gtk.MESSAGE_ERROR,gtk.BUTTONS_OK,"")
9
 
    dialog.set_markup(p);
10
 
    dialog.format_secondary_text(secondary);
11
 
    dialog.run()
12
 
    dialog.hide()