[gtkhtml/gtk3] Remove unnecessary calls of gtk_adjustment_value_changed()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkhtml/gtk3] Remove unnecessary calls of gtk_adjustment_value_changed()
- Date: Mon, 24 Jan 2011 14:47:39 +0000 (UTC)
commit 71c3b314ac73be018e051f5293b0eb2a02b702ff
Author: Milan Crha <mcrha redhat com>
Date: Mon Jan 24 15:47:02 2011 +0100
Remove unnecessary calls of gtk_adjustment_value_changed()
gtkhtml/gtkhtml.c | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/gtkhtml/gtkhtml.c b/gtkhtml/gtkhtml.c
index 0475ed5..8a63cef 100644
--- a/gtkhtml/gtkhtml.c
+++ b/gtkhtml/gtkhtml.c
@@ -1417,21 +1417,9 @@ size_allocate (GtkWidget *widget, GtkAllocation *allocation)
&changed_x, &changed_y);
}
- if (!html->engine->keep_scroll) {
- GtkAdjustment *adjustment;
-
+ if (!html->engine->keep_scroll)
gtk_html_private_calc_scrollbars (html, &changed_x, &changed_y);
- if (changed_x) {
- adjustment = gtk_layout_get_hadjustment (layout);
- gtk_adjustment_value_changed (adjustment);
- }
- if (changed_y) {
- adjustment = gtk_layout_get_vadjustment (layout);
- gtk_adjustment_value_changed (adjustment);
- }
- }
-
if (html->engine->clue)
html_object_forall (html->engine->clue, html->engine, child_size_allocate, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]