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 | |
parent | 20b95f189ea562f85ef752beca4d79afc6f2e617 (diff) | |
download | alpine_aports-74bb8ece11953b2cb75b86c3f5edc08c5122a0bf.tar.bz2 alpine_aports-74bb8ece11953b2cb75b86c3f5edc08c5122a0bf.tar.xz alpine_aports-74bb8ece11953b2cb75b86c3f5edc08c5122a0bf.zip |
main/gnome-disk-utility: better exp2 patch
-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 30c145aeb0..2429f62973 100644 --- a/main/gnome-disk-utility/APKBUILD +++ b/main/gnome-disk-utility/APKBUILD | |||
@@ -1,7 +1,7 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=gnome-disk-utility | 2 | pkgname=gnome-disk-utility |
3 | pkgver=2.32.0 | 3 | pkgver=2.32.0 |
4 | pkgrel=1 | 4 | pkgrel=2 |
5 | pkgdesc="GNOME libraries and applications for dealing with storage devices" | 5 | pkgdesc="GNOME libraries and applications for dealing with storage devices" |
6 | url="http://www.gnome.org" | 6 | url="http://www.gnome.org" |
7 | arch="all" | 7 | arch="all" |
@@ -58,4 +58,4 @@ uilibs() { | |||
58 | 58 | ||
59 | md5sums="f0366c8baebca0404d190b2d78f3582d gnome-disk-utility-2.32.0.tar.bz2 | 59 | md5sums="f0366c8baebca0404d190b2d78f3582d gnome-disk-utility-2.32.0.tar.bz2 |
60 | c0161b09b620ef9c3975db400518eb1f fix-freeze.patch | 60 | c0161b09b620ef9c3975db400518eb1f fix-freeze.patch |
61 | ac7d749bb6fa2e31bffb1f47822bc22b exp2.patch" | 61 | 40b82bb896ae40352498ed3dadd2f3d6 exp2.patch" |
diff --git a/main/gnome-disk-utility/exp2.patch b/main/gnome-disk-utility/exp2.patch index 4499803628..66e8ce45e8 100644 --- a/main/gnome-disk-utility/exp2.patch +++ b/main/gnome-disk-utility/exp2.patch | |||
@@ -1,16 +1,13 @@ | |||
1 | --- ./src/gdu-gtk/gdu-size-widget.c.orig | 1 | diff --git a/src/gdu-gtk/gdu-size-widget.c b/src/gdu-gtk/gdu-size-widget.c |
2 | +++ ./src/gdu-gtk/gdu-size-widget.c | 2 | index 4dd6a8f..715ddad 100644 |
3 | @@ -564,11 +564,11 @@ | 3 | --- a/src/gdu-gtk/gdu-size-widget.c |
4 | +++ b/src/gdu-gtk/gdu-size-widget.c | ||
5 | @@ -564,7 +564,7 @@ update_stepping (GduSizeWidget *widget) | ||
4 | 6 | ||
5 | shown_extent = extent / unit_factor; | 7 | shown_extent = extent / unit_factor; |
6 | 8 | ||
7 | - increment = (exp10 (floor (log10 (shown_extent))) / 10.0) * unit_factor; | 9 | - increment = (exp10 (floor (log10 (shown_extent))) / 10.0) * unit_factor; |
8 | + increment = (exp2 (floor (log2 (shown_extent))) / 2.0) * unit_factor; | 10 | + increment = (exp (M_LN10 * floor (log10 (shown_extent))) / 10.0) * unit_factor; |
9 | 11 | ||
10 | gtk_range_set_increments (GTK_RANGE (widget->priv->hscale), | 12 | gtk_range_set_increments (GTK_RANGE (widget->priv->hscale), |
11 | increment, | 13 | increment, |
12 | - increment * 10.0); | ||
13 | + increment * 2.0); | ||
14 | } | ||
15 | |||
16 | |||