summaryrefslogtreecommitdiffstats
path: root/panels/mouse/test-gnome-mouse-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'panels/mouse/test-gnome-mouse-test.c')
-rw-r--r--panels/mouse/test-gnome-mouse-test.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/panels/mouse/test-gnome-mouse-test.c b/panels/mouse/test-gnome-mouse-test.c
new file mode 100644
index 0000000..5b006f6
--- /dev/null
+++ b/panels/mouse/test-gnome-mouse-test.c
@@ -0,0 +1,33 @@
+#include <config.h>
+#include <gtk/gtk.h>
+
+#include "cc-mouse-resources.h"
+#include "cc-mouse-test.h"
+
+static gboolean
+delete_event_cb (GtkWidget *widget, GdkEvent *event, gpointer user_data)
+{
+ gtk_main_quit ();
+
+ return FALSE;
+}
+
+int main (int argc, char **argv)
+{
+ GtkWidget *widget;
+ GtkWidget *window;
+
+ gtk_init (&argc, &argv);
+
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ gtk_widget_show (window);
+ widget = cc_mouse_test_new ();
+ gtk_widget_show (widget);
+ gtk_container_add (GTK_CONTAINER (window), widget);
+
+ g_signal_connect (G_OBJECT (window), "delete-event", G_CALLBACK (delete_event_cb), NULL);
+
+ gtk_main ();
+
+ return 0;
+}