static void gimp_container_popup_finalize (GObject *object) { GimpContainerPopup *popup = GIMP_CONTAINER_POPUP (object); if (popup->context) { g_object_unref (popup->context); popup->context = NULL; } if (popup->dialog_identifier) { g_free (popup->dialog_identifier); popup->dialog_identifier = NULL; } if (popup->dialog_stock_id) { g_free (popup->dialog_stock_id); popup->dialog_stock_id = NULL; } if (popup->dialog_tooltip) { g_free (popup->dialog_tooltip); popup->dialog_tooltip = NULL; } G_OBJECT_CLASS (parent_class)->finalize (object); }
static void gimp_container_popup_confirm (GimpPopup *popup) { GimpContainerPopup *c_popup = GIMP_CONTAINER_POPUP (popup); GimpObject *object; object = gimp_context_get_by_type (c_popup->context, gimp_container_get_children_type (c_popup->container)); gimp_context_set_by_type (c_popup->orig_context, gimp_container_get_children_type (c_popup->container), object); GIMP_POPUP_CLASS (parent_class)->confirm (popup); }