summaryrefslogtreecommitdiffstats
path: root/src/gui-wizard-gtk/main.c
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2011-02-23 16:15:09 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2011-02-23 16:15:09 +0100
commitb6431a497bb6b4dc38aba10a6fb47c4cb46b577b (patch)
tree39763c786fd3a271fa656ca5937d509df3732e12 /src/gui-wizard-gtk/main.c
parent93800770638fdf6b30aaee81ca7e8f27ae7f7c71 (diff)
downloadabrt-b6431a497bb6b4dc38aba10a6fb47c4cb46b577b.tar.gz
abrt-b6431a497bb6b4dc38aba10a6fb47c4cb46b577b.tar.xz
abrt-b6431a497bb6b4dc38aba10a6fb47c4cb46b577b.zip
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
Diffstat (limited to 'src/gui-wizard-gtk/main.c')
-rw-r--r--src/gui-wizard-gtk/main.c7
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)