[gtk+/refactor: 1/16] gtk/gtkwindow.c: Fix warning



commit 9a0afff47ae876d16831c18f94fc1bb68e9fbb4a
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Sep 8 20:12:26 2010 +0200

    gtk/gtkwindow.c: Fix warning
    
    Cast to GtkSizeRequest
    
    This was added in
    commit b654afcb480c4f971436bd82a7b20f86686a9c02

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 1a753be..90b8b31 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6660,7 +6660,7 @@ gtk_window_compute_hints (GtkWindow   *window,
        */
       gtk_widget_get_child_requisition (geometry_info->widget, &child_requisition);
 
-      gtk_size_request_get_size (widget, &requisition, NULL);
+      gtk_size_request_get_size (GTK_SIZE_REQUEST (widget), &requisition, NULL);
       extra_width = requisition.width - child_requisition.width;
       extra_height = requisition.height - child_requisition.height;
     }



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