[gtk+] GtkListBox: Animate keybindings



commit e31056f9b3e511efe583ab5d80d056b99363c8d1
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jul 2 20:36:41 2014 -0400

    GtkListBox: Animate keybindings

 gtk/gtklistbox.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index cb9aa7c..3033902 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -17,6 +17,7 @@
 
 #include "config.h"
 
+#include "gtkadjustmentprivate.h"
 #include "gtklistbox.h"
 #include "gtkwidget.h"
 #include "gtkmarshalers.h"
@@ -2730,9 +2731,9 @@ gtk_list_box_move_cursor (GtkListBox      *box,
             }
           end_y = ROW_PRIV (row)->y;
           if (end_y != start_y && priv->adjustment != NULL)
-            gtk_adjustment_set_value (priv->adjustment,
-                                      gtk_adjustment_get_value (priv->adjustment) +
-                                      end_y - start_y);
+            gtk_adjustment_animate_to_value (priv->adjustment,
+                                             gtk_adjustment_get_value (priv->adjustment) +
+                                             end_y - start_y);
         }
       break;
     default:


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