[gtk+] Add missing vfuncs to gtknotebook.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add missing vfuncs to gtknotebook.
- Date: Sun, 3 Oct 2010 19:49:13 +0000 (UTC)
commit 13c4c554efa3606902185fa8790b95c9fb0f3377
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Oct 3 18:17:17 2010 +0200
Add missing vfuncs to gtknotebook.
gtk/gtknotebook.c | 27 +++++++++++++++------------
gtk/gtknotebook.h | 19 +++++++++++++++++++
2 files changed, 34 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 58b6a4d..95e1325 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -959,11 +959,12 @@ gtk_notebook_class_init (GtkNotebookClass *class)
g_signal_new (I_("page-reordered"),
G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- _gtk_marshal_VOID__OBJECT_UINT,
+ G_STRUCT_OFFSET (GtkNotebookClass, page_reordered),
+ NULL, NULL,
+ _gtk_marshal_VOID__OBJECT_UINT,
G_TYPE_NONE, 2,
- GTK_TYPE_WIDGET,
- G_TYPE_UINT);
+ GTK_TYPE_WIDGET,
+ G_TYPE_UINT);
/**
* GtkNotebook::page-removed:
* @notebook: the #GtkNotebook
@@ -979,11 +980,12 @@ gtk_notebook_class_init (GtkNotebookClass *class)
g_signal_new (I_("page-removed"),
G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- _gtk_marshal_VOID__OBJECT_UINT,
+ G_STRUCT_OFFSET (GtkNotebookClass, page_removed),
+ NULL, NULL,
+ _gtk_marshal_VOID__OBJECT_UINT,
G_TYPE_NONE, 2,
- GTK_TYPE_WIDGET,
- G_TYPE_UINT);
+ GTK_TYPE_WIDGET,
+ G_TYPE_UINT);
/**
* GtkNotebook::page-added:
* @notebook: the #GtkNotebook
@@ -999,11 +1001,12 @@ gtk_notebook_class_init (GtkNotebookClass *class)
g_signal_new (I_("page-added"),
G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST,
- 0, NULL, NULL,
- _gtk_marshal_VOID__OBJECT_UINT,
+ G_STRUCT_OFFSET (GtkNotebookClass, page_added),
+ NULL, NULL,
+ _gtk_marshal_VOID__OBJECT_UINT,
G_TYPE_NONE, 2,
- GTK_TYPE_WIDGET,
- G_TYPE_UINT);
+ GTK_TYPE_WIDGET,
+ G_TYPE_UINT);
/**
* GtkNotebook::create-window:
diff --git a/gtk/gtknotebook.h b/gtk/gtknotebook.h
index ef862dc..93325d1 100644
--- a/gtk/gtknotebook.h
+++ b/gtk/gtknotebook.h
@@ -97,7 +97,26 @@ struct _GtkNotebookClass
gint x,
gint y);
+ void (* page_reordered) (GtkNotebook *notebook,
+ GtkWidget *child,
+ guint page_num);
+
+ void (* page_removed) (GtkNotebook *notebook,
+ GtkWidget *child,
+ guint page_num);
+
+ void (* page_added) (GtkNotebook *notebook,
+ GtkWidget *child,
+ guint page_num);
+
void (*_gtk_reserved1) (void);
+ void (*_gtk_reserved2) (void);
+ void (*_gtk_reserved3) (void);
+ void (*_gtk_reserved4) (void);
+ void (*_gtk_reserved5) (void);
+ void (*_gtk_reserved6) (void);
+ void (*_gtk_reserved7) (void);
+ void (*_gtk_reserved8) (void);
};
/***********************************************************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]