From f10e1f9aaa00d02d494b8b47b8f10301bfcc66a1 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 28 Apr 2008 00:20:13 +0000 Subject: 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 --- .../proxy_icon_and_modified_state-0.41.4.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 packages/patches/proxy_icon_and_modified_state-0.41.4.patch (limited to 'packages') 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) -- cgit v1.2.1