talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit f6ba0bbe4958bff55321f1c2e9b40ebbc85d608c
parent 72af590ae944e16136d1dcbb2ea3e4f7c7fd44aa
Author: Ricardo Mones <ricardo@mones.org>
Date:   Tue, 17 Jun 2014 16:40:24 +0200

Use gtk_combo_box_new_text only if supported

Diffstat:
Msrc/plugins/rssyl/rssyl_feed_props.c | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/plugins/rssyl/rssyl_feed_props.c b/src/plugins/rssyl/rssyl_feed_props.c @@ -286,12 +286,25 @@ void rssyl_gtk_prop(RFolderItem *ritem) 1, 0); /* Silent update - combobox */ +#if !GTK_CHECK_VERSION(2, 24, 0) + feedprop->silent_update = gtk_combo_box_new_text(); + gtk_combo_box_append_text(GTK_COMBO_BOX(feedprop->silent_update), +#else feedprop->silent_update = gtk_combo_box_text_new(); gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(feedprop->silent_update), +#endif _("Always mark as new")); +#if !GTK_CHECK_VERSION(2, 24, 0) + gtk_combo_box_append_text(GTK_COMBO_BOX(feedprop->silent_update), +#else gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(feedprop->silent_update), +#endif _("If only its text changed")); +#if !GTK_CHECK_VERSION(2, 24, 0) + gtk_combo_box_append_text(GTK_COMBO_BOX(feedprop->silent_update), +#else gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(feedprop->silent_update), +#endif _("Never mark as new")); gtk_combo_box_set_active(GTK_COMBO_BOX(feedprop->silent_update), ritem->silent_update);