GtkThemIcon fix

git-svn-id: svn://ultimatepp.org/upp/trunk@1498 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-08-12 08:11:04 +00:00
parent e4d27351ce
commit bb7ddd4240

View file

@ -560,7 +560,8 @@ bool IsEmptyImage(const Image& m)
Image GtkThemeIcon(const char *name, int size)
{
Image m = GetGTK(gtk__parent(), size ? GTK_ICON_SIZE_LARGE_TOOLBAR : GTK_ICON_SIZE_SMALL_TOOLBAR,
Image m = GetGTK(gtk__parent(), size ? GTK_ICON_SIZE_LARGE_TOOLBAR
: GTK_ICON_SIZE_SMALL_TOOLBAR,
0, name, GTK_THEMEICON, 0, 0);
Size sz = m.GetSize();
int rsz = size ? 48 : 16;