]> Pileus Git - ~andy/gtk/commitdiff
Correct marshaller for switch-page and adjust emission from menu
authorChristian Dywan <christian@twotoasts.de>
Mon, 19 Jul 2010 09:04:56 +0000 (11:04 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 23 Jul 2010 11:21:33 +0000 (13:21 +0200)
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=624687
gtk/gtknotebook.c

index 65b7ee0c95f230cd0b32d6dbf9ec9d6d3d386d15..b911c73d67fa1cc1edcec17dc453cef58760ff2f 100644 (file)
@@ -832,7 +832,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
                  G_SIGNAL_RUN_LAST,
                  G_STRUCT_OFFSET (GtkNotebookClass, switch_page),
                  NULL, NULL,
-                 _gtk_marshal_VOID__POINTER_UINT,
+                 _gtk_marshal_VOID__OBJECT_UINT,
                  G_TYPE_NONE, 2,
                  GTK_TYPE_WIDGET,
                  G_TYPE_UINT);
@@ -6235,7 +6235,7 @@ gtk_notebook_menu_switch_page (GtkWidget       *widget,
   g_signal_emit (notebook,
                 notebook_signals[SWITCH_PAGE],
                 0,
-                page,
+                page->child,
                 page_num);
 }