summaryrefslogtreecommitdiffstats
path: root/x11-themes/gnome-themes/files
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2004-11-19 07:18:19 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2004-11-19 07:18:19 +0800
commitb7018a0e1a1152e67e8b1a30e4ab4fcc83fcaf15 (patch)
tree603326db198d65494b7f26689196d8b62482a0ee /x11-themes/gnome-themes/files
parent137c190aa03dd0f53926ed9c15ab796e312cb92d (diff)
downloadmarcuscom-ports-b7018a0e1a1152e67e8b1a30e4ab4fcc83fcaf15.tar
marcuscom-ports-b7018a0e1a1152e67e8b1a30e4ab4fcc83fcaf15.tar.gz
marcuscom-ports-b7018a0e1a1152e67e8b1a30e4ab4fcc83fcaf15.tar.bz2
marcuscom-ports-b7018a0e1a1152e67e8b1a30e4ab4fcc83fcaf15.tar.lz
marcuscom-ports-b7018a0e1a1152e67e8b1a30e4ab4fcc83fcaf15.tar.xz
marcuscom-ports-b7018a0e1a1152e67e8b1a30e4ab4fcc83fcaf15.tar.zst
marcuscom-ports-b7018a0e1a1152e67e8b1a30e4ab4fcc83fcaf15.zip
-Re-add gnome-themes, at 2.9.1.
-Reset to $FreeBSD$. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3082 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-themes/gnome-themes/files')
-rw-r--r--x11-themes/gnome-themes/files/patch-gtk-themes_Crux_src_crux-gradient.c31
-rw-r--r--x11-themes/gnome-themes/files/patch-gtk-themes_Crux_src_crux-pixmaps.c14
-rw-r--r--x11-themes/gnome-themes/files/patch-metacity-themes_Makefile.in11
3 files changed, 56 insertions, 0 deletions
diff --git a/x11-themes/gnome-themes/files/patch-gtk-themes_Crux_src_crux-gradient.c b/x11-themes/gnome-themes/files/patch-gtk-themes_Crux_src_crux-gradient.c
new file mode 100644
index 000000000..9111a7ac5
--- /dev/null
+++ b/x11-themes/gnome-themes/files/patch-gtk-themes_Crux_src_crux-gradient.c
@@ -0,0 +1,31 @@
+--- gtk-themes/Crux/src/crux-gradient.c.orig Thu Oct 16 20:57:05 2003
++++ gtk-themes/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
diff --git a/x11-themes/gnome-themes/files/patch-gtk-themes_Crux_src_crux-pixmaps.c b/x11-themes/gnome-themes/files/patch-gtk-themes_Crux_src_crux-pixmaps.c
new file mode 100644
index 000000000..7813ce91f
--- /dev/null
+++ b/x11-themes/gnome-themes/files/patch-gtk-themes_Crux_src_crux-pixmaps.c
@@ -0,0 +1,14 @@
+--- gtk-themes/Crux/src/crux-pixmaps.c.orig Thu Oct 16 21:01:59 2003
++++ gtk-themes/Crux/src/crux-pixmaps.c Thu Oct 16 21:02:17 2003
+@@ -340,9 +340,10 @@
+ {
+ GdkPixbuf *pixbuf;
+ size_t len = strlen (*path) + strlen (file) + 2;
+- char *buf = alloca (len);
++ char *buf = g_malloc (len);
+ sprintf (buf, "%s/%s", *path, file);
+ pixbuf = gdk_pixbuf_new_from_file (buf, NULL);
++ g_free (buf);
+ if (pixbuf != 0)
+ return pixbuf;
+ path++;
diff --git a/x11-themes/gnome-themes/files/patch-metacity-themes_Makefile.in b/x11-themes/gnome-themes/files/patch-metacity-themes_Makefile.in
new file mode 100644
index 000000000..7694d5d3a
--- /dev/null
+++ b/x11-themes/gnome-themes/files/patch-metacity-themes_Makefile.in
@@ -0,0 +1,11 @@
+--- metacity-themes/Makefile.in.orig Mon May 31 20:29:45 2004
++++ metacity-themes/Makefile.in Mon May 31 20:29:56 2004
+@@ -133,7 +133,7 @@
+ THEMES = Mist Sandwish Smokey
+
+
+-THEME_DIR = $(datadir)/themes
++THEME_DIR = $(datadir)/gnome/themes
+ THEME_SUBDIR = metacity-1
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_HEADER = ../config.h