summaryrefslogtreecommitdiff
path: root/gtk/gdk-base-types.defs
diff options
context:
space:
mode:
authorPaul Pogonyshev <pogonyshev@gmx.net>2009-05-12 00:47:51 +0300
committerPaul Pogonyshev <pogonyshev@gmx.net>2009-05-15 22:49:56 +0300
commit15b7265a00d405d6115f45ba0b1f26019ef1a52b (patch)
tree647ba8393bd2279b63099171398a5d45a2e9bc51 /gtk/gdk-base-types.defs
parent029b2905baec78b370e76e1b2340dc2ee2ddaea1 (diff)
downloadpygtk-15b7265a00d405d6115f45ba0b1f26019ef1a52b.tar.gz
Add floating-point support to gtk.gdk.Color
Make constructor accept floating-point arguments. Add 'red_float', 'green_float' and 'blue_float' read-write properties. Test and document new features. Part of bug #546019.
Diffstat (limited to 'gtk/gdk-base-types.defs')
-rw-r--r--gtk/gdk-base-types.defs5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gdk-base-types.defs b/gtk/gdk-base-types.defs
index 89d0c946..f6799bf2 100644
--- a/gtk/gdk-base-types.defs
+++ b/gtk/gdk-base-types.defs
@@ -228,6 +228,11 @@
'("guint16" "red")
'("guint16" "green")
'("guint16" "blue")
+ ;; Fake. Only defined since codegen currently doesn't support
+ ;; defining attributes in '.override' files.
+ '("gfloat" "red_float")
+ '("gfloat" "green_float")
+ '("gfloat" "blue_float")
)
)