Change GtkNotebookPage in switch-page into GtkWidget

This commit is contained in:
Christian Dywan 2010-07-13 17:05:22 +02:00
parent 04c54efe5c
commit 828f5cbe2e
2 changed files with 4 additions and 8 deletions

View File

@ -398,7 +398,7 @@ static void gtk_notebook_calc_tabs (GtkNotebook *notebook,
/*** GtkNotebook Page Switch Methods ***/
static void gtk_notebook_real_switch_page (GtkNotebook *notebook,
GtkNotebookPage *child,
GtkWidget *child,
guint page_num);
/*** GtkNotebook Page Switch Functions ***/
@ -810,7 +810,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
NULL, NULL,
_gtk_marshal_VOID__POINTER_UINT,
G_TYPE_NONE, 2,
G_TYPE_POINTER,
GTK_TYPE_WIDGET,
G_TYPE_UINT);
notebook_signals[FOCUS_TAB] =
g_signal_new (I_("focus-tab"),
@ -6019,7 +6019,7 @@ gtk_notebook_update_tab_states (GtkNotebook *notebook)
*/
static void
gtk_notebook_real_switch_page (GtkNotebook *notebook,
GtkNotebookPage* child,
GtkWidget* child,
guint page_num)
{
GList *list = gtk_notebook_find_child (notebook, GTK_WIDGET (child), NULL);

View File

@ -103,11 +103,7 @@ struct _GtkNotebookClass
GtkContainerClass parent_class;
void (* switch_page) (GtkNotebook *notebook,
#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
GtkNotebookPage *page,
#else
gpointer page,
#endif
GtkWidget *page,
guint page_num);
/* Action signals for keybindings */