cpw.qulogic.gtk3-required: 9459da0e: Fix some accessor functions.

qulogic at pidgin.im qulogic at pidgin.im
Fri Dec 23 05:26:53 EST 2011


----------------------------------------------------------------------
Revision: 9459da0ee736e71b99973e4ea38d839d5289cd24
Parent:   5660a083fd1b9e8ce818107a8b8963a5de80bfd9
Author:   qulogic at pidgin.im
Date:     12/23/11 04:30:35
Branch:   im.pidgin.cpw.qulogic.gtk3-required
URL: http://d.pidgin.im/viewmtn/revision/info/9459da0ee736e71b99973e4ea38d839d5289cd24

Changelog: 

Fix some accessor functions.

Changes against parent 5660a083fd1b9e8ce818107a8b8963a5de80bfd9

  patched  pidgin/gtkwebview.c

-------------- next part --------------
============================================================
--- pidgin/gtkwebview.c	9522eec752ae34fcba7b20f13beb716927e3cdc9
+++ pidgin/gtkwebview.c	f2250d82b66a95a06e4959a655036a594c741409
@@ -345,7 +345,7 @@ smooth_scroll_cb(gpointer data)
 {
 	struct GtkWebViewPriv *priv = data;
 	GtkAdjustment *adj = priv->vadj;
-	gdouble max_val = adj->upper - adj->page_size;
+	gdouble max_val = gtk_adjustment_get_upper(adj) - gtk_adjustment_get_page_size(adj);
 	gdouble scroll_val = gtk_adjustment_get_value(adj) + ((max_val - gtk_adjustment_get_value(adj)) / 3);
 
 	g_return_val_if_fail(priv->scroll_time != NULL, FALSE);
@@ -371,7 +371,8 @@ scroll_idle_cb(gpointer data)
 	struct GtkWebViewPriv *priv = data;
 	GtkAdjustment *adj = priv->vadj;
 	if (adj) {
-		gtk_adjustment_set_value(adj, adj->upper - adj->page_size);
+		gtk_adjustment_set_value(adj,
+			gtk_adjustment_get_upper(adj) - gtk_adjustment_get_page_size(adj));
 	}
 	priv->scroll_src = 0;
 	return FALSE;


More information about the Commits mailing list