]> Pileus Git - ~andy/gtk/commitdiff
notebook: Hi, I can't get my function prototypes right
authorBenjamin Otte <otte@redhat.com>
Mon, 18 Oct 2010 16:25:03 +0000 (18:25 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 18 Oct 2010 17:22:43 +0000 (19:22 +0200)
Also, I refuse to compile with -Werror

gtk/gtknotebook.c

index b8a099791701c5c67b95f1ec98b173ca743d7e15..2827645f9661bc99da8d0bde5453491a7b051710 100644 (file)
@@ -587,11 +587,11 @@ gtk_object_handled_accumulator (GSignalInvocationHint *ihint,
 }
 
 static void
-gtk_notebook_compute_expand (GtkContainer *container,
-                             gboolean     *hexpand_p,
-                             gboolean     *vexpand_p)
+gtk_notebook_compute_expand (GtkWidget *widget,
+                             gboolean  *hexpand_p,
+                             gboolean  *vexpand_p)
 {
-  GtkNotebook *notebook = GTK_NOTEBOOK (container);
+  GtkNotebook *notebook = GTK_NOTEBOOK (widget);
   GtkNotebookPrivate *priv = notebook->priv;
   gboolean hexpand;
   gboolean vexpand;