[PD-cvs] SF.net SVN: pure-data: [9727] trunk/packages/patches/ proxy_icon_and_modified_state-0.41.4.patch

eighthave at users.sourceforge.net eighthave at users.sourceforge.net
Mon Apr 28 02:20:14 CEST 2008


Revision: 9727
          http://pure-data.svn.sourceforge.net/pure-data/?rev=9727&view=rev
Author:   eighthave
Date:     2008-04-27 17:20:13 -0700 (Sun, 27 Apr 2008)

Log Message:
-----------
Luke Iannini's proxy_icon_and_modified_state.patch fixed to eliminate crash
(caused by using %f in sys_vgui for an int value).  Also, made the title bar
fully Mac OS X-style.

Added Paths:
-----------
    trunk/packages/patches/proxy_icon_and_modified_state-0.41.4.patch

Added: trunk/packages/patches/proxy_icon_and_modified_state-0.41.4.patch
===================================================================
--- trunk/packages/patches/proxy_icon_and_modified_state-0.41.4.patch	                        (rev 0)
+++ trunk/packages/patches/proxy_icon_and_modified_state-0.41.4.patch	2008-04-28 00:20:13 UTC (rev 9727)
@@ -0,0 +1,20 @@
+Index: g_canvas.c
+===================================================================
+--- g_canvas.c	(revision 9721)
++++ g_canvas.c	(working copy)
+@@ -598,9 +598,15 @@
+         strcat(namebuf, ")");
+     }
+     else namebuf[0] = 0;
++#ifdef __APPLE__
++    sys_vgui("wm attributes .x%lx -modified %d -titlepath {%s/%s}\n",
++        x, x->gl_dirty, canvas_getdir(x)->s_name, x->gl_name->s_name);
++    sys_vgui("wm title .x%lx {%s%s}\n", x, x->gl_name->s_name, namebuf);
++#else
+     sys_vgui("wm title .x%lx {%s%c%s - %s}\n", 
+         x, x->gl_name->s_name, (x->gl_dirty? '*' : ' '), namebuf,
+             canvas_getdir(x)->s_name);
++#endif
+ }
+ 
+ void canvas_dirty(t_canvas *x, t_int n)


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