mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
set upper member of vadjustment correct, so the vscrollbars of lists
Sat Feb 2 18:07:51 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member of vadjustment correct, so the vscrollbars of lists smaller than 1 page are somewhat saner (#66905) * gtk/gtkliststore.c (gtk_list_store_remove_silently): do not increment the stamp, liststore is a model with persisting iters
This commit is contained in:
parent
a998112472
commit
7bb3d17abe
@ -1,3 +1,12 @@
|
|||||||
|
Sat Feb 2 18:07:51 2002 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
|
||||||
|
of vadjustment correct, so the vscrollbars of lists smaller than
|
||||||
|
1 page are somewhat saner (#66905)
|
||||||
|
|
||||||
|
* gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
|
||||||
|
increment the stamp, liststore is a model with persisting iters
|
||||||
|
|
||||||
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
|
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Sat Feb 2 18:07:51 2002 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
|
||||||
|
of vadjustment correct, so the vscrollbars of lists smaller than
|
||||||
|
1 page are somewhat saner (#66905)
|
||||||
|
|
||||||
|
* gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
|
||||||
|
increment the stamp, liststore is a model with persisting iters
|
||||||
|
|
||||||
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
|
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Sat Feb 2 18:07:51 2002 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
|
||||||
|
of vadjustment correct, so the vscrollbars of lists smaller than
|
||||||
|
1 page are somewhat saner (#66905)
|
||||||
|
|
||||||
|
* gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
|
||||||
|
increment the stamp, liststore is a model with persisting iters
|
||||||
|
|
||||||
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
|
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Sat Feb 2 18:07:51 2002 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
|
||||||
|
of vadjustment correct, so the vscrollbars of lists smaller than
|
||||||
|
1 page are somewhat saner (#66905)
|
||||||
|
|
||||||
|
* gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
|
||||||
|
increment the stamp, liststore is a model with persisting iters
|
||||||
|
|
||||||
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
|
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Sat Feb 2 18:07:51 2002 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
|
||||||
|
of vadjustment correct, so the vscrollbars of lists smaller than
|
||||||
|
1 page are somewhat saner (#66905)
|
||||||
|
|
||||||
|
* gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
|
||||||
|
increment the stamp, liststore is a model with persisting iters
|
||||||
|
|
||||||
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
|
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Sat Feb 2 18:07:51 2002 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
|
||||||
|
of vadjustment correct, so the vscrollbars of lists smaller than
|
||||||
|
1 page are somewhat saner (#66905)
|
||||||
|
|
||||||
|
* gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
|
||||||
|
increment the stamp, liststore is a model with persisting iters
|
||||||
|
|
||||||
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
|
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Sat Feb 2 18:07:51 2002 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
|
||||||
|
of vadjustment correct, so the vscrollbars of lists smaller than
|
||||||
|
1 page are somewhat saner (#66905)
|
||||||
|
|
||||||
|
* gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
|
||||||
|
increment the stamp, liststore is a model with persisting iters
|
||||||
|
|
||||||
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
|
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
|
||||||
|
@ -962,8 +962,6 @@ gtk_list_store_remove_silently (GtkListStore *list_store,
|
|||||||
if (iter->user_data == list_store->tail)
|
if (iter->user_data == list_store->tail)
|
||||||
list_store->tail = prev;
|
list_store->tail = prev;
|
||||||
}
|
}
|
||||||
|
|
||||||
list_store->stamp ++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1604,7 +1604,7 @@ gtk_tree_view_size_allocate (GtkWidget *widget,
|
|||||||
tree_view->priv->vadjustment->step_increment = (tree_view->priv->vadjustment->page_size) / 10;
|
tree_view->priv->vadjustment->step_increment = (tree_view->priv->vadjustment->page_size) / 10;
|
||||||
tree_view->priv->vadjustment->page_increment = (allocation->height - TREE_VIEW_HEADER_HEIGHT (tree_view)) / 2;
|
tree_view->priv->vadjustment->page_increment = (allocation->height - TREE_VIEW_HEADER_HEIGHT (tree_view)) / 2;
|
||||||
tree_view->priv->vadjustment->lower = 0;
|
tree_view->priv->vadjustment->lower = 0;
|
||||||
tree_view->priv->vadjustment->upper = tree_view->priv->height;
|
tree_view->priv->vadjustment->upper = MAX (tree_view->priv->vadjustment->page_size, tree_view->priv->height);
|
||||||
|
|
||||||
if (tree_view->priv->vadjustment->value + allocation->height > tree_view->priv->height)
|
if (tree_view->priv->vadjustment->value + allocation->height > tree_view->priv->height)
|
||||||
gtk_adjustment_set_value (tree_view->priv->vadjustment,
|
gtk_adjustment_set_value (tree_view->priv->vadjustment,
|
||||||
|
Loading…
Reference in New Issue
Block a user