From b6431a497bb6b4dc38aba10a6fb47c4cb46b577b Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Wed, 23 Feb 2011 16:15:09 +0100 Subject: gui-wizard-gtk: made the warnings on bt page actually work - what works: - shows warning when rating is low (kernel is skipped) - shows warning and disable "forward" when bt is not approved --- src/gui-wizard-gtk/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui-wizard-gtk/main.c') 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) -- cgit