/pidgin/main: 137daf2c99b4: Remove deprecated gtk_widget_get_chi...

Elliott Sales de Andrade qulogic at pidgin.im
Thu Aug 16 03:16:30 EDT 2012


Changeset: 137daf2c99b4465768f31c414f320a805c3d66b4
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-08-16 03:15 -0400
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/137daf2c99b4

Description:

Remove deprecated gtk_widget_get_child_requisition calls.

diffstat:

 pidgin/plugins/ticker/gtkticker.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff --git a/pidgin/plugins/ticker/gtkticker.c b/pidgin/plugins/ticker/gtkticker.c
--- a/pidgin/plugins/ticker/gtkticker.c
+++ b/pidgin/plugins/ticker/gtkticker.c
@@ -480,7 +480,7 @@ static void gtk_ticker_compute_offsets (
 
 		child->x = 0;
 		if (gtk_widget_get_visible (child->widget)) {
-			gtk_widget_get_child_requisition (child->widget, &child_requisition);
+			gtk_widget_get_preferred_size (child->widget, NULL, &child_requisition);
 			child->offset = ticker->total;
 			ticker->total +=
 				child_requisition.width + border_width + ticker->spacing;
@@ -532,7 +532,7 @@ static void gtk_ticker_size_allocate (Gt
 		child->x -= ticker->scootch;
 
 		if (gtk_widget_get_visible (child->widget)) {
-			gtk_widget_get_child_requisition (child->widget, &child_requisition);
+			gtk_widget_get_preferred_size (child->widget, NULL, &child_requisition);
 			child_allocation.width = child_requisition.width;
 			child_allocation.x = child->offset + border_width + child->x;
 			if ( ( child_allocation.x + child_allocation.width ) < allocation->x  ) {



More information about the Commits mailing list