Mercurial > pidgin.yaz
changeset 24540:8b429520f6c6
Patch to fix compatibility with ancient GTK+ (2.4 and earlier). Fixes #7582.
committer: John Bailey <rekkanoryo@rekkanoryo.org>
author | Ryan Fan <rfan.cn@gmail.com> |
---|---|
date | Sat, 06 Dec 2008 04:35:10 +0000 |
parents | 9fb7910c1176 |
children | 024818afb013 8792c97479fd |
files | pidgin/gtkutils.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkutils.c Sat Dec 06 01:38:48 2008 +0000 +++ b/pidgin/gtkutils.c Sat Dec 06 04:35:10 2008 +0000 @@ -3276,7 +3276,13 @@ static void combo_box_changed_cb(GtkComboBox *combo_box, GtkEntry *entry) { +#if GTK_CHECK_VERSION(2, 6, 0) char *text = gtk_combo_box_get_active_text(combo_box); +#else + GtkWidget *widget = gtk_bin_get_child(GTK_BIN(combo_box)); + char *text = g_strdup(gtk_entry_get_text(GTK_ENTRY(widget))); +#endif + gtk_entry_set_text(entry, text ? text : ""); g_free(text); }