summaryrefslogtreecommitdiff
path: root/gtk/pygtk-private.h
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2002-03-10 08:01:09 +0000
committerJames Henstridge <jamesh@src.gnome.org>2002-03-10 08:01:09 +0000
commit41502bc191c4871cf63828d523d37c0e991291ea (patch)
tree0cf5bb6661f3d962f4b5955996f1ada6d905265a /gtk/pygtk-private.h
parent03024776d409f640d5f2c6f134df6cb8f34e5391 (diff)
downloadpygtk-41502bc191c4871cf63828d523d37c0e991291ea.tar.gz
remove commented out GtkStyle code, as the GObject based code now provides
2002-03-10 James Henstridge <james@daa.com.au> * gtk/gtk-types.c: remove commented out GtkStyle code, as the GObject based code now provides all the missing features. * gtk/gtk.override: implement getters (and some setters) for GtkStyle properties. * gtk/gtk-types.c (_pygtk_style_helper_new): upgrade the style helper code to work with gtk 2.0. * gtk/gtk-types.defs (Style): add public fields of the GtkStyle object. * codegen/codegen.py (write_getsets): allow adding setters for overriden properties (just do a string search for the setter function prototype). (write_boxed_getsets): same here. 2002-02-19 James Henstridge <james@daa.com.au> * gtk/gtk-types.defs (MessageDialog): add some fields for the label and icon. These are marked private, but they are very useful if you want to change the message in a dialog. * ChangeLog: spell Michele's name correctly (sorry!).
Diffstat (limited to 'gtk/pygtk-private.h')
-rw-r--r--gtk/pygtk-private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/pygtk-private.h b/gtk/pygtk-private.h
index 27e6edb8..67338695 100644
--- a/gtk/pygtk-private.h
+++ b/gtk/pygtk-private.h
@@ -37,4 +37,14 @@ typedef struct {
void pygtk_custom_destroy_notify(gpointer user_data);
+/* helper object for the style helper */
+typedef struct {
+ PyObject_HEAD
+ GtkStyle *style; /* parent style */
+ enum {STYLE_COLOUR_ARRAY, STYLE_GC_ARRAY, STYLE_PIXMAP_ARRAY} type;
+ gpointer array;
+} PyGtkStyleHelper_Object;
+
+PyObject *_pygtk_style_helper_new(GtkStyle *style, int type, gpointer array);
+
#endif