# HG changeset patch # User Mark Doliner # Date 1125458945 0 # Node ID eb49e64d02fde63b3b76eb8ba1d6fcdf8a15fa49 # Parent 51c189755f1df93424992d45c5a0373cdcec2831 [gaim-migrate @ 13607] gtk_notebook_append_page returned void in gtk 2.2 and below. See http://cvs.gnome.org/viewcvs/gtk%2B/gtk/gtknotebook.h?rev=1.36&view=log committer: Tailor Script diff -r 51c189755f1d -r eb49e64d02fd src/gtkprefs.c --- a/src/gtkprefs.c Wed Aug 31 00:00:31 2005 +0000 +++ b/src/gtkprefs.c Wed Aug 31 03:29:05 2005 +0000 @@ -2107,7 +2107,12 @@ if (icon) g_object_unref(icon); +#if GTK_CHECK_VERSION(2,4,0) return gtk_notebook_append_page(GTK_NOTEBOOK(prefsnotebook), page, gtk_label_new(text)); +#else + gtk_notebook_append_page(GTK_NOTEBOOK(prefsnotebook), page, gtk_label_new(text)); + return gtk_notebook_page_num(GTK_NOTEBOOK(prefsnotebook), page); +#endif } static void prefs_notebook_init() {