tgtk_notebook_get_current_page() implemented for Win32. - vaccinewars - be a doctor and try to vaccinate the world
 (HTM) git clone git://src.adamsgaard.dk/vaccinewars
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 871c2a7df6c23611b037055e2f43ed4178327e49
 (DIR) parent ff4bc826cea62613a8a8966e40c40c37d569282f
 (HTM) Author: Ben Webb <ben@salilab.org>
       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(-)
       ---
 (DIR) 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 page_num)
          }
        }
        
       +gint gtk_notebook_get_current_page(GtkNotebook *notebook)
       +{
       +  return notebook->selection;
       +}
       +
        void gtk_notebook_realize(GtkWidget *widget)
        {
          GSList *children;
 (DIR) diff --git a/src/gtkport/gtkport.h b/src/gtkport/gtkport.h
       t@@ -597,6 +597,7 @@ void gtk_notebook_append_page(GtkNotebook *notebook, GtkWidget *child,
        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);