Commit fd64aae4 authored by Ell's avatar Ell

app: add gimp_gtk_container_clear()

... which removes all non-internal children of a GtkContainer.
parent 717c183a
......@@ -1460,6 +1460,21 @@ gimp_widget_set_fully_opaque (GtkWidget *widget,
GINT_TO_POINTER (fully_opaque));
static void
gimp_gtk_container_clear_callback (GtkWidget *widget,
GtkContainer *container)
gtk_container_remove (container, widget);
gimp_gtk_container_clear (GtkContainer *container)
gtk_container_foreach (container,
(GtkCallback) gimp_gtk_container_clear_callback,
gimp_button_set_suggested (GtkWidget *button,
gboolean suggested,
......@@ -100,6 +100,8 @@ gboolean gimp_widget_get_fully_opaque (GtkWidget *widget
void gimp_widget_set_fully_opaque (GtkWidget *widget,
gboolean fully_opaque);
void gimp_gtk_container_clear (GtkContainer *container);
void gimp_button_set_suggested (GtkWidget *button,
gboolean suggested,
GtkReliefStyle default_relief);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment