diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2006-03-23 23:18:42 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-03-23 23:18:42 +0000 |
commit | 2f4b008e98975f8bed6de312add7973440770df3 (patch) | |
tree | 45a72e08fd3dca91edb0e81f44bdffb06b248c1a /packages/gtk+/gtk+-2.8.16/gtktreeview-316689.patch | |
parent | 2d36829a6a85b5a3b544eaf33beb8dd3b08720d8 (diff) |
Add gtk+ 2.8.16 (from poky). Only a subset of patches are being used against this by poky but the treeview fix is included
Diffstat (limited to 'packages/gtk+/gtk+-2.8.16/gtktreeview-316689.patch')
-rw-r--r-- | packages/gtk+/gtk+-2.8.16/gtktreeview-316689.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/gtk+/gtk+-2.8.16/gtktreeview-316689.patch b/packages/gtk+/gtk+-2.8.16/gtktreeview-316689.patch new file mode 100644 index 0000000000..4e77ddf9f9 --- /dev/null +++ b/packages/gtk+/gtk+-2.8.16/gtktreeview-316689.patch @@ -0,0 +1,25 @@ +diff -u -p -r1.498 gtktreeview.c +--- gtk+-2.8.9/gtk/gtktreeview.c 22 Oct 2005 21:08:23 -0000 1.498 ++++ gtk+-2.8.9/gtk/gtktreeview.c 24 Oct 2005 22:30:27 -0000 +@@ -2098,6 +2098,9 @@ gtk_tree_view_size_allocate (GtkWidget + /* now the adjustments and window sizes are in sync, we can sync toprow/dy again */ + if (tree_view->priv->height <= tree_view->priv->vadjustment->page_size) + gtk_adjustment_set_value (GTK_ADJUSTMENT (tree_view->priv->vadjustment), 0); ++ else if (tree_view->priv->vadjustment->value + tree_view->priv->vadjustment->page_size > tree_view->priv->height) ++ gtk_adjustment_set_value (GTK_ADJUSTMENT (tree_view->priv->vadjustment), ++ tree_view->priv->height - tree_view->priv->vadjustment->page_size); + else if (gtk_tree_row_reference_valid (tree_view->priv->top_row)) + gtk_tree_view_top_row_to_dy (tree_view); + else +@ -5031,6 +5034,11 @@ validate_visible_area (GtkTreeView *tree + * else than zero. we update top_row to be in sync with dy = 0. + */ + gtk_adjustment_set_value (GTK_ADJUSTMENT (tree_view->priv->vadjustment), 0); ++ gtk_tree_view_dy_to_top_row (tree_view); ++ } ++ else if (tree_view->priv->vadjustment->value + tree_view->priv->vadjustment->page_size > tree_view->priv->height) ++ { ++ gtk_adjustment_set_value (GTK_ADJUSTMENT (tree_view->priv->vadjustment), tree_view->priv->height - tree_view->priv->vadjustment->page_size); + gtk_tree_view_dy_to_top_row (tree_view); + } + else |