X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=contrib%2Fsunplug%2Fsunplug.cpp;fp=contrib%2Fsunplug%2Fsunplug.cpp;h=a6928537ee9119782e76ea9894399429a745a0f4;hp=6895bf22f38ff6a38d674619dd008f97984ef4e0;hb=1227d1b7ffbce0b50bf2efbfcb2dedd5a60a5761;hpb=465884e260039bad1a333c51b6013edd361a63cd diff --git a/contrib/sunplug/sunplug.cpp b/contrib/sunplug/sunplug.cpp index 6895bf22..a6928537 100644 --- a/contrib/sunplug/sunplug.cpp +++ b/contrib/sunplug/sunplug.cpp @@ -272,7 +272,7 @@ void about_plugin_window(){ gtk_box_pack_start( GTK_BOX( vbox ), label, FALSE, FALSE, 2 ); // insert the label in the box button = ui::Button( "OK" ); // create a button with text - g_signal_connect_swapped( G_OBJECT( button ), "clicked", G_CALLBACK( gtk_widget_destroy ), window ); // connect the click event to close the window + g_signal_connect_swapped( G_OBJECT( button ), "clicked", G_CALLBACK( gtk_widget_destroy ), (void *) window ); // connect the click event to close the window gtk_box_pack_start( GTK_BOX( vbox ), button, FALSE, FALSE, 2 ); // insert the button in the box gtk_window_set_position( GTK_WINDOW( window ), GTK_WIN_POS_CENTER ); // center the window on screen