diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-07-02 20:36:23 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-07-02 20:58:16 -0400 |
commit | d331c949d6d0e9bdca8bd4e3e57fcb02309f68c2 (patch) | |
tree | 11ee3cbdc46f7c1a6b1f3a007e91f4d6cb01276c | |
parent | ef40f54e31e178f7b3dde3fca5fb0314822407c8 (diff) | |
download | gtk+-d331c949d6d0e9bdca8bd4e3e57fcb02309f68c2.tar.gz |
GtkIconView: Animate keybindings
-rw-r--r-- | gtk/gtkiconview.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index fb6252fa06..fc3e6505ea 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -22,7 +22,7 @@ #include "gtkiconview.h" #include "gtkiconviewprivate.h" -#include "gtkadjustment.h" +#include "gtkadjustmentprivate.h" #include "gtkcelllayout.h" #include "gtkcellrenderer.h" #include "gtkcellareabox.h" @@ -4246,22 +4246,22 @@ gtk_icon_view_scroll_to_item (GtkIconView *icon_view, vadj = icon_view->priv->vadjustment; if (y + item_area.y < 0) - gtk_adjustment_set_value (vadj, - gtk_adjustment_get_value (vadj) - + y + item_area.y); + gtk_adjustment_animate_to_value (vadj, + gtk_adjustment_get_value (vadj) + + y + item_area.y); else if (y + item_area.y + item_area.height > allocation.height) - gtk_adjustment_set_value (vadj, - gtk_adjustment_get_value (vadj) - + y + item_area.y + item_area.height - allocation.height); + gtk_adjustment_animate_to_value (vadj, + gtk_adjustment_get_value (vadj) + + y + item_area.y + item_area.height - allocation.height); if (x + item_area.x < 0) - gtk_adjustment_set_value (hadj, - gtk_adjustment_get_value (hadj) - + x + item_area.x); + gtk_adjustment_animate_to_value (hadj, + gtk_adjustment_get_value (hadj) + + x + item_area.x); else if (x + item_area.x + item_area.width > allocation.width) - gtk_adjustment_set_value (hadj, - gtk_adjustment_get_value (hadj) - + x + item_area.x + item_area.width - allocation.width); + gtk_adjustment_animate_to_value (hadj, + gtk_adjustment_get_value (hadj) + + x + item_area.x + item_area.width - allocation.width); gtk_adjustment_changed (hadj); gtk_adjustment_changed (vadj); |