summary refs log tree commit diff stats
path: root/lib/wrappers/gtk
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2012-07-30 00:24:55 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2012-07-30 00:24:55 +0100
commit1b19201e9138fe284937e25877d1df848ef5f452 (patch)
tree22e1de2ea2740df0ca50a4069bef5644d61ec69f /lib/wrappers/gtk
parent541fdceb579320612b42e9fcca9683943ccc3e97 (diff)
downloadNim-1b19201e9138fe284937e25877d1df848ef5f452.tar.gz
g_timeout_add_full and g_idle_add_full added.
Diffstat (limited to 'lib/wrappers/gtk')
-rwxr-xr-xlib/wrappers/gtk/glib2.nim16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/wrappers/gtk/glib2.nim b/lib/wrappers/gtk/glib2.nim
index 4d3d32b29..2d5227e09 100755
--- a/lib/wrappers/gtk/glib2.nim
+++ b/lib/wrappers/gtk/glib2.nim
@@ -198,6 +198,14 @@ const
   G_TYPE_PARAM* = GType(19 shl G_TYPE_FUNDAMENTAL_SHIFT)
   G_TYPE_OBJECT* = GType(20 shl G_TYPE_FUNDAMENTAL_SHIFT)
 
+const
+  G_PRIORITY_HIGH_IDLE* = 100
+  G_PRIORITY_DEFAULT_IDLE* = 200
+  G_PRIORITY_LOW* = 300
+  G_PRIORITY_HIGH* = -100
+  G_PRIORITY_DEFAULT* = 0
+  
+
 proc G_TYPE_MAKE_FUNDAMENTAL*(x: int): GType
 const 
   G_TYPE_RESERVED_GLIB_FIRST* = 21
@@ -4508,8 +4516,16 @@ proc g_thread_init*(vtable: pointer) {.
 proc g_timeout_add*(interval: guint, function, data: gpointer): guint {.
   cdecl, dynlib: gliblib, importc: "g_timeout_add".}
 
+proc g_timeout_add_full*(priority: guint, interval: guint, function,
+  data, notify: gpointer): guint {.cdecl, dynlib: gliblib, 
+  importc: "g_timeout_add_full".}
+
 proc g_idle_add*(function, data: gpointer): guint {.
   cdecl, dynlib: gliblib, importc: "g_idle_add".}
 
+proc g_idle_add_full*(priority: guint, function,
+  data, notify: gpointer): guint {.cdecl, dynlib: gliblib, 
+  importc: "g_idle_add_full".}
+
 proc g_source_remove*(tag: guint): gboolean {.
   cdecl, dynlib: gliblib, importc: "g_source_remove".}