Mercurial > pidgin.yaz
changeset 11380:eb49e64d02fd
[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 <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 31 Aug 2005 03:29:05 +0000 |
parents | 51c189755f1d |
children | e0f42900de12 |
files | src/gtkprefs.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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() {