gtknotebook.c fix




Hi,

the attached patch fixes a recently introduced problem with the
notebook; the page_switch signal could deliver a -1 as the page
number, which confused one of my programs.

I don't have access to CVS and going through ftp.gimp.org seemed like
of overkill to me in this case :)

bye,

-- 
michael krause [aka raw style / lego] - www.tu-harburg.de/~semk2104/
diff -urN gtk+-orig/ChangeLog gtk+/ChangeLog
--- gtk+-orig/ChangeLog	Tue Nov 24 22:17:38 1998
+++ gtk+/ChangeLog	Thu Nov 26 00:17:19 1998
@@ -1,3 +1,9 @@
+1998-11-26  Michael Krause  <m.krause@tu-harburg.de>
+
+	* gtk/gtknotebook.c (gtk_notebook_switch_page): made 'page_num'
+	argument a gint: switch_page signal delivers valid page numbers
+	again.
+
 Tue Nov 24 07:46:09 1998  Tim Janik  <timj@gtk.org>
 
 	* docs/Changes-1.2.txt: added a section on scrolled windows and
diff -urN gtk+-orig/gtk/gtknotebook.c gtk+/gtk/gtknotebook.c
--- gtk+-orig/gtk/gtknotebook.c	Mon Nov 23 22:10:33 1998
+++ gtk+/gtk/gtknotebook.c	Thu Nov 26 00:17:20 1998
@@ -184,7 +184,7 @@
 /** GtkNotebook Page Switch Functions **/
 static void gtk_notebook_switch_page         (GtkNotebook      *notebook,
 					      GtkNotebookPage  *page,
-					      guint             page_num);
+					      gint              page_num);
 static gint gtk_notebook_page_select         (GtkNotebook      *notebook);
 static void gtk_notebook_switch_focus_tab    (GtkNotebook      *notebook,
                                               GList            *new_child);
@@ -3119,7 +3119,7 @@
 static void
 gtk_notebook_switch_page (GtkNotebook     *notebook,
 			  GtkNotebookPage *page,
-			  guint            page_num)
+			  gint             page_num)
 { 
   g_return_if_fail (notebook != NULL);
   g_return_if_fail (GTK_IS_NOTEBOOK (notebook));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]