Philipp Hörist pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/gtk/account_wizard.py
    ... ... @@ -40,6 +40,7 @@ from gajim.common.const import GIO_TLS_ERRORS
    40 40
     
    
    41 41
     from gajim.gtk.assistant import Assistant
    
    42 42
     from gajim.gtk.assistant import Page
    
    43
    +from gajim.gtk.assistant import SuccessPage
    
    43 44
     from gajim.gtk.dataform import DataFormWidget
    
    44 45
     from gajim.gtk.util import get_builder
    
    45 46
     from gajim.gtk.util import open_window
    
    ... ... @@ -814,27 +815,13 @@ class Redirect(Page):
    814 815
             open_uri(self._link)
    
    815 816
     
    
    816 817
     
    
    817
    -class Success(Page):
    
    818
    +class Success(SuccessPage):
    
    818 819
         def __init__(self):
    
    819
    -        Page.__init__(self)
    
    820
    -        self.title = _('Account Added')
    
    821
    -        self._account = None
    
    820
    +        SuccessPage.__init__(self)
    
    821
    +        self.set_title(_('Account Added'))
    
    822
    +        self.set_heading(_('Account has been added successfully'))
    
    822 823
     
    
    823
    -        heading = Gtk.Label(label=_('Account has been added successfully'))
    
    824
    -        heading.get_style_context().add_class('large-header')
    
    825
    -        heading.set_max_width_chars(30)
    
    826
    -        heading.set_line_wrap(True)
    
    827
    -        heading.set_halign(Gtk.Align.CENTER)
    
    828
    -        heading.set_justify(Gtk.Justification.CENTER)
    
    829
    -
    
    830
    -        icon = Gtk.Image.new_from_icon_name('object-select-symbolic',
    
    831
    -                                            Gtk.IconSize.DIALOG)
    
    832
    -        icon.get_style_context().add_class('success-color')
    
    833
    -
    
    834
    -        self.pack_start(icon, False, True, 0)
    
    835
    -        self.pack_start(heading, False, True, 0)
    
    836
    -
    
    837
    -        self.show_all()
    
    824
    +        self._account = None
    
    838 825
     
    
    839 826
         def set_account(self, account):
    
    840 827
             self._account = account