[pygtk] Add gtk.gdk.CURRENT_TIME constant
- From: Paul Pogonyshev <paulp src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pygtk] Add gtk.gdk.CURRENT_TIME constant
- Date: Sat, 8 Aug 2009 20:36:25 +0000 (UTC)
commit e6aa5ed1eace5850188375d691f6b62ba662850e
Author: Paul Pogonyshev <pogonyshev gmx net>
Date: Sat Aug 8 23:30:39 2009 +0300
Add gtk.gdk.CURRENT_TIME constant
Pointed out in bug #590642.
gtk/gtkmodule.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmodule.c b/gtk/gtkmodule.c
index cf41d6d..b27f94e 100644
--- a/gtk/gtkmodule.c
+++ b/gtk/gtkmodule.c
@@ -128,8 +128,11 @@ pygdk_add_extra_constants(PyObject *m)
{
gchar * aname;
+ PyModule_AddObject(m, "CURRENT_TIME",
+ PyLong_FromLong(GDK_CURRENT_TIME));
PyModule_AddObject(m, "PARENT_RELATIVE",
PyLong_FromLong(GDK_PARENT_RELATIVE));
+
/* Add predefined atoms */
#define add_atom(name) { aname = gdk_atom_name((GDK_##name)); \
PyModule_AddObject(m, #name, PyString_FromString(aname)); \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]