Commit 8694e4f9 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

add-applet-window: fix cast-function-type warning

parent 814001ad
......@@ -337,6 +337,13 @@ add_module (GpAddAppletWindow *window,
NULL);
}
static void
destroy_module_cb (GtkWidget *widget,
gpointer user_data)
{
gtk_widget_destroy (widget);
}
static void
rebuild_modules_list (GpAddAppletWindow *window)
{
......@@ -345,7 +352,7 @@ rebuild_modules_list (GpAddAppletWindow *window)
GList *children;
modules_box = GTK_CONTAINER (window->modules_box);
gtk_container_foreach (modules_box, (GtkCallback) gtk_widget_destroy, NULL);
gtk_container_foreach (modules_box, destroy_module_cb, NULL);
modules = gp_module_manager_get_modules (window->module_manager);
......
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