summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2006-03-07 11:49:51 +0000
committerRoss Burton <ross@openedhand.com>2006-03-07 11:49:51 +0000
commit2134d4a1fc6282b22236c66a4529395f895ed4bc (patch)
tree8b63607d1cf332cdde46c6edf95db9b4c8fbdb71
parent03026fcdfd7a07881d73755e61740cf48ffb281a (diff)
downloadpoky-2134d4a1fc6282b22236c66a4529395f895ed4bc.tar.gz
Add patch for the treeview in scrollview bug in 2.8
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@296 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--openembedded/packages/gtk+/gtk+-2.8.9/gtktreeview-316689.patch25
-rw-r--r--openembedded/packages/gtk+/gtk+_2.8.9.bb3
2 files changed, 27 insertions, 1 deletions
diff --git a/openembedded/packages/gtk+/gtk+-2.8.9/gtktreeview-316689.patch b/openembedded/packages/gtk+/gtk+-2.8.9/gtktreeview-316689.patch
new file mode 100644
index 0000000000..4e77ddf9f9
--- /dev/null
+++ b/openembedded/packages/gtk+/gtk+-2.8.9/gtktreeview-316689.patch
@@ -0,0 +1,25 @@
1diff -u -p -r1.498 gtktreeview.c
2--- gtk+-2.8.9/gtk/gtktreeview.c 22 Oct 2005 21:08:23 -0000 1.498
3+++ gtk+-2.8.9/gtk/gtktreeview.c 24 Oct 2005 22:30:27 -0000
4@@ -2098,6 +2098,9 @@ gtk_tree_view_size_allocate (GtkWidget
5 /* now the adjustments and window sizes are in sync, we can sync toprow/dy again */
6 if (tree_view->priv->height <= tree_view->priv->vadjustment->page_size)
7 gtk_adjustment_set_value (GTK_ADJUSTMENT (tree_view->priv->vadjustment), 0);
8+ else if (tree_view->priv->vadjustment->value + tree_view->priv->vadjustment->page_size > tree_view->priv->height)
9+ gtk_adjustment_set_value (GTK_ADJUSTMENT (tree_view->priv->vadjustment),
10+ tree_view->priv->height - tree_view->priv->vadjustment->page_size);
11 else if (gtk_tree_row_reference_valid (tree_view->priv->top_row))
12 gtk_tree_view_top_row_to_dy (tree_view);
13 else
14@ -5031,6 +5034,11 @@ validate_visible_area (GtkTreeView *tree
15 * else than zero. we update top_row to be in sync with dy = 0.
16 */
17 gtk_adjustment_set_value (GTK_ADJUSTMENT (tree_view->priv->vadjustment), 0);
18+ gtk_tree_view_dy_to_top_row (tree_view);
19+ }
20+ else if (tree_view->priv->vadjustment->value + tree_view->priv->vadjustment->page_size > tree_view->priv->height)
21+ {
22+ gtk_adjustment_set_value (GTK_ADJUSTMENT (tree_view->priv->vadjustment), tree_view->priv->height - tree_view->priv->vadjustment->page_size);
23 gtk_tree_view_dy_to_top_row (tree_view);
24 }
25 else
diff --git a/openembedded/packages/gtk+/gtk+_2.8.9.bb b/openembedded/packages/gtk+/gtk+_2.8.9.bb
index d1c42082dd..7268d74f3e 100644
--- a/openembedded/packages/gtk+/gtk+_2.8.9.bb
+++ b/openembedded/packages/gtk+/gtk+_2.8.9.bb
@@ -6,7 +6,7 @@ SECTION = "libs"
6PRIORITY = "optional" 6PRIORITY = "optional"
7MAINTAINER = "Philip Blundell <pb@handhelds.org>" 7MAINTAINER = "Philip Blundell <pb@handhelds.org>"
8DEPENDS = "glib-2.0 pango atk jpeg libpng xext libxcursor gtk-doc libgcrypt cairo" 8DEPENDS = "glib-2.0 pango atk jpeg libpng xext libxcursor gtk-doc libgcrypt cairo"
9PR = "r1" 9PR = "r2"
10 10
11SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.8/gtk+-${PV}.tar.bz2 \ 11SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.8/gtk+-${PV}.tar.bz2 \
12 file://no-xwc.patch;patch=1 \ 12 file://no-xwc.patch;patch=1 \
@@ -15,6 +15,7 @@ SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.8/gtk+-${PV}.tar.bz2 \
15 file://hardcoded_libtool.patch;patch=1 \ 15 file://hardcoded_libtool.patch;patch=1 \
16 file://disable-tooltips.patch;patch=1 \ 16 file://disable-tooltips.patch;patch=1 \
17 file://gtklabel-resize-patch;patch=1 \ 17 file://gtklabel-resize-patch;patch=1 \
18 file://gtktreeview-316689.patch;patch=1 \
18 file://treeviewfix.patch;patch=1" 19 file://treeviewfix.patch;patch=1"
19# file://menu-deactivate.patch;patch=1 \ 20# file://menu-deactivate.patch;patch=1 \
20# file://xsettings.patch;patch=1 \ 21# file://xsettings.patch;patch=1 \