diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-12-23 08:10:43 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-12-23 08:10:43 +0800 |
commit | b6f9d24761a55ad654b1999a94caccf9603150ad (patch) | |
tree | 421dd3af3135dfa225f5b5616dd4b225cefb8bbc /x11-themes/gtk-engines2/files/patch-engines_crux_src_crux-gradient.c | |
parent | 11719c938d7aa5042aa0ad62ed1be27207b74795 (diff) | |
download | marcuscom-ports-b6f9d24761a55ad654b1999a94caccf9603150ad.tar.gz marcuscom-ports-b6f9d24761a55ad654b1999a94caccf9603150ad.tar.zst marcuscom-ports-b6f9d24761a55ad654b1999a94caccf9603150ad.zip |
gtk-engines2:
Re-add it, at 2.6.0. Two patches were took from gnome-themes(-extras).
gnome-themes:
Disable all gtk engines, since gtk-engines2 took care of those now.
gnome-themes-extras:
Disable industrial complete, gtk-engines2 took care of engine and
themes can be install by gnome-industrial-theme port.
Only two themes, Grand Canyon and Smokey Blue, are broke because of pixmap
engine was removed from gtk-engines2.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3301 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-themes/gtk-engines2/files/patch-engines_crux_src_crux-gradient.c')
-rw-r--r-- | x11-themes/gtk-engines2/files/patch-engines_crux_src_crux-gradient.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/x11-themes/gtk-engines2/files/patch-engines_crux_src_crux-gradient.c b/x11-themes/gtk-engines2/files/patch-engines_crux_src_crux-gradient.c new file mode 100644 index 000000000..ec5a85340 --- /dev/null +++ b/x11-themes/gtk-engines2/files/patch-engines_crux_src_crux-gradient.c @@ -0,0 +1,31 @@ +--- engines/crux/src/crux-gradient.c.orig Thu Oct 16 20:57:05 2003 ++++ engines/crux/src/crux-gradient.c Thu Oct 16 21:01:18 2003 +@@ -207,7 +207,7 @@ + const eazel_engine_gradient *gradient) + { + int rgb_size = clip_rect->height; +- guchar *rgb = alloca (rgb_size * 3), *ptr; ++ guchar *rgb = g_malloc (rgb_size * 3), *ptr; + + eazel_engine_fill_gradient_rgb_buffer (gradient, full_rect->height, rgb, + clip_rect->y - full_rect->y, +@@ -239,7 +239,7 @@ + } + else + { +- guchar *xrgb = alloca (clip_rect->width * clip_rect->height * 3); ++ guchar *xrgb = g_malloc (clip_rect->width * clip_rect->height * 3); + int x, y; + guchar *ptr_in = rgb, *ptr_out = xrgb; + for (y = 0; y < clip_rect->height; y++) +@@ -257,7 +257,10 @@ + gdk_draw_rgb_image (drawable, gc, clip_rect->x, clip_rect->y, + clip_rect->width, clip_rect->height, + dither_mode, xrgb, clip_rect->width * 3); ++ g_free (xrgb); + } ++ ++ g_free (rgb); + } + + static void |