return TRUE;
}
+static void
+katze_array_action_toolitem_destroy_cb (GtkToolItem* toolitem,
+ KatzeItem* item)
+{
+ g_signal_handlers_disconnect_by_func (item,
+ G_CALLBACK (katze_array_action_item_notify_cb), toolitem);
+}
+
/**
* katze_array_action_create_tool_item_for:
* @array_action: a #KatzeArrayAction
g_object_set_data (G_OBJECT (toolitem), "KatzeArrayAction", array_action);
g_signal_connect (item, "notify",
G_CALLBACK (katze_array_action_item_notify_cb), toolitem);
+ g_signal_connect (toolitem, "destroy",
+ G_CALLBACK (katze_array_action_toolitem_destroy_cb), item);
return toolitem;
}