diff options
author | eadler <eadler@FreeBSD.org> | 2012-01-29 23:57:53 +0800 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-01-29 23:57:53 +0800 |
commit | 3b4e53a19c5bb58c2d034f740cf0bc65d5dd0700 (patch) | |
tree | af2a63e70b511b3b219c243991b9882ba98a5caa /x11-wm/icewm | |
parent | b3d93b33ab60abe394f940460507257bb427d341 (diff) | |
download | freebsd-ports-gnome-3b4e53a19c5bb58c2d034f740cf0bc65d5dd0700.tar.gz freebsd-ports-gnome-3b4e53a19c5bb58c2d034f740cf0bc65d5dd0700.tar.zst freebsd-ports-gnome-3b4e53a19c5bb58c2d034f740cf0bc65d5dd0700.zip |
Add file I forgot to add in the last commit
Diffstat (limited to 'x11-wm/icewm')
-rw-r--r-- | x11-wm/icewm/files/extra-menu-icon-fix.patch | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/x11-wm/icewm/files/extra-menu-icon-fix.patch b/x11-wm/icewm/files/extra-menu-icon-fix.patch new file mode 100644 index 000000000000..7fbbe680c429 --- /dev/null +++ b/x11-wm/icewm/files/extra-menu-icon-fix.patch @@ -0,0 +1,73 @@ +diff -Naur src/yicon.cc src/yicon.cc +--- src/yicon.cc 2010-10-31 15:09:36.000000000 +0100 ++++ src/yicon.cc 2011-11-07 19:41:52.841910531 +0100 +@@ -270,6 +270,10 @@ + iconCache.getItem(0)->removeFromCache(); + } + ++int YIcon::menuSize() { ++ return menuIconSize; ++} ++ + int YIcon::smallSize() { + return smallIconSize; + } +diff -Naur src/yicon.h src/yicon.h +--- src/yicon.h 2010-10-31 15:09:36.000000000 +0100 ++++ src/yicon.h 2011-11-07 19:41:28.555296033 +0100 +@@ -25,6 +25,7 @@ + bool isCached() { return fCached; } + void setCached(bool cached) { fCached = cached; } + ++ static int menuSize(); + static int smallSize(); + static int largeSize(); + static int hugeSize(); +diff -Naur src/ymenu.cc src/ymenu.cc +--- src/ymenu.cc 2010-10-31 15:09:36.000000000 +0100 ++++ src/ymenu.cc 2011-11-07 19:42:40.498474049 +0100 +@@ -153,8 +153,8 @@ + + #ifndef LITE + if (getItem(selItem)->getIcon() != null && +- YIcon::smallSize() > h) +- h = YIcon::smallSize(); ++ YIcon::menuSize() > h) ++ h = YIcon::menuSize(); + #endif + + if (x <= int(width() - h - 4)) +@@ -1023,8 +1023,8 @@ + mitem->getIcon()->draw(g, + l + 1 + delta, t + delta + top + pad + + (eh - top - pad * 2 - bottom - +- YIcon::smallSize()) / 2, +- YIcon::smallSize()); ++ YIcon::menuSize()) / 2, ++ YIcon::menuSize()); + #endif + } + +diff -Naur src/ymenuitem.cc src/ymenuitem.cc +--- src/ymenuitem.cc 2010-10-31 15:09:36.000000000 +0100 ++++ src/ymenuitem.cc 2011-11-07 19:50:04.458316916 +0100 +@@ -86,8 +86,8 @@ + int ih = fontHeight; + + #ifndef LITE +- if (YIcon::smallSize() > ih) +- ih = YIcon::smallSize(); ++ if (YIcon::menuSize() > ih) ++ ih = YIcon::menuSize(); + #endif + + if (wmLook == lookWarp4 || wmLook == lookWin95) { +@@ -123,7 +123,7 @@ + return 0; + #else + ref<YIcon> icon = getIcon(); +- return icon != null ? YIcon::smallSize(): 0; ++ return icon != null ? YIcon::menuSize(): 0; + #endif + } + |