diff options
author | Ross Burton <ross@openedhand.com> | 2007-07-26 16:12:11 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2007-07-26 16:12:11 +0000 |
commit | 7d9c3749e535cb5b51402299d58bab4104880d8f (patch) | |
tree | 4ed3cb07d8361edde6596b1e950e4f57eb368df4 /meta/packages/gtk+ | |
parent | 24f13ade828c10aee426164e9a35d455027e3358 (diff) | |
download | poky-7d9c3749e535cb5b51402299d58bab4104880d8f.tar.gz |
Add a bit of a hack patch to disable frantic redrawing of GtkRange when they move, so that the contents has a change on slower devices
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2234 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/gtk+')
-rw-r--r-- | meta/packages/gtk+/gtk+-2.10.12/range-no-redraw.patch | 17 | ||||
-rw-r--r-- | meta/packages/gtk+/gtk+-2.6.10/range-no-redraw.patch | 18 | ||||
-rw-r--r-- | meta/packages/gtk+/gtk+_2.10.12.bb | 3 | ||||
-rw-r--r-- | meta/packages/gtk+/gtk+_2.6.10.bb | 3 |
4 files changed, 39 insertions, 2 deletions
diff --git a/meta/packages/gtk+/gtk+-2.10.12/range-no-redraw.patch b/meta/packages/gtk+/gtk+-2.10.12/range-no-redraw.patch new file mode 100644 index 0000000000..384d71b4fe --- /dev/null +++ b/meta/packages/gtk+/gtk+-2.10.12/range-no-redraw.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Index: gtk/gtkrange.c | ||
2 | =================================================================== | ||
3 | --- gtk/gtkrange.c (revision 18523) | ||
4 | +++ gtk/gtkrange.c (working copy) | ||
5 | @@ -1979,8 +1979,12 @@ | ||
6 | gtk_widget_queue_draw (GTK_WIDGET (range)); | ||
7 | |||
8 | /* This is so we don't lag the widget being scrolled. */ | ||
9 | +#if 0 | ||
10 | + /* Disable this, the scroll bar lags a bit but the end result is that | ||
11 | + scrolling treeviews is *a lot* smoother. See GNOME #460534. */ | ||
12 | if (GTK_WIDGET_REALIZED (range)) | ||
13 | gdk_window_process_updates (GTK_WIDGET (range)->window, FALSE); | ||
14 | +#endif | ||
15 | } | ||
16 | |||
17 | /* Note that we don't round off to range->round_digits here. | ||
diff --git a/meta/packages/gtk+/gtk+-2.6.10/range-no-redraw.patch b/meta/packages/gtk+/gtk+-2.6.10/range-no-redraw.patch new file mode 100644 index 0000000000..d168712282 --- /dev/null +++ b/meta/packages/gtk+/gtk+-2.6.10/range-no-redraw.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | Index: gtk/gtkrange.c | ||
2 | =================================================================== | ||
3 | --- gtk/gtkrange.c (revision 18542) | ||
4 | +++ gtk/gtkrange.c (working copy) | ||
5 | @@ -1569,9 +1569,12 @@ | ||
6 | |||
7 | gtk_widget_queue_draw (GTK_WIDGET (range)); | ||
8 | /* This is so we don't lag the widget being scrolled. */ | ||
9 | +#if 0 | ||
10 | + /* Disable this, the scroll bar lags a bit but the end result is that | ||
11 | + scrolling treeviews is *a lot* smoother. See GNOME #460534. */ | ||
12 | if (GTK_WIDGET_REALIZED (range)) | ||
13 | gdk_window_process_updates (GTK_WIDGET (range)->window, FALSE); | ||
14 | - | ||
15 | +#endif | ||
16 | /* Note that we don't round off to range->round_digits here. | ||
17 | * that's because it's really broken to change a value | ||
18 | * in response to a change signal on that value; round_digits | ||
diff --git a/meta/packages/gtk+/gtk+_2.10.12.bb b/meta/packages/gtk+/gtk+_2.10.12.bb index 64241a79b1..0140286173 100644 --- a/meta/packages/gtk+/gtk+_2.10.12.bb +++ b/meta/packages/gtk+/gtk+_2.10.12.bb | |||
@@ -1,7 +1,7 @@ | |||
1 | require gtk+.inc | 1 | require gtk+.inc |
2 | 2 | ||
3 | DEPENDS += "cairo" | 3 | DEPENDS += "cairo" |
4 | PR = "r11" | 4 | PR = "r12" |
5 | 5 | ||
6 | # disable per default - untested and not all patches included. | 6 | # disable per default - untested and not all patches included. |
7 | DEFAULT_PREFERENCE = "-1" | 7 | DEFAULT_PREFERENCE = "-1" |
@@ -23,6 +23,7 @@ SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.10/gtk+-${PV}.tar.bz2 \ | |||
23 | file://entry-cairo.patch;patch=1;pnum=0 \ | 23 | file://entry-cairo.patch;patch=1;pnum=0 \ |
24 | file://toggle-font.diff;patch=1;pnum=0 \ | 24 | file://toggle-font.diff;patch=1;pnum=0 \ |
25 | file://combo-arrow-size.patch;patch=1;pnum=0 \ | 25 | file://combo-arrow-size.patch;patch=1;pnum=0 \ |
26 | file://range-no-redraw.patch;patch=1;pnum=0 \ | ||
26 | file://scrolled-placement.patch;patch=1;pnum=0" | 27 | file://scrolled-placement.patch;patch=1;pnum=0" |
27 | # file://scroll-timings.patch;patch=1 \ | 28 | # file://scroll-timings.patch;patch=1 \ |
28 | # file://pangoxft2.10.6.diff;patch=1" | 29 | # file://pangoxft2.10.6.diff;patch=1" |
diff --git a/meta/packages/gtk+/gtk+_2.6.10.bb b/meta/packages/gtk+/gtk+_2.6.10.bb index 0ec21848ff..d7199ef1dd 100644 --- a/meta/packages/gtk+/gtk+_2.6.10.bb +++ b/meta/packages/gtk+/gtk+_2.6.10.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | require gtk+.inc | 1 | require gtk+.inc |
2 | 2 | ||
3 | PR = "r11" | 3 | PR = "r12" |
4 | 4 | ||
5 | SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.6/gtk+-${PV}.tar.bz2 \ | 5 | SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.6/gtk+-${PV}.tar.bz2 \ |
6 | file://no-demos.patch;patch=1 \ | 6 | file://no-demos.patch;patch=1 \ |
@@ -17,6 +17,7 @@ SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.6/gtk+-${PV}.tar.bz2 \ | |||
17 | file://filechooser-default.patch;patch=1 \ | 17 | file://filechooser-default.patch;patch=1 \ |
18 | file://toggle-font.diff;patch=1;pnum=0 \ | 18 | file://toggle-font.diff;patch=1;pnum=0 \ |
19 | file://combo-arrow-size.patch;patch=1;pnum=0 \ | 19 | file://combo-arrow-size.patch;patch=1;pnum=0 \ |
20 | file://range-no-redraw.patch;patch=1;pnum=0 \ | ||
20 | " | 21 | " |
21 | 22 | ||
22 | EXTRA_OECONF = "--without-libtiff --disable-xkb --disable-glibtest" | 23 | EXTRA_OECONF = "--without-libtiff --disable-xkb --disable-glibtest" |