]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkfixed.c
Practically everything changed.
[~andy/gtk] / gtk / gtkfixed.c
index d2465e9adc668c190080e67afdd032d1e533c050..a6df36c3a8f0b971709efc8165a7f4451a413651 100644 (file)
@@ -1,4 +1,4 @@
-/* GTK - The GIMP Toolkit
+/* GTK - The GTK+ Toolkit
  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  *
  * This library is free software; you can redistribute it and/or
@@ -24,7 +24,7 @@
  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
  */
 
-#include <config.h>
+#include "config.h"
 #include "gtkfixed.h"
 #include "gtkprivate.h"
 #include "gtkintl.h"
@@ -61,7 +61,7 @@ static void gtk_fixed_get_child_property (GtkContainer *container,
                                           GValue       *value,
                                           GParamSpec   *pspec);
 
-G_DEFINE_TYPE (GtkFixed, gtk_fixed, GTK_TYPE_CONTAINER);
+G_DEFINE_TYPE (GtkFixed, gtk_fixed, GTK_TYPE_CONTAINER)
 
 static void
 gtk_fixed_class_init (GtkFixedClass *class)
@@ -436,14 +436,10 @@ gtk_fixed_forall (GtkContainer *container,
                  GtkCallback   callback,
                  gpointer      callback_data)
 {
-  GtkFixed *fixed;
+  GtkFixed *fixed = GTK_FIXED (container);
   GtkFixedChild *child;
   GList *children;
 
-  g_return_if_fail (callback != NULL);
-
-  fixed = GTK_FIXED (container);
-
   children = fixed->children;
   while (children)
     {
@@ -489,7 +485,7 @@ gtk_fixed_set_has_window (GtkFixed *fixed,
  * @fixed: a #GtkWidget
  * 
  * Gets whether the #GtkFixed has its own #GdkWindow.
- * See gdk_fixed_set_has_window().
+ * See gtk_fixed_set_has_window().
  * 
  * Return value: %TRUE if @fixed has its own window.
  **/