summary refs log tree commit diff stats
path: root/examples/gtk/ex5.nim
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gtk/ex5.nim')
-rw-r--r--examples/gtk/ex5.nim24
1 files changed, 0 insertions, 24 deletions
diff --git a/examples/gtk/ex5.nim b/examples/gtk/ex5.nim
deleted file mode 100644
index 841ebc681..000000000
--- a/examples/gtk/ex5.nim
+++ /dev/null
@@ -1,24 +0,0 @@
-
-import 
-  glib2, gtk2
-
-proc destroy(widget: pWidget, data: pgpointer){.cdecl.} = 
-  main_quit()
-
-proc widgetDestroy(w: PWidget) {.cdecl.} = 
-  destroy(w)
-
-nimrod_init()
-var window = window_new(WINDOW_TOPLEVEL)
-var button = button_new("Click me")
-set_border_width(Window, 5)
-add(window, button)
-discard signal_connect(window, "destroy", 
-                       SIGNAL_FUNC(ex5.destroy), nil)
-discard signal_connect_object(button, "clicked", 
-                              SIGNAL_FUNC(widgetDestroy), 
-                              window)
-show(button)
-show(window)
-main()
-