pidgin: 4a3731f4: Patch to fix compatibility with ancient ...

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Sat Dec 6 00:20:36 EST 2008


-----------------------------------------------------------------
Revision: 4a3731f468487751f392e59106f3554b1e70bd9d
Ancestor: dd7a36be12180dba9663c2b740553e89711d7644
Author: rfan.cn at gmail.com
Date: 2008-12-06T04:35:10
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4a3731f468487751f392e59106f3554b1e70bd9d

Modified files:
        pidgin/gtkutils.c

ChangeLog: 

Patch to fix compatibility with ancient GTK+ (2.4 and earlier).  Fixes #7582.

-------------- next part --------------
============================================================
--- pidgin/gtkutils.c	5d3e217fe4eb4b27259aaceafb882cf2a2adcb29
+++ pidgin/gtkutils.c	80a5ddc5eb2b81eae6fbeceed8150403033daf93
@@ -3276,7 +3276,13 @@ combo_box_changed_cb(GtkComboBox *combo_
 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);
 }


More information about the Commits mailing list