tgtk_notebook_get_current_page() implemented for Win32. - vaccinewars - be a do… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 871c2a7df6c23611b037055e2f43ed4178327e49 | |
parent ff4bc826cea62613a8a8966e40c40c37d569282f | |
Author: Ben Webb <[email protected]> | |
Date: Mon, 19 Aug 2002 12:50:49 +0000 | |
gtk_notebook_get_current_page() implemented for Win32. | |
Diffstat: | |
M src/gtkport/gtkport.c | 5 +++++ | |
M src/gtkport/gtkport.h | 1 + | |
2 files changed, 6 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c | |
t@@ -3917,6 +3917,11 @@ void gtk_notebook_set_page(GtkNotebook *notebook, gint … | |
} | |
} | |
+gint gtk_notebook_get_current_page(GtkNotebook *notebook) | |
+{ | |
+ return notebook->selection; | |
+} | |
+ | |
void gtk_notebook_realize(GtkWidget *widget) | |
{ | |
GSList *children; | |
diff --git a/src/gtkport/gtkport.h b/src/gtkport/gtkport.h | |
t@@ -597,6 +597,7 @@ void gtk_notebook_append_page(GtkNotebook *notebook, GtkWi… | |
void gtk_notebook_insert_page(GtkNotebook *notebook, GtkWidget *child, | |
GtkWidget *tab_label, gint position); | |
void gtk_notebook_set_page(GtkNotebook *notebook, gint page_num); | |
+gint gtk_notebook_get_current_page(GtkNotebook *notebook); | |
GtkObject *gtk_adjustment_new(gfloat value, gfloat lower, gfloat upper, | |
gfloat step_increment, gfloat page_increment, | |
gfloat page_size); |