~ubuntu-branches/ubuntu/vivid/system-config-printer/vivid-proposed

« back to all changes in this revision

Viewing changes to errordialogs.py

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2014-07-06 09:41:43 UTC
  • mto: (256.1.1 utopic-proposed)
  • mto: This revision was merged to the branch mainline in revision 256.
  • Revision ID: package-import@ubuntu.com-20140706094143-n4gi5juot9ogomct
Tags: upstream-1.4.5+20140706
ImportĀ upstreamĀ versionĀ 1.4.5+20140706

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
gettext.install(domain=config.PACKAGE, localedir=config.localedir, unicode=True)
29
29
 
30
30
def show_dialog (title, text, type, parent=None):
31
 
    dialog = Gtk.MessageDialog (parent,
32
 
                                Gtk.DialogFlags.MODAL |
33
 
                                Gtk.DialogFlags.DESTROY_WITH_PARENT,
34
 
                                type,
35
 
                                Gtk.ButtonsType.OK,
36
 
                                title)
 
31
    dialog = Gtk.MessageDialog (parent=parent,
 
32
                                flags=Gtk.DialogFlags.MODAL |
 
33
                                      Gtk.DialogFlags.DESTROY_WITH_PARENT,
 
34
                                message_type=type,
 
35
                                buttons=Gtk.ButtonsType.OK,
 
36
                                message_format=title)
37
37
    dialog.format_secondary_text (text)
38
38
    dialog.run ()
39
39
    dialog.destroy ()