diff options
author | rafan <rafan@FreeBSD.org> | 2007-04-09 19:57:24 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2007-04-09 19:57:24 +0800 |
commit | ed9eca31e63ea9215f3e47f2b4a40c92439cf2ec (patch) | |
tree | ce294109b327eafb02f5e97e59b09a9346d4da3a /x11 | |
parent | f13161860f8b2d6277362270468bd1632b83f35f (diff) | |
download | freebsd-ports-gnome-ed9eca31e63ea9215f3e47f2b4a40c92439cf2ec.tar.gz freebsd-ports-gnome-ed9eca31e63ea9215f3e47f2b4a40c92439cf2ec.tar.zst freebsd-ports-gnome-ed9eca31e63ea9215f3e47f2b4a40c92439cf2ec.zip |
- Fix theme parsing on 7.x. This patch is also accepted by upstream.
PR: ports/111342
Submitted by: Henrik Brix Andersen <henrik at brixandersen.dk>
Approved by: Tobias <ports at fsck.ch> (maintainer)
Diffstat (limited to 'x11')
-rw-r--r-- | x11/slim/Makefile | 1 | ||||
-rw-r--r-- | x11/slim/files/patch-cfg.cpp | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/x11/slim/Makefile b/x11/slim/Makefile index 2311f67efaca..b4b651a09ca5 100644 --- a/x11/slim/Makefile +++ b/x11/slim/Makefile @@ -7,6 +7,7 @@ PORTNAME= slim PORTVERSION= 1.2.6 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_BERLIOS} \ http://depot.fsck.ch/mirror/distfiles/ diff --git a/x11/slim/files/patch-cfg.cpp b/x11/slim/files/patch-cfg.cpp new file mode 100644 index 000000000000..9a99a33d0a92 --- /dev/null +++ b/x11/slim/files/patch-cfg.cpp @@ -0,0 +1,12 @@ +--- cfg.cpp.orig Sat Sep 16 05:00:37 2006 ++++ cfg.cpp Mon Apr 9 19:52:17 2007 +@@ -211,8 +211,7 @@ + int n = -1; + n = position.find("%"); + if (n>0) { // X Position expressed in percentage +- const char* tmp = position.substr(0, n).c_str(); +- int result = (max*string2int(tmp)/100) - (width / 2); ++ int result = (max*string2int(position.substr(0, n).c_str())/100) - (width / 2); + return result < 0 ? 0 : result ; + } else { // Absolute X position + return string2int(position.c_str()); |