[PD-cvs] SF.net SVN: pure-data: [9927] trunk/packages/patches/ show_whole_subpatch_name_in_window_title-0.41.4.patch
eighthave at users.sourceforge.net
eighthave at users.sourceforge.net
Tue May 27 17:20:14 CEST 2008
Revision: 9927
http://pure-data.svn.sourceforge.net/pure-data/?rev=9927&view=rev
Author: eighthave
Date: 2008-05-27 08:20:12 -0700 (Tue, 27 May 2008)
Log Message:
-----------
patch # 1975056 show whole subpatch name in window title
http://sourceforge.net/tracker/index.php?func=detail&aid=1975056&group_id=55736&atid=478072
Added Paths:
-----------
trunk/packages/patches/show_whole_subpatch_name_in_window_title-0.41.4.patch
Added: trunk/packages/patches/show_whole_subpatch_name_in_window_title-0.41.4.patch
===================================================================
--- trunk/packages/patches/show_whole_subpatch_name_in_window_title-0.41.4.patch (rev 0)
+++ trunk/packages/patches/show_whole_subpatch_name_in_window_title-0.41.4.patch 2008-05-27 15:20:12 UTC (rev 9927)
@@ -0,0 +1,39 @@
+Index: g_canvas.c
+===================================================================
+--- g_canvas.c (revision 9910)
++++ g_canvas.c (working copy)
+@@ -1133,10 +1133,22 @@
+
+ /* -------------------------- subcanvases ---------------------- */
+
+-static void *subcanvas_new(t_symbol *s)
++static void *subcanvas_new(t_symbol *s, int argc, t_atom *argv)
+ {
+ t_atom a[6];
+ t_canvas *x, *z = canvas_getcurrent();
++ if (argc)
++ {
++ int bufsize;
++ char *buf;
++ t_binbuf *bb = binbuf_new();
++ binbuf_addv(bb, "s", s);
++ binbuf_add(bb, argc, argv);
++ binbuf_gettext(bb, &buf, &bufsize);
++ buf[bufsize] = '\0';
++ binbuf_free(bb);
++ s = gensym(buf);
++ }
+ if (!*s->s_name) s = gensym("/SUBPATCH/");
+ SETFLOAT(a, 0);
+ SETFLOAT(a+1, GLIST_DEFCANVASYLOC);
+@@ -1750,8 +1762,8 @@
+ A_NULL);
+
+ /* ----- subcanvases, which you get by typing "pd" in a box ---- */
+- class_addcreator((t_newmethod)subcanvas_new, gensym("pd"), A_DEFSYMBOL, 0);
+- class_addcreator((t_newmethod)subcanvas_new, gensym("page"), A_DEFSYMBOL, 0);
++ class_addcreator((t_newmethod)subcanvas_new, gensym("pd"), A_GIMME, 0);
++ class_addcreator((t_newmethod)subcanvas_new, gensym("page"), A_GIMME, 0);
+
+ class_addmethod(canvas_class, (t_method)canvas_click,
+ gensym("click"), A_FLOAT, A_FLOAT, A_FLOAT, A_FLOAT, A_FLOAT, 0);
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