[gtk+] GtkIconView: Animate keybindings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkIconView: Animate keybindings
- Date: Thu, 3 Jul 2014 00:59:46 +0000 (UTC)
commit d331c949d6d0e9bdca8bd4e3e57fcb02309f68c2
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 2 20:36:23 2014 -0400
GtkIconView: Animate keybindings
gtk/gtkiconview.c | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index fb6252f..fc3e650 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]