summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-07-30 01:25:35 +0200
committerAraq <rumpf_a@web.de>2012-07-30 01:25:35 +0200
commit735c0053750218524a08e645fe0c6d7743ba1818 (patch)
treec3824f51ff8012115770ab9e942fff4a948dfaee
parent976c39cdc94dfa62a3279c375c5d531eac32fe1f (diff)
parent1b19201e9138fe284937e25877d1df848ef5f452 (diff)
downloadNim-735c0053750218524a08e645fe0c6d7743ba1818.tar.gz
Merge branch 'master' of github.com:Araq/Nimrod
-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".}