Always initialize child-visible to FALSE, otherwise we may end up with the
2005-05-06 Matthias Clasen <mclasen@redhat.com> * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always initialize child-visible to FALSE, otherwise we may end up with the wrong page visible initially. (#302283, Patrik Fimml) * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders appear insensitive in insensitive treeviews.
This commit is contained in:
committed by
Matthias Clasen
parent
0ffbe85cc4
commit
1d50b80aed
@ -3236,12 +3236,15 @@ gtk_tree_view_vertical_autoscroll (GtkTreeView *tree_view)
|
||||
|
||||
/* see if we are near the edge. */
|
||||
offset = y - (visible_rect.y + 2 * SCROLL_EDGE_SIZE);
|
||||
g_print ("offset1 %d\n", offset);
|
||||
if (offset > 0)
|
||||
{
|
||||
offset = y - (visible_rect.y + visible_rect.height - 2 * SCROLL_EDGE_SIZE);
|
||||
g_print ("offset2 %d\n", offset);
|
||||
if (offset < 0)
|
||||
return;
|
||||
}
|
||||
g_print ("offset3 %d\n", offset);
|
||||
|
||||
value = CLAMP (tree_view->priv->vadjustment->value + offset, 0.0,
|
||||
tree_view->priv->vadjustment->upper - tree_view->priv->vadjustment->page_size);
|
||||
@ -8318,7 +8321,11 @@ gtk_tree_view_draw_arrow (GtkTreeView *tree_view,
|
||||
area.width = expander_size + 2;
|
||||
area.height = MAX (CELL_HEIGHT (node, vertical_separator), (expander_size - vertical_separator));
|
||||
|
||||
if (node == tree_view->priv->button_pressed_node)
|
||||
if (GTK_WIDGET_STATE (tree_view) == GTK_STATE_INSENSITIVE)
|
||||
{
|
||||
state = GTK_STATE_INSENSITIVE;
|
||||
}
|
||||
else if (node == tree_view->priv->button_pressed_node)
|
||||
{
|
||||
if (x >= area.x && x <= (area.x + area.width) &&
|
||||
y >= area.y && y <= (area.y + area.height))
|
||||
|
||||
Reference in New Issue
Block a user