[nautilus] [libnautilus-private] Use gtk_widget_get_preferred_size()



commit 44171abea01a0c110aa029dddfb5d5afe018d086
Author: Christian Persch <chpe gnome org>
Date:   Thu Sep 16 15:16:15 2010 +0200

    [libnautilus-private] Use gtk_widget_get_preferred_size()
    
    ... instead of the deprecated gtk_widget_get_child_requisition().

 libnautilus-private/nautilus-horizontal-splitter.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/libnautilus-private/nautilus-horizontal-splitter.c b/libnautilus-private/nautilus-horizontal-splitter.c
index ace3493..b2b1014 100644
--- a/libnautilus-private/nautilus-horizontal-splitter.c
+++ b/libnautilus-private/nautilus-horizontal-splitter.c
@@ -247,10 +247,9 @@ nautilus_horizontal_splitter_size_allocate (GtkWidget     *widget,
 			gdk_window_hide (gtk_paned_get_handle_window (paned));
 		}
 
-		gtk_size_request_get_size (GTK_SIZE_REQUEST (gtk_paned_get_child1 (paned)),
-					   &child_requisition,
-					   NULL);
-
+                gtk_widget_get_preferred_size (gtk_paned_get_child1 (paned),
+                                               &child_requisition, NULL);
+		
 		child_allocation.x = allocation->x + border_width;
 		child_allocation.y = allocation->y + border_width;
 		child_allocation.width = MIN (child_requisition.width,



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