[PD-cvs] SF.net SVN: pure-data: [9734] branches/pd-extended/v0-40/pd/src
eighthave at users.sourceforge.net
eighthave at users.sourceforge.net
Mon Apr 28 17:26:52 CEST 2008
Revision: 9734
http://pure-data.svn.sourceforge.net/pure-data/?rev=9734&view=rev
Author: eighthave
Date: 2008-04-28 08:26:52 -0700 (Mon, 28 Apr 2008)
Log Message:
-----------
Sets dirty flag for all canvas-related properties panels (i.e. NOT the audio/midi/path/startup pref panels). This should work for properties panels: canvas, arrays, iemguis, and atom boxes.
The only downside is that with the properties panels, there is no checking whether there has actually be any change. I just sets the dirty flag if the user clicks on OK or Apply.
Modified Paths:
--------------
branches/pd-extended/v0-40/pd/src/g_all_guis.c
branches/pd-extended/v0-40/pd/src/g_array.c
branches/pd-extended/v0-40/pd/src/g_editor.c
branches/pd-extended/v0-40/pd/src/g_text.c
Modified: branches/pd-extended/v0-40/pd/src/g_all_guis.c
===================================================================
--- branches/pd-extended/v0-40/pd/src/g_all_guis.c 2008-04-28 14:24:49 UTC (rev 9733)
+++ branches/pd-extended/v0-40/pd/src/g_all_guis.c 2008-04-28 15:26:52 UTC (rev 9734)
@@ -633,6 +633,7 @@
fs = 4;
iemgui->x_fontsize = fs;
iemgui_verify_snd_ne_rcv(iemgui);
+ canvas_dirty(iemgui->x_glist, 1);
return(oldsndrcvable);
}
Modified: branches/pd-extended/v0-40/pd/src/g_array.c
===================================================================
--- branches/pd-extended/v0-40/pd/src/g_array.c 2008-04-28 14:24:49 UTC (rev 9733)
+++ branches/pd-extended/v0-40/pd/src/g_array.c 2008-04-28 15:26:52 UTC (rev 9734)
@@ -385,6 +385,7 @@
gl = glist_addglist(parent, &s_, 0, 1,
(size > 1 ? size-1 : size), -1, 0, 0, 0, 0);
a = graph_array(gl, sharptodollar(name), &s_float, size, flags);
+ canvas_dirty(parent, 1);
}
/* this is called from the properties dialog window for an existing array */
@@ -453,6 +454,7 @@
garray_setsaveit(x, (saveit != 0));
garray_redraw(x);
+ canvas_dirty(x->x_glist, 1);
}
}
Modified: branches/pd-extended/v0-40/pd/src/g_editor.c
===================================================================
--- branches/pd-extended/v0-40/pd/src/g_editor.c 2008-04-28 14:24:49 UTC (rev 9733)
+++ branches/pd-extended/v0-40/pd/src/g_editor.c 2008-04-28 15:26:52 UTC (rev 9734)
@@ -963,6 +963,7 @@
}
/* LATER avoid doing 2 redraws here (possibly one inside setgraph) */
canvas_setgraph(x, graphme, 0);
+ canvas_dirty(x, 1);
if (x->gl_havewindow)
canvas_redraw(x);
else if (glist_isvisible(x->gl_owner))
Modified: branches/pd-extended/v0-40/pd/src/g_text.c
===================================================================
--- branches/pd-extended/v0-40/pd/src/g_text.c 2008-04-28 14:24:49 UTC (rev 9733)
+++ branches/pd-extended/v0-40/pd/src/g_text.c 2008-04-28 15:26:52 UTC (rev 9734)
@@ -760,6 +760,7 @@
x->a_symto = symto;
x->a_expanded_to = canvas_realizedollar(x->a_glist, x->a_symto);
gobj_vis(&x->a_text.te_g, x->a_glist, 1);
+ canvas_dirty(x->a_glist, 1);
/* glist_retext(x->a_glist, &x->a_text); */
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Pd-cvs
mailing list