diff src/gtkconv.c @ 11780:8cb75ba77f9d

[gaim-migrate @ 14071] I've been time travelling, I bumped into Gtk 2.0 on my way. Gaim now works with Gtk 2.0 again. Next stop: gtk 1.2 ... erm. what? ... NO! PS. resiak: I won! committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 24 Oct 2005 00:31:41 +0000
parents 73f58cd25951
children c9188d3eb9d3
line wrap: on
line diff
--- a/src/gtkconv.c	Mon Oct 24 00:18:37 2005 +0000
+++ b/src/gtkconv.c	Mon Oct 24 00:31:41 2005 +0000
@@ -1791,7 +1791,11 @@
 			case GDK_period:
 				gtk_notebook_reorder_child(GTK_NOTEBOOK(win->notebook),
 						gtk_notebook_get_nth_page(GTK_NOTEBOOK(win->notebook), curconv),
+#if GTK_CHECK_VERSION(2,2,0)
 						(curconv + 1) % gtk_notebook_get_n_pages(GTK_NOTEBOOK(win->notebook)));
+#else
+						(curconv + 1) % g_list_length(GTK_NOTEBOOK(win->notebook)->children));
+#endif
 				break;
 
 		} /* End of switch */
@@ -5246,7 +5250,12 @@
 	horiz = (gtk_notebook_get_tab_pos(notebook) == GTK_POS_TOP ||
 			gtk_notebook_get_tab_pos(notebook) == GTK_POS_BOTTOM);
 
+#if GTK_CHECK_VERSION(2,2,0)
 	count = gtk_notebook_get_n_pages(GTK_NOTEBOOK(notebook));
+#else
+	/* this is hacky, but it's only for Gtk 2.0.0... */
+	count = g_list_length(GTK_NOTEBOOK(notebook)->children);
+#endif
 
 	for (i = 0; i < count; i++) {