X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=contrib%2Fsunplug%2Fsunplug.cpp;h=ad9e11f20a07aa6a1440a9b2418c2d789d3b4ba4;hp=afa4b20d821e46c5a3de2214a30ba0eb2f17731f;hb=6e9818d9cddf3880d001a544770c8c2c5187676f;hpb=f92114c3f8baaedf9e0a4ff21141e9349d838f5c diff --git a/contrib/sunplug/sunplug.cpp b/contrib/sunplug/sunplug.cpp index afa4b20d..ad9e11f2 100644 --- a/contrib/sunplug/sunplug.cpp +++ b/contrib/sunplug/sunplug.cpp @@ -125,13 +125,13 @@ static gboolean delete_event( GtkWidget *widget, GdkEvent *event, gpointer data } // destroy widget if destroy signal is passed to widget -static void destroy( GtkWidget *widget, gpointer data ){ - gtk_widget_destroy( widget ); +static void destroy( ui::Widget widget, gpointer data ){ + widget.destroy(); } // function for close button to destroy the toplevel widget static void close_window( GtkWidget *widget, gpointer data ){ - gtk_widget_destroy( gtk_widget_get_toplevel( widget ) ); + ui::Widget(gtk_widget_get_toplevel( widget ) ).destroy(); } // callback function to assign the optimal mapcoords to the spinboxes