[nautilus/rendering-cleanup: 4/17] [eel] Use gtk_size_request_get_size()



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

    [eel] Use gtk_size_request_get_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 c0a00a3..88428b8 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_widget_get_child_requisition (widget, &req);
+  gtk_size_request_get_size (GTK_SIZE_REQUEST (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]