Commit 8d8fb0cd authored by Kristian Rietveld's avatar Kristian Rietveld Committed by Kristian Rietveld

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
parent 6480d8bd
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
......
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
......
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
......
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
......
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
......
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
......
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
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment