Correct marshaller for switch-page and adjust emission from menu

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=624687
This commit is contained in:
Christian Dywan 2010-07-19 11:04:56 +02:00
parent ccc3d2c69f
commit 1c5ee1df12

View 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);
}