diff options
author | Johan Dahlin <zilch@src.gnome.org> | 2003-01-07 22:55:12 +0000 |
---|---|---|
committer | Johan Dahlin <zilch@src.gnome.org> | 2003-01-07 22:55:12 +0000 |
commit | 164aa1628e25513e723501ee685fdce59d20d740 (patch) | |
tree | 3cacfc6f36123ee105223a1dcb57239478f7a678 /pangomodule.c | |
parent | 717914fd814ac64d6896c545a090c2e9e177ee96 (diff) | |
download | pygtk-164aa1628e25513e723501ee685fdce59d20d740.tar.gz |
Add default paramter.
* gtk/gtk.defs (gtk_text_tag_new): Add default paramter.
* pangomodule.c (initpango): Added SCALE_* constants, patch by
John Finlay, fixes #102731.
* gtk/gtk.override (_wrap_gtk_text_buffer_create_tag): Modify to
accept keyword parameters, largely based upon patch by John
Finlay, fixes #102628
* gtk/gtk.defs (GtkTextBuffer.get_slice): default last parameter
to TRUE. #102607
(GtkTextBuffer.get_text): ditto. #102607
(GtkTextBuffer.create_mark): Default last param. to FALSE. #102627
Diffstat (limited to 'pangomodule.c')
-rw-r--r-- | pangomodule.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pangomodule.c b/pangomodule.c index 3d8a64f3..b974e629 100644 --- a/pangomodule.c +++ b/pangomodule.c @@ -5,6 +5,8 @@ #include <Python.h> #include <pygobject.h> +#include <pango/pango-font.h> + /* include any extra headers needed here */ void pypango_register_classes(PyObject *d); @@ -25,6 +27,21 @@ initpango(void) pypango_register_classes(d); pypango_add_constants(m, "PANGO_"); + + PyModule_AddObject(m, "SCALE_XX_SMALL", + PyFloat_FromDouble(PANGO_SCALE_XX_SMALL)); + PyModule_AddObject(m, "SCALE_X_SMALL", + PyFloat_FromDouble(PANGO_SCALE_X_SMALL)); + PyModule_AddObject(m, "SCALE_SMALL", + PyFloat_FromDouble(PANGO_SCALE_SMALL)); + PyModule_AddObject(m, "SCALE_MEDIUM", + PyFloat_FromDouble(PANGO_SCALE_MEDIUM)); + PyModule_AddObject(m, "SCALE_LARGE", + PyFloat_FromDouble(PANGO_SCALE_LARGE)); + PyModule_AddObject(m, "SCALE_X_LARGE", + PyFloat_FromDouble(PANGO_SCALE_LARGE)); + PyModule_AddObject(m, "SCALE_XX_LARGE", + PyFloat_FromDouble(PANGO_SCALE_LARGE)); /* add anything else to the module dictionary (such as constants) */ |