Fixed gtk signal handling
authorTomas Mudrunka <tomas@mudrunka.cz>
Thu, 19 Apr 2012 14:01:52 +0000 (16:01 +0200)
committerTomas Mudrunka <tomas@mudrunka.cz>
Thu, 19 Apr 2012 14:01:52 +0000 (16:01 +0200)
c/vizionix/mkxsock.c

index afc9bebe17e519c09fe9cd69d12d2406a401cc26..74cb99bcfa5feeaa6367c9248772eb25a0e705dd 100644 (file)
@@ -3,6 +3,8 @@
 #include <getopt.h>
 #include <gtk/gtk.h>
 
+int return_true(void) { return 1; }
+
 void print_help(char ** argv) {
        printf(
                "Usage: %s [args]\n"
@@ -51,7 +53,7 @@ gint main(gint argc, gchar ** argv)
        //Create window
        GtkWidget *win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
        GtkWidget *sock = gtk_socket_new();
-       g_signal_connect(sock, "plug-removed", gtk_main_quit, NULL);
+       g_signal_connect(sock, "plug-removed", G_CALLBACK(return_true), NULL);
        g_signal_connect(win, "delete-event", gtk_main_quit, NULL);
        gtk_widget_set_size_request(sock, width, height);
        gtk_widget_modify_bg(sock, GTK_STATE_NORMAL, &color);
This page took 0.138484 seconds and 4 git commands to generate.