[pygobject/wip/jfelder/gtk4-toolbutton] gtk overrides: Drop ToolButton for Gtk4
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/wip/jfelder/gtk4-toolbutton] gtk overrides: Drop ToolButton for Gtk4
- Date: Mon, 16 Mar 2020 19:41:52 +0000 (UTC)
commit b215ebadc8c4b962562a929ceb4e7424f0863e0b
Author: Jean Felder <jean felder gmail com>
Date: Mon Mar 16 20:19:48 2020 +0100
gtk overrides: Drop ToolButton for Gtk4
It has been removed (gtk commit 44e153d8a8679633681dd3ae2029735255e4f839)
gi/overrides/Gtk.py | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 834f5eb6..f0f8705c 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -696,14 +696,15 @@ IconView = override(IconView)
__all__.append('IconView')
-class ToolButton(Gtk.ToolButton):
- __init__ = deprecated_init(Gtk.ToolButton.__init__,
- arg_names=('stock_id',),
- category=PyGTKDeprecationWarning)
+if Gtk._version in ("2.0", "3.0"):
+ class ToolButton(Gtk.ToolButton):
+ __init__ = deprecated_init(Gtk.ToolButton.__init__,
+ arg_names=('stock_id',),
+ category=PyGTKDeprecationWarning)
-ToolButton = override(ToolButton)
-__all__.append('ToolButton')
+ ToolButton = override(ToolButton)
+ __all__.append('ToolButton')
class IMContext(Gtk.IMContext):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]