mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: Fixing FileSel icon issue
git-svn-id: svn://ultimatepp.org/upp/trunk@1497 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c6c41ac2c6
commit
e4d27351ce
1 changed files with 7 additions and 1 deletions
|
|
@ -560,7 +560,13 @@ bool IsEmptyImage(const Image& m)
|
|||
|
||||
Image GtkThemeIcon(const char *name, int size)
|
||||
{
|
||||
return GetGTK(gtk__parent(), size, 0, name, GTK_THEMEICON, 0, 0);
|
||||
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;
|
||||
if(sz.cx > rsz || sz.cy > rsz)
|
||||
m = Rescale(m, rsz, rsz);
|
||||
return m;
|
||||
}
|
||||
|
||||
int GtkStyleInt(const char *name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue