summaryrefslogtreecommitdiff
path: root/gi/overrides
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2013-11-12 03:46:08 -0800
committerSimon Feltman <sfeltman@src.gnome.org>2013-11-12 03:46:56 -0800
commit8342302dac9bf3fcb49ec3ac334dbf014b4db025 (patch)
tree37e549d5465cea1621b7e072d3b99a9f17173d4e /gi/overrides
parent1f37340c4623262a2146ec8cd25b487cdf4234bd (diff)
downloadpygobject-8342302dac9bf3fcb49ec3ac334dbf014b4db025.tar.gz
Revert "Add type checking to positional Gtk.Box and Gtk.Window ctor arguments"
This reverts commit 7193f0509a0ed7da7c810daa6733e34a22db3180.
Diffstat (limited to 'gi/overrides')
-rw-r--r--gi/overrides/Gtk.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 9f084923..e774c0c2 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -330,10 +330,6 @@ __all__.append('ComboBox')
class Box(Gtk.Box):
def __init__(self, homogeneous=False, spacing=0, **kwds):
- if not isinstance(homogeneous, bool):
- raise TypeError('homogeneous argument must be of type bool')
- if not isinstance(spacing, int):
- raise TypeError('spacing argument must be of type int')
super(Box, self).__init__(**kwds)
self.set_homogeneous(homogeneous)
self.set_spacing(spacing)
@@ -440,9 +436,6 @@ class Window(Gtk.Window):
if not initialized:
raise RuntimeError("Gtk couldn't be initialized")
- if not isinstance(type, Gtk.WindowType):
- raise TypeError('type argument must be of type Gtk.WindowType')
-
# type is a construct-only property; if it is already set (e. g. by
# GtkBuilder), do not try to set it again and just ignore it
try: