[gtk+/wip/listbox: 5/7] GtkListBox: No need to manually clamp adjustment to focus



commit 0ca74e267305c67c1357ccbd357d004e778f1385
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Jun 10 14:41:51 2013 +0200

    GtkListBox: No need to manually clamp adjustment to focus
    
    Now that we use real widgets for rows the focus_vadjustment is
    enough.

 gtk/gtklistbox.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 55402c3..97c25d2 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -781,14 +781,6 @@ gtk_list_box_update_cursor (GtkListBox *list_box,
   priv->cursor_row = row;
   gtk_widget_grab_focus (GTK_WIDGET (row));
   gtk_widget_queue_draw (GTK_WIDGET (row));
-  if (row != NULL && priv->adjustment != NULL)
-    {
-      GtkAllocation allocation;
-      gtk_widget_get_allocation (GTK_WIDGET (list_box), &allocation);
-      gtk_adjustment_clamp_page (priv->adjustment,
-                                 priv->cursor_row->priv->y + allocation.y,
-                                 priv->cursor_row->priv->y + allocation.y + priv->cursor_row->priv->height);
-  }
   _gtk_list_box_accessible_update_cursor (list_box, row);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]