diff options
author | Matt Wilson <msw@redhat.com> | 1999-07-21 03:11:53 +0000 |
---|---|---|
committer | Matt Wilson <msw@src.gnome.org> | 1999-07-21 03:11:53 +0000 |
commit | 88b29cb44e8e5ca3ec2e7ae774166ebc43de82be (patch) | |
tree | 37bc43919a884b8c7b2b442ae3d7a812483dedaf | |
parent | 32292b48ad67b64d49350b49b2291e43f2cb54cc (diff) | |
download | pygtk-88b29cb44e8e5ca3ec2e7ae774166ebc43de82be.tar.gz |
new wrapper new implementation
1999-07-20 Matt Wilson <msw@redhat.com>
* gtk.py (gdk_flush): new wrapper
* gtkmodule.c (_wrap_gdk_flush): new implementation
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gtk.py | 3 | ||||
-rw-r--r-- | gtkmodule.c | 13 |
3 files changed, 21 insertions, 0 deletions
@@ -1,3 +1,8 @@ +1999-07-20 Matt Wilson <msw@redhat.com> + + * gtk.py (gdk_flush): new wrapper + * gtkmodule.c (_wrap_gdk_flush): new implementation + 1999-07-19 James Henstridge <james@daa.com.au> * gtk.py (GtkAdjustment.set_all): a wrapper for the new function. @@ -2647,3 +2647,6 @@ def threads_enter(): _gtk.gdk_threads_enter() def threads_leave(): _gtk.gdk_threads_leave() + +def gdk_flush(): + _gtk.gdk_flush() diff --git a/gtkmodule.c b/gtkmodule.c index 327f576e..caef5faa 100644 --- a/gtkmodule.c +++ b/gtkmodule.c @@ -4563,6 +4563,18 @@ PyObject *_wrap_gtk_drag_begin(PyObject *self, PyObject *args) { #include "gtkmodule_impl.c" +static PyObject *_wrap_gdk_flush(PyObject *self, PyObject *args) { + if (!PyArg_ParseTuple(args, ":gdk_flush")) + return NULL; + + Py_BEGIN_ALLOW_THREADS + gdk_flush (); + Py_END_ALLOW_THREADS + + Py_INCREF(Py_None); + return Py_None; +} + static PyObject *_wrap_gdk_pixmap_new(PyObject *self, PyObject *args) { GdkPixmap *pix; GdkWindow *win = NULL; @@ -5616,6 +5628,7 @@ static PyMethodDef _gtkmoduleMethods[] = { { "gtk_ctree_node_get_row_data", _wrap_gtk_ctree_node_get_row_data, 1 }, { "gtk_ctree_base_nodes", _wrap_gtk_ctree_base_nodes, 1 }, #include "gtkmodule_defs.c" + { "gdk_flush", _wrap_gdk_flush, 1 }, { "gdk_pixmap_new", _wrap_gdk_pixmap_new, 1 }, { "gdk_pixmap_create_from_xpm", _wrap_gdk_pixmap_create_from_xpm, 1 }, { "gdk_pixmap_create_from_xpm_d", _wrap_gdk_pixmap_create_from_xpm_d, 1 }, |