diff options
Diffstat (limited to 'src/gui-wizard-gtk/main.c')
-rw-r--r-- | src/gui-wizard-gtk/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui-wizard-gtk/main.c b/src/gui-wizard-gtk/main.c index aabd84d6..707cf563 100644 --- a/src/gui-wizard-gtk/main.c +++ b/src/gui-wizard-gtk/main.c @@ -23,9 +23,12 @@ static void analyze_rb_was_toggled(GtkToggleButton *button, gpointer user_data) } } -static void remove_child_widget(GtkWidget *widget, gpointer container) +void remove_child_widget(GtkWidget *widget, gpointer container) { - gtk_container_remove(container, widget); + /*destroy will safely remove it and free the memory if there are no refs + * left + */ + gtk_widget_destroy(widget); } static GtkWidget *add_event_buttons(GtkBox *box, char *event_name, GCallback func, bool radio) |