summary refs log tree commit diff stats
path: root/tests/gtk/ex2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gtk/ex2.nim')
-rwxr-xr-xtests/gtk/ex2.nim21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/gtk/ex2.nim b/tests/gtk/ex2.nim
deleted file mode 100755
index 80ff6f104..000000000
--- a/tests/gtk/ex2.nim
+++ /dev/null
@@ -1,21 +0,0 @@
-
-import 
-  glib2, gtk2
-
-proc destroy(widget: pGtkWidget, data: pgpointer){.cdecl.} = 
-  gtk_main_quit()
-
-var 
-  window: PGtkWidget
-  button: PGtkWidget
-
-gtk_nimrod_init()
-window = gtk_window_new(GTK_WINDOW_TOPLEVEL)
-button = gtk_button_new_with_label("Click me")
-gtk_container_set_border_width(GTK_CONTAINER(Window), 5)
-gtk_container_add(GTK_Container(window), button)
-discard gtk_signal_connect(GTKOBJECT(window), "destroy", 
-                           GTK_SIGNAL_FUNC(destroy), nil)
-gtk_widget_show(button)
-gtk_widget_show(window)
-gtk_main()