testinggtk r322 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r322 - trunk/tests
- Date: Mon, 30 Jun 2008 19:37:39 +0000 (UTC)
Author: bjornl
Date: Mon Jun 30 19:37:38 2008
New Revision: 322
URL: http://svn.gnome.org/viewvc/testinggtk?rev=322&view=rev
Log:
Clean up after previous grabbers, if any
Modified:
trunk/tests/test_widget.py
Modified: trunk/tests/test_widget.py
==============================================================================
--- trunk/tests/test_widget.py (original)
+++ trunk/tests/test_widget.py Mon Jun 30 19:37:38 2008
@@ -166,8 +166,13 @@
'''
Ensure that an insensitive widget cannot be grabbed.
- :bug: tbh
+ :bug: #540834
'''
+ # Clean up previous grab.
+ current_grabber = gtk.grab_get_current()
+ if current_grabber:
+ current_grabber.grab_remove()
+ assert not gtk.grab_get_current()
widget = gtk.Button()
widget.unset_flags(gtk.SENSITIVE)
widget.grab_add()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]