[pygobject/wip/mschraal/gdk4-rgba] gdk overrides: Add GDK4 RGBA support
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/wip/mschraal/gdk4-rgba] gdk overrides: Add GDK4 RGBA support
- Date: Thu, 3 Feb 2022 16:17:20 +0000 (UTC)
commit 32f2261f791f93ab48d5098bd43a4da0843e2756
Author: Marinus Schraal <mschraal gnome org>
Date: Thu Feb 3 17:16:45 2022 +0100
gdk overrides: Add GDK4 RGBA support
gi/overrides/Gdk.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gi/overrides/Gdk.py b/gi/overrides/Gdk.py
index 55a6c58c..cd54968d 100644
--- a/gi/overrides/Gdk.py
+++ b/gi/overrides/Gdk.py
@@ -29,6 +29,7 @@ from gi import PyGIDeprecationWarning, require_version
Gdk = get_introspection_module('Gdk')
GDK2 = Gdk._version == '2.0'
GDK3 = Gdk._version == '3.0'
+GDK4 = Gdk._version == '4.0'
__all__ = []
@@ -83,7 +84,7 @@ if GDK2 or GDK3:
Color = override(Color)
__all__.append('Color')
-if GDK3:
+if GDK3 or GDK4:
# Introduced since Gtk-3.0
class RGBA(Gdk.RGBA):
def __init__(self, red=1.0, green=1.0, blue=1.0, alpha=1.0):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]