Revision: 10704
http://pure-data.svn.sourceforge.net/pure-data/?rev=10704&view=rev
Author: eighthave
Date: 2009-01-31 21:05:13 +0000 (Sat, 31 Jan 2009)
Log Message:
-----------
- moved the code that shifts the "Duplicate" copy/paste 10x10 pixels. It is
now in canvas_dopaste, so that it happens with both copy/paste and
duplicate. Ideally, it would work like discussed in this thread:
http://lists.puredata.info/pipermail/pd-list/2009-01/067731.html
Modified Paths:
--------------
branches/pd-extended/0.41/pd/src/g_editor.c
Modified: branches/pd-extended/0.41/pd/src/g_editor.c
===================================================================
--- branches/pd-extended/0.41/pd/src/g_editor.c 2009-01-31 16:49:33 UTC (rev 10703)
+++ branches/pd-extended/0.41/pd/src/g_editor.c 2009-01-31 21:05:13 UTC (rev 10704)
@@ -2128,6 +2128,7 @@
{
t_gobj *newgobj, *last, *g2;
int dspstate = canvas_suspend_dsp(), nbox, count;
+ t_selection *y;
canvas_editmode(x, 1.);
glist_noselect(x);
@@ -2142,6 +2143,8 @@
for (g2 = x->gl_list, count = 0; g2; g2 = g2->g_next, count++)
if (count >= nbox)
glist_select(x, g2);
+ for (y = x->gl_editor->e_selection; y; y = y->sel_next)
+ gobj_displace(y->sel_what, x, 10, 10);
paste_canvas = 0;
canvas_resume_dsp(dspstate);
canvas_dirty(x, 1);
@@ -2181,14 +2184,10 @@
{
if (x->gl_editor->e_onmotion == MA_NONE)
{
- t_selection *y;
canvas_copy(x);
canvas_setundo(x, canvas_undo_paste, canvas_undo_set_paste(x),
"duplicate");
canvas_dopaste(x, copy_binbuf);
- for (y = x->gl_editor->e_selection; y; y = y->sel_next)
- gobj_displace(y->sel_what, x,
- 10, 10);
canvas_dirty(x, 1);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
/bin/sh: -c: line 1: syntax error: unexpected end of file
glew.cpp:7996: internal compiler error: Illegal instruction
ERROR: module is write only
rsync error: syntax or usage error (code 1) at main.c(641) [sender=2.6.9]
rsync error: error in rsync protocol data stream (code 12) at io.c(453) [receiver=2.6.9]
the full logfile - if it has been succesfully uploaded - can be viewed at:
http://autobuild.puredata.info/auto-build/2009-01-31/logs/2009-01-31_06.27.…
allhammers.c:156: error: conflicting types for 'urn_setup'
allhammers.c:76: error: previous declaration of 'urn_setup' was here
allhammers.c:157: error: conflicting types for 'xbendin_setup'
allhammers.c:77: error: previous declaration of 'xbendin_setup' was here
allhammers.c:158: error: conflicting types for 'xbendin2_setup'
allhammers.c:78: error: previous declaration of 'xbendin2_setup' was here
allhammers.c:159: error: conflicting types for 'xbendout_setup'
allhammers.c:79: error: previous declaration of 'xbendout_setup' was here
allhammers.c:160: error: conflicting types for 'xbendout2_setup'
allhammers.c:80: error: previous declaration of 'xbendout2_setup' was here
allhammers.c:161: error: conflicting types for 'xnotein_setup'
allhammers.c:81: error: previous declaration of 'xnotein_setup' was here
allhammers.c:162: error: conflicting types for 'xnoteout_setup'
allhammers.c:82: error: previous declaration of 'xnoteout_setup' was here
allhammers.c:163: error: conflicting types for 'zl_setup'
allhammers.c:83: error: previous declaration of 'zl_setup' was here
allhammers.c:164: error: syntax error before '}' token
ERROR: module is write only
rsync error: syntax or usage error (code 1) at main.c(641) [sender=2.6.9]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-35.2/rsync/io.c(452) [receiver=2.6.9]
the full logfile - if it has been succesfully uploaded - can be viewed at:
http://autobuild.puredata.info/auto-build/2009-01-31/logs/2009-01-31_03.15.…
allhammers.c:156: error: conflicting types for 'urn_setup'
allhammers.c:76: error: previous declaration of 'urn_setup' was here
allhammers.c:157: error: conflicting types for 'xbendin_setup'
allhammers.c:77: error: previous declaration of 'xbendin_setup' was here
allhammers.c:158: error: conflicting types for 'xbendin2_setup'
allhammers.c:78: error: previous declaration of 'xbendin2_setup' was here
allhammers.c:159: error: conflicting types for 'xbendout_setup'
allhammers.c:79: error: previous declaration of 'xbendout_setup' was here
allhammers.c:160: error: conflicting types for 'xbendout2_setup'
allhammers.c:80: error: previous declaration of 'xbendout2_setup' was here
allhammers.c:161: error: conflicting types for 'xnotein_setup'
allhammers.c:81: error: previous declaration of 'xnotein_setup' was here
allhammers.c:162: error: conflicting types for 'xnoteout_setup'
allhammers.c:82: error: previous declaration of 'xnoteout_setup' was here
allhammers.c:163: error: conflicting types for 'zl_setup'
allhammers.c:83: error: previous declaration of 'zl_setup' was here
allhammers.c:164: error: syntax error before '}' token
ERROR: module is write only
rsync error: syntax or usage error (code 1) at main.c(641) [sender=2.6.9]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-35.2/rsync/io.c(452) [receiver=2.6.9]
the full logfile - if it has been succesfully uploaded - can be viewed at:
http://autobuild.puredata.info/auto-build/2009-01-31/logs/2009-01-31_01.00.…
allhammers.c:156: error: conflicting types for 'urn_setup'
allhammers.c:76: error: previous declaration of 'urn_setup' was here
allhammers.c:157: error: conflicting types for 'xbendin_setup'
allhammers.c:77: error: previous declaration of 'xbendin_setup' was here
allhammers.c:158: error: conflicting types for 'xbendin2_setup'
allhammers.c:78: error: previous declaration of 'xbendin2_setup' was here
allhammers.c:159: error: conflicting types for 'xbendout_setup'
allhammers.c:79: error: previous declaration of 'xbendout_setup' was here
allhammers.c:160: error: conflicting types for 'xbendout2_setup'
allhammers.c:80: error: previous declaration of 'xbendout2_setup' was here
allhammers.c:161: error: conflicting types for 'xnotein_setup'
allhammers.c:81: error: previous declaration of 'xnotein_setup' was here
allhammers.c:162: error: conflicting types for 'xnoteout_setup'
allhammers.c:82: error: previous declaration of 'xnoteout_setup' was here
allhammers.c:163: error: conflicting types for 'zl_setup'
allhammers.c:83: error: previous declaration of 'zl_setup' was here
allhammers.c:164: error: syntax error before '}' token
ERROR: module is write only
rsync error: syntax or usage error (code 1) at main.c(641) [sender=2.6.9]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-35.2/rsync/io.c(452) [receiver=2.6.9]
the full logfile - if it has been succesfully uploaded - can be viewed at:
http://autobuild.puredata.info/auto-build/2009-01-31/logs/2009-01-31_01.00.…