forked from AuroraMiddleware/gtk
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:
parent
6480d8bd50
commit
8d8fb0cd5f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user