Deprecate GtkNotebookPage as used in switch-page

Fixes: 618327
This commit is contained in:
Christian Dywan
2010-07-13 16:49:53 +02:00
parent a5272c82a6
commit 04c54efe5c
4 changed files with 21 additions and 5 deletions

View File

@ -54,13 +54,19 @@ typedef enum
typedef struct _GtkNotebook GtkNotebook;
typedef struct _GtkNotebookClass GtkNotebookClass;
#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
typedef struct _GtkNotebookPage GtkNotebookPage;
#endif
struct _GtkNotebook
{
GtkContainer container;
#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
GtkNotebookPage *GSEAL (cur_page);
#else
gpointer GSEAL (cur_page);
#endif
GList *GSEAL (children);
GList *GSEAL (first_tab); /* The first tab visible (for scrolling notebooks) */
GList *GSEAL (focus_tab);
@ -97,7 +103,11 @@ struct _GtkNotebookClass
GtkContainerClass parent_class;
void (* switch_page) (GtkNotebook *notebook,
#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
GtkNotebookPage *page,
#else
gpointer page,
#endif
guint page_num);
/* Action signals for keybindings */