]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkfixed.c
Add this
[~andy/gtk] / gtk / gtkfixed.c
index 4781c0f8989b26284346a9441501a979fdb4d6f6..d48c6604c2dfb7761013a31d45ebfb1580926408 100644 (file)
@@ -188,7 +188,7 @@ gtk_fixed_put (GtkFixed       *fixed,
   GtkFixedChild *child_info;
 
   g_return_if_fail (GTK_IS_FIXED (fixed));
-  g_return_if_fail (widget != NULL);
+  g_return_if_fail (GTK_IS_WIDGET (fixed));
 
   child_info = g_new (GtkFixedChild, 1);
   child_info->widget = widget;
@@ -244,10 +244,6 @@ gtk_fixed_move (GtkFixed       *fixed,
                 gint            x,
                 gint            y)
 {
-  g_return_if_fail (GTK_IS_FIXED (fixed));
-  g_return_if_fail (GTK_IS_WIDGET (widget));
-  g_return_if_fail (widget->parent == GTK_WIDGET (fixed));
-
   gtk_fixed_move_internal (fixed, widget, TRUE, x, TRUE, y);
 }
 
@@ -309,8 +305,6 @@ gtk_fixed_realize (GtkWidget *widget)
   GdkWindowAttr attributes;
   gint attributes_mask;
 
-  g_return_if_fail (GTK_IS_FIXED (widget));
-
   if (GTK_WIDGET_NO_WINDOW (widget))
     GTK_WIDGET_CLASS (parent_class)->realize (widget);
   else
@@ -348,9 +342,6 @@ gtk_fixed_size_request (GtkWidget      *widget,
   GList *children;
   GtkRequisition child_requisition;
 
-  g_return_if_fail (GTK_IS_FIXED (widget));
-  g_return_if_fail (requisition != NULL);
-
   fixed = GTK_FIXED (widget);
   requisition->width = 0;
   requisition->height = 0;
@@ -389,9 +380,6 @@ gtk_fixed_size_allocate (GtkWidget     *widget,
   GList *children;
   guint16 border_width;
 
-  g_return_if_fail (GTK_IS_FIXED(widget));
-  g_return_if_fail (allocation != NULL);
-
   fixed = GTK_FIXED (widget);
 
   widget->allocation = *allocation;
@@ -437,9 +425,6 @@ static void
 gtk_fixed_add (GtkContainer *container,
               GtkWidget    *widget)
 {
-  g_return_if_fail (GTK_IS_FIXED (container));
-  g_return_if_fail (widget != NULL);
-
   gtk_fixed_put (GTK_FIXED (container), widget, 0, 0);
 }
 
@@ -451,9 +436,6 @@ gtk_fixed_remove (GtkContainer *container,
   GtkFixedChild *child;
   GList *children;
 
-  g_return_if_fail (GTK_IS_FIXED (container));
-  g_return_if_fail (widget != NULL);
-
   fixed = GTK_FIXED (container);
 
   children = fixed->children;
@@ -491,7 +473,6 @@ gtk_fixed_forall (GtkContainer *container,
   GtkFixedChild *child;
   GList *children;
 
-  g_return_if_fail (GTK_IS_FIXED (container));
   g_return_if_fail (callback != NULL);
 
   fixed = GTK_FIXED (container);
@@ -514,7 +495,7 @@ gtk_fixed_forall (GtkContainer *container,
  * Sets whether a #GtkFixed widget is created with a separate
  * #GdkWindow for widget->window or not. (By default, it will be
  * created with no separate #GdkWindow). This function must be called
- * while the is not realized, for instance, immediately after the
+ * while the #GtkFixed is not realized, for instance, immediately after the
  * window is created.
  **/
 void
@@ -540,7 +521,7 @@ gtk_fixed_set_has_window (GtkFixed *fixed,
  * Gets whether the #GtkFixed has it's own #GdkWindow.
  * See gdk_fixed_set_has_window().
  * 
- * Return value: 
+ * Return value: %TRUE if @fixed has its own window.
  **/
 gboolean
 gtk_fixed_get_has_window (GtkFixed *fixed)