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

Commits:

2 changed files:

Changes:

  • gajim/gtk/assistant.py
    ... ... @@ -105,6 +105,7 @@ class Assistant(Gtk.ApplicationWindow, EventHelper):
    105 105
     
    
    106 106
             self._pages[name] = page
    
    107 107
             self._ui.stack.add_named(page, name)
    
    108
    +        return page
    
    108 109
     
    
    109 110
         def get_current_page(self):
    
    110 111
             return self._ui.stack.get_visible_child_name()
    

  • test/gtk/assistant.py
    ... ... @@ -17,18 +17,15 @@ class TestAssistant(Assistant):
    17 17
             self.add_pages({'start': Start(),
    
    18 18
                             'progress': Progress()})
    
    19 19
     
    
    20
    -        self.add_default_page('error')
    
    21
    -        self.add_default_page('success')
    
    22
    -
    
    23
    -        success_page = self.get_page('success')
    
    24
    -        success_page.set_title('Success')
    
    25
    -        success_page.set_heading('Success Heading')
    
    26
    -        success_page.set_text('This is the success text')
    
    27
    -
    
    28
    -        error_page = self.get_page('error')
    
    29
    -        error_page.set_title('Error')
    
    30
    -        error_page.set_heading('Error Heading')
    
    31
    -        error_page.set_text('This is the error text')
    
    20
    +        error = self.add_default_page('error')
    
    21
    +        error.set_title('Error')
    
    22
    +        error.set_heading('Error Heading')
    
    23
    +        error.set_text('This is the error text')
    
    24
    +
    
    25
    +        success = self.add_default_page('success')
    
    26
    +        success.set_title('Success')
    
    27
    +        success.set_heading('Success Heading')
    
    28
    +        success.set_text('This is the success text')
    
    32 29
     
    
    33 30
             self.add_button('forward', 'Forward', 'suggested-action')
    
    34 31
             self.add_button('close', 'Close', 'destructive-action')