static void dialog_button_callback( ui::Widget widget, gpointer data ){ int *loop, *ret; auto parent = widget.window(); loop = (int*)g_object_get_data( G_OBJECT( parent ), "loop" ); ret = (int*)g_object_get_data( G_OBJECT( parent ), "ret" ); *loop = 0; *ret = gpointer_to_int( data ); }
/** * @brief function for close button to destroy the toplevel widget */ static void close_window( ui::Widget widget, gpointer data ){ widget.window().destroy(); }