diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-17 09:33:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-17 09:33:50 +0000 |
commit | 74bb8ece11953b2cb75b86c3f5edc08c5122a0bf (patch) | |
tree | 2166ea51324044bc9cd2c308770f6fbcabdcdd29 /main/gnome-disk-utility | |
parent | 20b95f189ea562f85ef752beca4d79afc6f2e617 (diff) | |
download | aports-74bb8ece11953b2cb75b86c3f5edc08c5122a0bf.tar.bz2 aports-74bb8ece11953b2cb75b86c3f5edc08c5122a0bf.tar.xz |
main/gnome-disk-utility: better exp2 patch
Diffstat (limited to 'main/gnome-disk-utility')
-rw-r--r-- | main/gnome-disk-utility/APKBUILD | 4 | ||||
-rw-r--r-- | main/gnome-disk-utility/exp2.patch | 15 |
2 files changed, 8 insertions, 11 deletions
diff --git a/main/gnome-disk-utility/APKBUILD b/main/gnome-disk-utility/APKBUILD index 30c145aeb..2429f6297 100644 --- a/main/gnome-disk-utility/APKBUILD +++ b/main/gnome-disk-utility/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=gnome-disk-utility pkgver=2.32.0 -pkgrel=1 +pkgrel=2 pkgdesc="GNOME libraries and applications for dealing with storage devices" url="http://www.gnome.org" arch="all" @@ -58,4 +58,4 @@ uilibs() { md5sums="f0366c8baebca0404d190b2d78f3582d gnome-disk-utility-2.32.0.tar.bz2 c0161b09b620ef9c3975db400518eb1f fix-freeze.patch -ac7d749bb6fa2e31bffb1f47822bc22b exp2.patch" +40b82bb896ae40352498ed3dadd2f3d6 exp2.patch" diff --git a/main/gnome-disk-utility/exp2.patch b/main/gnome-disk-utility/exp2.patch index 449980362..66e8ce45e 100644 --- a/main/gnome-disk-utility/exp2.patch +++ b/main/gnome-disk-utility/exp2.patch @@ -1,16 +1,13 @@ ---- ./src/gdu-gtk/gdu-size-widget.c.orig -+++ ./src/gdu-gtk/gdu-size-widget.c -@@ -564,11 +564,11 @@ +diff --git a/src/gdu-gtk/gdu-size-widget.c b/src/gdu-gtk/gdu-size-widget.c +index 4dd6a8f..715ddad 100644 +--- a/src/gdu-gtk/gdu-size-widget.c ++++ b/src/gdu-gtk/gdu-size-widget.c +@@ -564,7 +564,7 @@ update_stepping (GduSizeWidget *widget) shown_extent = extent / unit_factor; - increment = (exp10 (floor (log10 (shown_extent))) / 10.0) * unit_factor; -+ increment = (exp2 (floor (log2 (shown_extent))) / 2.0) * unit_factor; ++ increment = (exp (M_LN10 * floor (log10 (shown_extent))) / 10.0) * unit_factor; gtk_range_set_increments (GTK_RANGE (widget->priv->hscale), increment, -- increment * 10.0); -+ increment * 2.0); - } - - |