diff options
author | bland <bland@FreeBSD.org> | 2005-04-10 10:37:32 +0800 |
---|---|---|
committer | bland <bland@FreeBSD.org> | 2005-04-10 10:37:32 +0800 |
commit | a81cac163945d16e18754d2b4e3b15fbada5cd42 (patch) | |
tree | a6bbb9b0d83005868d670e385f4e720aaa32ed4c /x11-toolkits/gtk30 | |
parent | 0aca2a6e99b610f274946bf303d66f4a7ce20140 (diff) | |
download | freebsd-ports-gnome-a81cac163945d16e18754d2b4e3b15fbada5cd42.tar.gz freebsd-ports-gnome-a81cac163945d16e18754d2b4e3b15fbada5cd42.tar.zst freebsd-ports-gnome-a81cac163945d16e18754d2b4e3b15fbada5cd42.zip |
Fix missing icons bug (bug #169870).
Thanks to: Adam McLaurin <freebsd@irotas.net>
Diffstat (limited to 'x11-toolkits/gtk30')
-rw-r--r-- | x11-toolkits/gtk30/Makefile | 1 | ||||
-rw-r--r-- | x11-toolkits/gtk30/files/patch-gtk_gtkimage.c | 41 |
2 files changed, 42 insertions, 0 deletions
diff --git a/x11-toolkits/gtk30/Makefile b/x11-toolkits/gtk30/Makefile index b3ea7ffb8f3f..b1173b409e7d 100644 --- a/x11-toolkits/gtk30/Makefile +++ b/x11-toolkits/gtk30/Makefile @@ -7,6 +7,7 @@ PORTNAME= gtk PORTVERSION= 2.6.5 +PORTREVISION= 1 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/gtk+/2.6,} \ ftp://ftp.gtk.org/pub/gtk/v2.6/ \ diff --git a/x11-toolkits/gtk30/files/patch-gtk_gtkimage.c b/x11-toolkits/gtk30/files/patch-gtk_gtkimage.c new file mode 100644 index 000000000000..64317b2987ad --- /dev/null +++ b/x11-toolkits/gtk30/files/patch-gtk_gtkimage.c @@ -0,0 +1,41 @@ +Index: gtk/gtkimage.c +=================================================================== +RCS file: /cvs/gnome/gtk+/gtk/gtkimage.c,v +retrieving revision 1.54.2.5 +diff -p -u -r1.54.2.5 gtkimage.c +--- gtk/gtkimage.c 9 Apr 2005 02:51:02 -0000 1.54.2.5 ++++ gtk/gtkimage.c 9 Apr 2005 15:55:36 -0000 +@@ -1545,7 +1545,6 @@ gtk_image_expose (GtkWidget *widget + GdkBitmap *mask; + GdkPixbuf *pixbuf; + gboolean needs_state_transform; +- GtkStockItem item; + gchar *stock_id; + + +@@ -1655,7 +1654,7 @@ gtk_image_expose (GtkWidget *widget + break; + + case GTK_IMAGE_STOCK: +- if (gtk_stock_lookup (image->data.stock.stock_id, &item)) ++ if (gtk_style_lookup_icon_set (widget->style, image->data.stock.stock_id)) + stock_id = image->data.stock.stock_id; + else + stock_id = GTK_STOCK_MISSING_IMAGE; +@@ -1955,7 +1954,6 @@ gtk_image_calc_size (GtkImage *image) + { + GtkWidget *widget = GTK_WIDGET (image); + GdkPixbuf *pixbuf = NULL; +- GtkStockItem item; + gchar *stock_id; + + /* We update stock/icon set on every size request, because +@@ -1966,7 +1964,7 @@ gtk_image_calc_size (GtkImage *image) + switch (image->storage_type) + { + case GTK_IMAGE_STOCK: +- if (gtk_stock_lookup (image->data.stock.stock_id, &item)) ++ if (gtk_style_lookup_icon_set (widget->style, image->data.stock.stock_id)) + stock_id = image->data.stock.stock_id; + else + stock_id = GTK_STOCK_MISSING_IMAGE; |