[nautilus] icon-container: use gtk_widget_get_preferred_size()



commit e56241830bfd2ca470ec2b1da53313c2230bc2b9
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Sep 29 14:24:17 2010 +0200

    icon-container: use gtk_widget_get_preferred_size()

 libnautilus-private/nautilus-icon-container.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index 365c11a..93ae21a 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -4786,7 +4786,7 @@ nautilus_icon_container_search_position_func (NautilusIconContainer *container,
         cont_width = gdk_window_get_width (cont_window);
         cont_height = gdk_window_get_height (cont_window);
 
-	gtk_widget_size_request (search_dialog, &requisition);
+	gtk_widget_get_preferred_size (search_dialog, &requisition, NULL);
 
 	if (cont_x + cont_width - requisition.width > gdk_screen_get_width (screen)) {
 		x = gdk_screen_get_width (screen) - requisition.width;



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