summaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-01-22 12:14:33 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-01-22 12:14:33 +0800
commit8351ec7a49b9887486d0c346b19b22210630c82c (patch)
tree61e487b44efd3cda26b1b7a15f3550af10393791 /x11-toolkits
parenta43b154571580ac4f32eb838e316837052717bcb (diff)
downloadmarcuscom-ports-8351ec7a49b9887486d0c346b19b22210630c82c.tar
marcuscom-ports-8351ec7a49b9887486d0c346b19b22210630c82c.tar.gz
marcuscom-ports-8351ec7a49b9887486d0c346b19b22210630c82c.tar.bz2
marcuscom-ports-8351ec7a49b9887486d0c346b19b22210630c82c.tar.lz
marcuscom-ports-8351ec7a49b9887486d0c346b19b22210630c82c.tar.xz
marcuscom-ports-8351ec7a49b9887486d0c346b19b22210630c82c.tar.zst
marcuscom-ports-8351ec7a49b9887486d0c346b19b22210630c82c.zip
Fix a crash that can occur when thumbnailing files that require scaling.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5505 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/libgnomeui/Makefile3
-rw-r--r--x11-toolkits/libgnomeui/files/patch-libgnomeui_gnome-thumbnail.c28
2 files changed, 30 insertions, 1 deletions
diff --git a/x11-toolkits/libgnomeui/Makefile b/x11-toolkits/libgnomeui/Makefile
index a0262b7fb..a0d042da1 100644
--- a/x11-toolkits/libgnomeui/Makefile
+++ b/x11-toolkits/libgnomeui/Makefile
@@ -3,10 +3,11 @@
# Whom: Joe Marcus Clarke <marcus@FreBSD.org>
#
# $FreeBSD$
-# $MCom: ports/x11-toolkits/libgnomeui/Makefile,v 1.68 2005/12/12 21:53:01 ahze Exp $
+# $MCom: ports/x11-toolkits/libgnomeui/Makefile,v 1.69 2006/01/17 02:43:35 marcus Exp $
PORTNAME= libgnomeui
PORTVERSION= 2.13.2
+PORTREVISION= 1
CATEGORIES= x11-toolkits gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.13
diff --git a/x11-toolkits/libgnomeui/files/patch-libgnomeui_gnome-thumbnail.c b/x11-toolkits/libgnomeui/files/patch-libgnomeui_gnome-thumbnail.c
new file mode 100644
index 000000000..c3c751eff
--- /dev/null
+++ b/x11-toolkits/libgnomeui/files/patch-libgnomeui_gnome-thumbnail.c
@@ -0,0 +1,28 @@
+--- libgnomeui/gnome-thumbnail.c.orig Sat Jan 21 23:11:21 2006
++++ libgnomeui/gnome-thumbnail.c Sat Jan 21 23:10:52 2006
+@@ -994,11 +994,7 @@ gnome_thumbnail_factory_generate_thumbna
+ return NULL;
+
+ width = gdk_pixbuf_get_width (pixbuf);
+- g_object_set_data_full (G_OBJECT (pixbuf), "gnome-thumbnail-width",
+- g_strdup_printf ("%d", width), g_free);
+ height = gdk_pixbuf_get_height (pixbuf);
+- g_object_set_data_full (G_OBJECT (pixbuf), "gnome-thumbnail-height",
+- g_strdup_printf ("%d", height), g_free);
+
+ if (width > size || height > size)
+ {
+@@ -1011,6 +1007,13 @@ gnome_thumbnail_factory_generate_thumbna
+ g_object_unref (pixbuf);
+ pixbuf = scaled;
+ }
++
++ width = gdk_pixbuf_get_width (pixbuf);
++ g_object_set_data_full (G_OBJECT (pixbuf), "gnome-thumbnail-width",
++ g_strdup_printf ("%d", width), g_free);
++ height = gdk_pixbuf_get_height (pixbuf);
++ g_object_set_data_full (G_OBJECT (pixbuf), "gnome-thumbnail-height",
++ g_strdup_printf ("%d", height), g_free);
+
+ return pixbuf;
+ }