[gtk+] GtkIconView: Stop using gtk_adjustment_changed
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkIconView: Stop using gtk_adjustment_changed
- Date: Sun, 10 May 2015 06:37:25 +0000 (UTC)
commit 647889c2e3e86b3b31410c23bfed8d4b3db4af6d
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 10 02:35:07 2015 -0400
GtkIconView: Stop using gtk_adjustment_changed
This should not be needed at all.
gtk/gtkiconview.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index e1462ee..f11fed1 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -4234,9 +4234,6 @@ gtk_icon_view_scroll_to_path (GtkIconView *icon_view,
gtk_adjustment_set_value (icon_view->priv->hadjustment,
gtk_adjustment_get_value (icon_view->priv->hadjustment) + offset);
-
- gtk_adjustment_changed (icon_view->priv->hadjustment);
- gtk_adjustment_changed (icon_view->priv->vadjustment);
}
else
gtk_icon_view_scroll_to_item (icon_view, item);
@@ -4282,9 +4279,6 @@ gtk_icon_view_scroll_to_item (GtkIconView *icon_view,
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);
}
/* GtkCellLayout implementation */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]