mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib:FileSel: X11 icons
git-svn-id: svn://ultimatepp.org/upp/trunk@2891 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
883342b8c2
commit
b295a996f9
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue