[gtk+] Removed call to get_preferred_size (widget, NULL, NULL);



commit 3267cd08e9319ebe202bc83536e0e68d0fb6febc
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Fri Oct 8 22:27:02 2010 +0900

    Removed call to get_preferred_size (widget, NULL, NULL);
    
    This was another case of making sure size-request was called
    before other code was doing get_child_requisition(), now caching
    is done via the same api so no need for that line.

 gtk/gtkwindow.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 6612a72..0703592 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6293,7 +6293,6 @@ gtk_window_compute_configure_request (GtkWindow    *window,
 
   screen = gtk_window_check_screen (window);
 
-  gtk_widget_get_preferred_size (widget, NULL, NULL);
   gtk_window_compute_configure_request_size (window, (guint *)&w, (guint *)&h);
   
   gtk_window_compute_hints (window, &new_geometry, &new_flags);



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