CtrlLib:FileSel: X11 icons

git-svn-id: svn://ultimatepp.org/upp/trunk@2891 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-12-05 14:01:26 +00:00
parent 883342b8c2
commit b295a996f9
2 changed files with 4 additions and 4 deletions

View file

@ -573,11 +573,11 @@ bool IsEmptyImage(const Image& m)
return true;
}
Image GtkThemeIcon(const char *name, int size)
Image GtkThemeIcon(const char *name, bool large)
{
Image m = GetGTK(gtk__parent(), size, 0, name, GTK_THEMEICON, 0, 0);
int rsz = large ? 48 : 16;
Image m = GetGTK(gtk__parent(), rsz, 0, name, GTK_THEMEICON, 0, 0);
Size sz = m.GetSize();
int rsz = size ? 48 : 16;
if(sz.cx > rsz || sz.cy > rsz)
m = Rescale(m, rsz, rsz);
return m;

View file

@ -94,7 +94,7 @@ Image GetFileIcon(const String& folder, const String& filename, bool isdir, bool
}
#else
Image GtkThemeIcon(const char *name, int size);
Image GtkThemeIcon(const char *name, bool large);
Image GnomeImage(const char *s, bool large = false)
{