[gtk+] sizerequest: return CONSTANT_SIZE in return_if_fail()



commit dcae3598b33e4f7073903de3a7642f9b7526035f
Author: Benjamin Otte <otte redhat com>
Date:   Fri Apr 1 00:21:04 2011 +0200

    sizerequest: return CONSTANT_SIZE in return_if_fail()

 gtk/gtksizerequest.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtksizerequest.c b/gtk/gtksizerequest.c
index ef3983c..39c3d8c 100644
--- a/gtk/gtksizerequest.c
+++ b/gtk/gtksizerequest.c
@@ -508,7 +508,7 @@ compute_size_for_orientation (GtkWidget         *widget,
 GtkSizeRequestMode
 gtk_widget_get_request_mode (GtkWidget *widget)
 {
-  g_return_val_if_fail (GTK_IS_WIDGET (widget), GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH);
+  g_return_val_if_fail (GTK_IS_WIDGET (widget), GTK_SIZE_REQUEST_CONSTANT_SIZE);
 
   return GTK_WIDGET_GET_CLASS (widget)->get_request_mode (widget);
 }



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