set upper member of hadjustment correct, so the hscrollbars of lists

Mon Feb 11 17:54:46 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
        member of hadjustment correct, so the hscrollbars of lists smaller
        than 1 page (in width) are somewhat saner
This commit is contained in:
Kristian Rietveld 2002-02-11 16:58:23 +00:00 committed by Kristian Rietveld
parent 6480d8bd50
commit 8d8fb0cd5f
8 changed files with 43 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Mon Feb 11 17:54:46 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
member of hadjustment correct, so the hscrollbars of lists smaller
than 1 page (in width) are somewhat saner
2002-02-11 jacob berkman <jacob@ximian.com>
* gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to

View File

@ -1,3 +1,9 @@
Mon Feb 11 17:54:46 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
member of hadjustment correct, so the hscrollbars of lists smaller
than 1 page (in width) are somewhat saner
2002-02-11 jacob berkman <jacob@ximian.com>
* gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to

View File

@ -1,3 +1,9 @@
Mon Feb 11 17:54:46 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
member of hadjustment correct, so the hscrollbars of lists smaller
than 1 page (in width) are somewhat saner
2002-02-11 jacob berkman <jacob@ximian.com>
* gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to

View File

@ -1,3 +1,9 @@
Mon Feb 11 17:54:46 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
member of hadjustment correct, so the hscrollbars of lists smaller
than 1 page (in width) are somewhat saner
2002-02-11 jacob berkman <jacob@ximian.com>
* gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to

View File

@ -1,3 +1,9 @@
Mon Feb 11 17:54:46 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
member of hadjustment correct, so the hscrollbars of lists smaller
than 1 page (in width) are somewhat saner
2002-02-11 jacob berkman <jacob@ximian.com>
* gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to

View File

@ -1,3 +1,9 @@
Mon Feb 11 17:54:46 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
member of hadjustment correct, so the hscrollbars of lists smaller
than 1 page (in width) are somewhat saner
2002-02-11 jacob berkman <jacob@ximian.com>
* gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to

View File

@ -1,3 +1,9 @@
Mon Feb 11 17:54:46 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
member of hadjustment correct, so the hscrollbars of lists smaller
than 1 page (in width) are somewhat saner
2002-02-11 jacob berkman <jacob@ximian.com>
* gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to

View File

@ -1594,7 +1594,7 @@ gtk_tree_view_size_allocate (GtkWidget *widget,
tree_view->priv->hadjustment->page_increment = allocation->width;
tree_view->priv->hadjustment->step_increment = allocation->width / 10;
tree_view->priv->hadjustment->lower = 0;
tree_view->priv->hadjustment->upper = tree_view->priv->width;
tree_view->priv->hadjustment->upper = MAX (tree_view->priv->hadjustment->page_size, tree_view->priv->width);
if (tree_view->priv->hadjustment->value + allocation->width > tree_view->priv->width)
tree_view->priv->hadjustment->value = MAX (tree_view->priv->width - allocation->width, 0);