Commit 9c912cf0 authored by Martin Nordholts's avatar Martin Nordholts

Bug 555954 – Merge Tagging of Gimp Resources GSoC Project

Partial merge of code from Aurimas Juška.

* app/widgets/gimpbrushfactoryview.c: Use the same method for
getting the GimpContainer both when adding and when removing the
spacing-changed handler. It was just a coincidence that the
previously different methods retured the same GimpContainer.

svn path=/trunk/; revision=27815
parent a4b0297b
2008-12-20 Martin Nordholts <martinn@svn.gnome.org>
Bug 555954 Merge Tagging of Gimp Resources GSoC Project
Partial merge of code from Aurimas Juška.
* app/widgets/gimpbrushfactoryview.c: Use the same method for
getting the GimpContainer both when adding and when removing the
spacing-changed handler. It was just a coincidence that the
previously different methods retured the same GimpContainer.
2008-12-20 Martin Nordholts <martinn@svn.gnome.org>
* app/widgets/gimpdatafactoryview.[ch]
(gimp_data_factory_view_have)
(gimp_data_factory_view_get_children_type)
(gimp_data_factory_view_has_data_new_func): New helper functions
to lesser level of indirection in client code.
to lessen level of indirection in client code.
* app/actions/data-commands.c: Use them.
......
......@@ -102,9 +102,11 @@ gimp_brush_factory_view_destroy (GtkObject *object)
if (view->spacing_changed_handler_id)
{
GimpContainer *container;
GimpDataFactory *factory;
GimpContainer *container;
container = gimp_container_view_get_container (editor->view);
factory = gimp_data_factory_view_get_data_factory (GIMP_DATA_FACTORY_VIEW (editor));
container = gimp_data_factory_get_container (factory);
gimp_container_remove_handler (container,
view->spacing_changed_handler_id);
......
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