aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-04-28 00:20:13 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-04-28 00:20:13 +0000
commitf10e1f9aaa00d02d494b8b47b8f10301bfcc66a1 (patch)
tree5102ec238ab3b6889ed0d4120508045c91307168
parent23d7b38ab232d65f799f54fd14d88b8000f75f8b (diff)
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. svn path=/trunk/; revision=9727
-rw-r--r--packages/patches/proxy_icon_and_modified_state-0.41.4.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/patches/proxy_icon_and_modified_state-0.41.4.patch b/packages/patches/proxy_icon_and_modified_state-0.41.4.patch
new file mode 100644
index 00000000..1ee7bb41
--- /dev/null
+++ b/packages/patches/proxy_icon_and_modified_state-0.41.4.patch
@@ -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)