Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2019-11-30 01:38:15 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-11-30 01:48:44 +0300
commita350f3ed88a03817606e4d7218f10691469441bd (patch)
treecbf9d15df6727e690da9d94c3159155d098fb00f /test
parentfe6842af7a792415b208cd510a8a6a11b9d508bc (diff)
Assistant: return page on add_default_page()
Diffstat (limited to 'test')
-rw-r--r--test/gtk/assistant.py21
1 files changed, 9 insertions, 12 deletions
diff --git a/test/gtk/assistant.py b/test/gtk/assistant.py
index d988e87fa..6d818e1fc 100644
--- a/test/gtk/assistant.py
+++ b/test/gtk/assistant.py
@@ -17,18 +17,15 @@ class TestAssistant(Assistant):
self.add_pages({'start': Start(),
'progress': Progress()})
- self.add_default_page('error')
- self.add_default_page('success')
-
- success_page = self.get_page('success')
- success_page.set_title('Success')
- success_page.set_heading('Success Heading')
- success_page.set_text('This is the success text')
-
- error_page = self.get_page('error')
- error_page.set_title('Error')
- error_page.set_heading('Error Heading')
- error_page.set_text('This is the error text')
+ error = self.add_default_page('error')
+ error.set_title('Error')
+ error.set_heading('Error Heading')
+ error.set_text('This is the error text')
+
+ success = self.add_default_page('success')
+ success.set_title('Success')
+ success.set_heading('Success Heading')
+ success.set_text('This is the success text')
self.add_button('forward', 'Forward', 'suggested-action')
self.add_button('close', 'Close', 'destructive-action')