[nautilus/rendering-cleanup: 3/15] [eel] Use gtk_widget_get_preferred_size()



commit f5765b8a5d838b3706f7e68cf259e4cfa9c52d44
Author: Christian Persch <chpe gnome org>
Date:   Thu Sep 16 14:57:01 2010 +0200

    [eel] Use gtk_widget_get_preferred_size()
    
    ... instead of the deprecated gtk_widget_get_child_requisition().

 eel/eel-editable-label.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index f651bd5..24c2fd8 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -1209,7 +1209,7 @@ get_layout_location (EelEditableLabel  *label,
   if (gtk_widget_get_direction (widget) != GTK_TEXT_DIR_LTR)
     xalign = 1.0 - xalign;
 
-  gtk_size_request_get_size (GTK_SIZE_REQUEST (widget), &req, NULL);
+  gtk_widget_get_preferred_size (widget, &req, NULL);
   gtk_misc_get_padding (misc, &xpad, &ypad);
 
   gtk_widget_get_allocation (widget, &allocation);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]