Commit 1a20253b authored by Ell's avatar Ell

app: use gimp_gtk_container_clear() in GimpDashboard

... instead of doing the same thing ourselves.
parent b3d27555
......@@ -64,6 +64,7 @@
#include "gimpmeter.h"
#include "gimpsessioninfo-aux.h"
#include "gimpuimanager.h"
#include "gimpwidgets-utils.h"
#include "gimpwindowstrategy.h"
#include "gimp-intl.h"
......@@ -351,9 +352,6 @@ static void gimp_dashboard_sample_object (GimpDashboard
GObject *object,
Variable variable);
static void gimp_dashboard_container_remove (GtkWidget *widget,
GtkContainer *container);
static void gimp_dashboard_update_groups (GimpDashboard *dashboard);
static void gimp_dashboard_update_group (GimpDashboard *dashboard,
Group group);
......@@ -2519,13 +2517,6 @@ gimp_dashboard_sample_object (GimpDashboard *dashboard,
}
}
static void
gimp_dashboard_container_remove (GtkWidget *widget,
GtkContainer *container)
{
gtk_container_remove (container, widget);
}
static void
gimp_dashboard_update_groups (GimpDashboard *dashboard)
{
......@@ -2587,9 +2578,7 @@ gimp_dashboard_update_group (GimpDashboard *dashboard,
}
}
gtk_container_foreach (GTK_CONTAINER (group_data->grid),
(GtkCallback) gimp_dashboard_container_remove,
group_data->grid);
gimp_gtk_container_clear (GTK_CONTAINER (group_data->grid));
n_rows = 0;
add_separator = FALSE;
......
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