summaryrefslogtreecommitdiff
path: root/pygtk.h
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-12-15 23:33:51 +0000
committerMatt Wilson <msw@src.gnome.org>1999-12-15 23:33:51 +0000
commit3b9dc53e3faa1744f0d351416e888db9ae52b558 (patch)
treeeabc0911cdcf690012f8f856ebadc3fc09b661bc /pygtk.h
parent6f99ccee1be9e21368385dbff9eac485b1440531 (diff)
downloadpygtk-3b9dc53e3faa1744f0d351416e888db9ae52b558.tar.gz
added 'rows' attribute.
1999-12-15 Matt Wilson <msw@redhat.com> * gtk.py (GtkCList.__getattr__): added 'rows' attribute. * gtkmodule.c (_wrap_gtk_clist_get_rows): added wrapper to get number of rows in a clist * gtkmodule.c (PyGtkStyle_New): If the GtkStyle passed in is NULL, return a None object. This is a bit of a hack, but without it you'll fail NULL assertions when you attach to the style_set signal. * generate/gtkmisc.defs (gtk_pixmap_new): mask is null-ok. * generate/gtklists.defs (gtk_clist_set_pixmap): likewise. * pygtk.h (PyGdkBitmap_Check): define PyGdkBitmap_Check to be the same as PyGdkWindow_Check. * gtkmodule.c: -Wall cleanups * libglademodule.c (init_libglade): removed unused variable * gdkimlibmodule.c (_wrap_gdk_imlib_init): s/static/static int/
Diffstat (limited to 'pygtk.h')
-rw-r--r--pygtk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pygtk.h b/pygtk.h
index f43c3013..097ff365 100644
--- a/pygtk.h
+++ b/pygtk.h
@@ -187,6 +187,7 @@ staticforward PyTypeObject PyGtkCTreeNode_Type;
#define PyGdkColor_Check(v) ((v)->ob_type == &PyGdkColor_Type)
#define PyGdkEvent_Check(v) ((v)->ob_type == &PyGdkEvent_Type)
#define PyGdkWindow_Check(v) ((v)->ob_type == &PyGdkWindow_Type)
+#define PyGdkBitmap_Check(v) ((v)->ob_type == &PyGdkWindow_Type)
#define PyGdkGC_Check(v) ((v)->ob_type == &PyGdkGC_Type)
#define PyGdkColormap_Check(v) ((v)->ob_type == &PyGdkColormap_Type)
#define PyGdkDragContext_Check(v) ((v)->ob_type == &PyGdkDragContext_Type)