Removed the old paths and the remaining legacy stuff it needed. Fixes bug
2003-05-21 Michael Natterer <mitch@gimp.org> Removed the old paths and the remaining legacy stuff it needed. Fixes bug #104471. * Makefile.am * configure.in * pixmaps/*: removed the pixmaps/ directory. * app/ops_buttons.[ch] * app/path.[ch] * app/pathP.h * app/path_transform.h * app/gui/paths-dialog.[ch] * app/tools/gimpbezierselecttool.[ch]: removed these files. * app/Makefile.am * app/gui/Makefile.am * app/tools/Makefile.am: changed accordingly. * app/core/core-types.h: removed the Path* types. * app/core/gimpimage.[ch] * app/core/gimpimage-duplicate.c: removed gimage->paths. * app/gui/about-dialog.c: inline wilber2_xpm for now. * app/gui/dialogs-constructors.c * app/gui/dialogs-menu.c * app/gui/dialogs.c * app/gui/menus.c: removed the old paths dialog. * app/gui/gui.c: removed gui_rotate_the_shield_harmonics() hack which was broken anyway. * app/tools/gimptransformtool.c: #if 0 path_transform preview stuff. * app/tools/gimpiscissorstool.c: removed useless include. * app/tools/tools.c: removed the bezier select tool. * app/vectors/gimpvectors.c (gimp_vectors_real_stroke_add): use g_list_append(), not g_list_prepend() so some ugly side conditions of legacy path loading are honored. * app/xcf/xcf-load.c * app/xcf/xcf-save.c: load and save only GimpVectors.
This commit is contained in:

committed by
Michael Natterer

parent
bf4d38d70e
commit
487f71ba05
@ -42,8 +42,6 @@
|
||||
#include "gimplist.h"
|
||||
#include "gimpparasitelist.h"
|
||||
|
||||
#include "path.h"
|
||||
|
||||
#include "gimp-intl.h"
|
||||
|
||||
|
||||
@ -61,7 +59,6 @@ gimp_image_duplicate (GimpImage *gimage)
|
||||
GimpDrawable *new_floating_sel_drawable = NULL;
|
||||
GimpDrawable *floating_sel_drawable = NULL;
|
||||
GimpParasiteList *parasites;
|
||||
PathList *paths;
|
||||
gint count;
|
||||
|
||||
g_return_val_if_fail (gimage != NULL, NULL);
|
||||
@ -222,26 +219,6 @@ gimp_image_duplicate (GimpImage *gimage)
|
||||
new_gimage->parasites = gimp_parasite_list_copy (parasites);
|
||||
}
|
||||
|
||||
/* Copy paths */
|
||||
paths = gimp_image_get_paths (gimage);
|
||||
if (paths)
|
||||
{
|
||||
GSList *plist = NULL;
|
||||
GSList *new_plist = NULL;
|
||||
Path *path;
|
||||
PathList *new_paths;
|
||||
|
||||
for (plist = paths->bz_paths; plist; plist = plist->next)
|
||||
{
|
||||
path = plist->data;
|
||||
new_plist = g_slist_append (new_plist, path_copy (new_gimage, path));
|
||||
}
|
||||
|
||||
new_paths = path_list_new (new_gimage,
|
||||
paths->last_selected_row, new_plist);
|
||||
gimp_image_set_paths (new_gimage, new_paths);
|
||||
}
|
||||
|
||||
gimp_image_undo_enable (new_gimage);
|
||||
|
||||
return new_gimage;
|
||||
|
Reference in New Issue
Block a user