Mercurial > dwindows
comparison gtk/dw.c @ 1707:0b1be0a99f59
Opps committed wrong version of _icon_resize() for GTK2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 05 May 2012 21:21:49 +0000 |
parents | fb6807b0ab0d |
children | de49c1f284b2 |
comparison
equal
deleted
inserted
replaced
1706:fb6807b0ab0d | 1707:0b1be0a99f59 |
---|---|
6961 | 6961 |
6962 #if GTK_MAJOR_VERSION > 1 | 6962 #if GTK_MAJOR_VERSION > 1 |
6963 /* Internal function to keep HICNs from getting too big */ | 6963 /* Internal function to keep HICNs from getting too big */ |
6964 GdkPixbuf *_icon_resize(GdkPixbuf *ret) | 6964 GdkPixbuf *_icon_resize(GdkPixbuf *ret) |
6965 { | 6965 { |
6966 pwidth = gdk_pixbuf_get_width(ret); | 6966 int pwidth = gdk_pixbuf_get_width(ret); |
6967 pheight = gdk_pixbuf_get_height(ret); | 6967 int pheight = gdk_pixbuf_get_height(ret); |
6968 | 6968 |
6969 if(pwidth > 24 || pheight > 24) | 6969 if(pwidth > 24 || pheight > 24) |
6970 { | 6970 { |
6971 GdkPixbuf *orig = ret; | 6971 GdkPixbuf *orig = ret; |
6972 ret = gdk_pixbuf_scale_simple(ret, pwidth > 24 ? 24 : pwidth, pheight > 24 ? 24 : pheight, GDK_INTERP_BILINEAR); | 6972 ret = gdk_pixbuf_scale_simple(ret, pwidth > 24 ? 24 : pwidth, pheight > 24 ? 24 : pheight, GDK_INTERP_BILINEAR); |