testinggtk r113 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r113 - trunk/tests
- Date: Sun, 8 Jun 2008 21:18:26 +0000 (UTC)
Author: bjornl
Date: Sun Jun 8 21:18:26 2008
New Revision: 113
URL: http://svn.gnome.org/viewvc/testinggtk?rev=113&view=rev
Log:
Fix bug in switch-page signal tc
Modified:
trunk/tests/test_notebook.py
Modified: trunk/tests/test_notebook.py
==============================================================================
--- trunk/tests/test_notebook.py (original)
+++ trunk/tests/test_notebook.py Sun Jun 8 21:18:26 2008
@@ -72,6 +72,9 @@
``gtk.Notebook``, the ``switch-page`` signal is emitted with
``page_num`` 0.
+ Note that the page widget has to be shown for the notebook to be
+ able to switch away from it.
+
:bug: #131920
'''
num_in_cb = ['other']
@@ -80,8 +83,9 @@
book = gtk.Notebook()
for x in range(5):
- page1 = gtk.Label('page-%d' % x)
- book.append_page(page1, gtk.Label('page-%d' % x))
+ page = gtk.Label('page-%d' % x)
+ page.show()
+ book.append_page(page, gtk.Label('page-%d' % x))
book.connect('switch-page', switch_page_cb)
book.remove_page(0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]