From 441d6f48003e70a00c705da71d7dbdc7ed1cd910 Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Sat, 5 Oct 2013 11:25:29 +0000 Subject: [PATCH] - Fix comboboxes vcalendar bug by adding upstream patches [1] - Add support for STAGEDIR - Properly set configure iconv args PR: ports/182439 [1] Reported by: Gerard Seibert --- mail/claws-mail-address_keeper/Makefile | 1 - mail/claws-mail-archiver/Makefile | 1 - mail/claws-mail-att_remover/Makefile | 1 - mail/claws-mail-attach_warner/Makefile | 1 - mail/claws-mail-bogofilter/Makefile | 1 - mail/claws-mail-bsfilter/Makefile | 1 - mail/claws-mail-clamd/Makefile | 1 - mail/claws-mail-fancy/Makefile | 1 - mail/claws-mail-fetchinfo/Makefile | 1 - mail/claws-mail-gdata/Makefile | 1 - mail/claws-mail-mailmbox/Makefile | 1 - mail/claws-mail-newmail/Makefile | 1 - mail/claws-mail-notification/Makefile | 1 - mail/claws-mail-pdf_viewer/Makefile | 1 - mail/claws-mail-perl/Makefile | 6 +- mail/claws-mail-pgp/Makefile | 1 - mail/claws-mail-python/Makefile | 1 - mail/claws-mail-rssyl/Makefile | 1 - mail/claws-mail-spamassassin/Makefile | 1 - mail/claws-mail-spamreport/Makefile | 1 - mail/claws-mail-tnef/Makefile | 1 - mail/claws-mail-vcalendar/Makefile | 3 +- ...rc__plugins__vcalendar__vcal_meeting_gtk.c | 71 ++++ mail/claws-mail/Makefile | 18 +- mail/claws-mail/Makefile.claws | 8 +- .../files/patch-combobox_set_popdown_strings | 361 ++++++++++++++++++ mail/claws-mail/pkg-plist | 1 + 27 files changed, 448 insertions(+), 40 deletions(-) create mode 100644 mail/claws-mail-vcalendar/files/patch-src__plugins__vcalendar__vcal_meeting_gtk.c create mode 100644 mail/claws-mail/files/patch-combobox_set_popdown_strings diff --git a/mail/claws-mail-address_keeper/Makefile b/mail/claws-mail-address_keeper/Makefile index 69710c72679f..7ab4dbffaba5 100644 --- a/mail/claws-mail-address_keeper/Makefile +++ b/mail/claws-mail-address_keeper/Makefile @@ -8,6 +8,5 @@ COMMENT= Recipient addresses keeper plugin for Claws Mail CLAWS_PLUGINS_BUILD= address_keeper -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-archiver/Makefile b/mail/claws-mail-archiver/Makefile index 1c0cfa447562..67b2c2290777 100644 --- a/mail/claws-mail-archiver/Makefile +++ b/mail/claws-mail-archiver/Makefile @@ -8,6 +8,5 @@ COMMENT= Mail archiver plugin for Claws Mail CLAWS_PLUGINS_BUILD= archive -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-att_remover/Makefile b/mail/claws-mail-att_remover/Makefile index dd6334d6a216..76e3f0ad4f9f 100644 --- a/mail/claws-mail-att_remover/Makefile +++ b/mail/claws-mail-att_remover/Makefile @@ -8,6 +8,5 @@ COMMENT= Attachments removing plugin for Claws Mail CLAWS_PLUGINS_BUILD= att_remover -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-attach_warner/Makefile b/mail/claws-mail-attach_warner/Makefile index 533ac2e8c1d7..d54b36215ee2 100644 --- a/mail/claws-mail-attach_warner/Makefile +++ b/mail/claws-mail-attach_warner/Makefile @@ -8,6 +8,5 @@ COMMENT= Not attached file warning plugin for Claws Mail CLAWS_PLUGINS_BUILD= attachwarner -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-bogofilter/Makefile b/mail/claws-mail-bogofilter/Makefile index fc08b52138d5..15cb97475714 100644 --- a/mail/claws-mail-bogofilter/Makefile +++ b/mail/claws-mail-bogofilter/Makefile @@ -10,6 +10,5 @@ RUN_DEPENDS= bogofilter:${PORTSDIR}/mail/bogofilter CLAWS_PLUGINS_BUILD= bogofilter -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-bsfilter/Makefile b/mail/claws-mail-bsfilter/Makefile index 56ceff27d7af..5694e9e880e2 100644 --- a/mail/claws-mail-bsfilter/Makefile +++ b/mail/claws-mail-bsfilter/Makefile @@ -8,6 +8,5 @@ COMMENT= Spam filtering, bsfilter based plugin for Claws Mail CLAWS_PLUGINS_BUILD= bsfilter -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-clamd/Makefile b/mail/claws-mail-clamd/Makefile index 3dc33cdb7e6c..54e886a11f07 100644 --- a/mail/claws-mail-clamd/Makefile +++ b/mail/claws-mail-clamd/Makefile @@ -10,7 +10,6 @@ RUN_DEPENDS= clamd:${PORTSDIR}/security/clamav CLAWS_PLUGINS_BUILD= clamd -NO_STAGE= yes post-install: @${ECHO} @${ECHO_CMD} "********************************************************************************" diff --git a/mail/claws-mail-fancy/Makefile b/mail/claws-mail-fancy/Makefile index 2772030346b4..b88f92cf94ca 100644 --- a/mail/claws-mail-fancy/Makefile +++ b/mail/claws-mail-fancy/Makefile @@ -11,6 +11,5 @@ LIB_DEPENDS= libsoup-gnome-2.4.so:${PORTSDIR}/devel/libsoup-gnome \ CLAWS_PLUGINS_BUILD= fancy -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-fetchinfo/Makefile b/mail/claws-mail-fetchinfo/Makefile index aa24f3a34b1b..88383a2f4460 100644 --- a/mail/claws-mail-fetchinfo/Makefile +++ b/mail/claws-mail-fetchinfo/Makefile @@ -8,6 +8,5 @@ COMMENT= Header insertion plugin for Claws Mail CLAWS_PLUGINS_BUILD= fetchinfo -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-gdata/Makefile b/mail/claws-mail-gdata/Makefile index 1c9e8f71dffb..77ad345292cd 100644 --- a/mail/claws-mail-gdata/Makefile +++ b/mail/claws-mail-gdata/Makefile @@ -10,6 +10,5 @@ LIB_DEPENDS= libgdata.so:${PORTSDIR}/devel/libgdata CLAWS_PLUGINS_BUILD= gdata -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-mailmbox/Makefile b/mail/claws-mail-mailmbox/Makefile index 34ca02b3a4ea..d6c18b514f43 100644 --- a/mail/claws-mail-mailmbox/Makefile +++ b/mail/claws-mail-mailmbox/Makefile @@ -8,6 +8,5 @@ COMMENT= Mbox maildir plugin for Claws Mail CLAWS_PLUGINS_BUILD= mailmbox -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-newmail/Makefile b/mail/claws-mail-newmail/Makefile index c33ddb8b0751..3c8a4125b7a9 100644 --- a/mail/claws-mail-newmail/Makefile +++ b/mail/claws-mail-newmail/Makefile @@ -8,6 +8,5 @@ COMMENT= Message header summary logging plugin for Claws Mail CLAWS_PLUGINS_BUILD= newmail -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-notification/Makefile b/mail/claws-mail-notification/Makefile index ae2f1f8014ac..3ae665810b12 100644 --- a/mail/claws-mail-notification/Makefile +++ b/mail/claws-mail-notification/Makefile @@ -11,6 +11,5 @@ LIB_DEPENDS= libcanberra-gtk.so:${PORTSDIR}/audio/libcanberra \ CLAWS_PLUGINS_BUILD= notification -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-pdf_viewer/Makefile b/mail/claws-mail-pdf_viewer/Makefile index a2518ce326ec..336bfcd8b9d5 100644 --- a/mail/claws-mail-pdf_viewer/Makefile +++ b/mail/claws-mail-pdf_viewer/Makefile @@ -12,6 +12,5 @@ USE_GHOSTSCRIPT=yes CLAWS_PLUGINS_BUILD= pdf_viewer -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-perl/Makefile b/mail/claws-mail-perl/Makefile index 6c3068367cf8..7455a2a91d79 100644 --- a/mail/claws-mail-perl/Makefile +++ b/mail/claws-mail-perl/Makefile @@ -12,10 +12,10 @@ PLIST_FILES+= share/claws-mail/matcherrc2perlfilter.pl CLAWS_PLUGINS_BUILD= perl -NO_STAGE= yes post-install: - @${INSTALL_SCRIPT} ${WRKSRC}/src/plugins/perl/tools/matcherrc2perlfilter.pl \ - ${PREFIX}/share/claws-mail/ + @${MKDIR} ${STAGEDIR}${PREFIX}/share/claws-mail + ${INSTALL_SCRIPT} ${WRKSRC}/src/plugins/perl/tools/matcherrc2perlfilter.pl \ + ${STAGEDIR}${PREFIX}/share/claws-mail/ .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-pgp/Makefile b/mail/claws-mail-pgp/Makefile index 8d2eb67a1eac..5a5ac73811b4 100644 --- a/mail/claws-mail-pgp/Makefile +++ b/mail/claws-mail-pgp/Makefile @@ -10,6 +10,5 @@ LIB_DEPENDS= libgpgme.so:${PORTSDIR}/security/gpgme CLAWS_PLUGINS_BUILD= pgpcore pgpinline pgpmime smime -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-python/Makefile b/mail/claws-mail-python/Makefile index cea6cd8d2c97..830ac7c83c44 100644 --- a/mail/claws-mail-python/Makefile +++ b/mail/claws-mail-python/Makefile @@ -10,6 +10,5 @@ USE_GNOME= pygtk2 CLAWS_PLUGINS_BUILD= python -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-rssyl/Makefile b/mail/claws-mail-rssyl/Makefile index 03e4b6a17b70..743fa2652820 100644 --- a/mail/claws-mail-rssyl/Makefile +++ b/mail/claws-mail-rssyl/Makefile @@ -9,6 +9,5 @@ COMMENT= RSS/Atom feed reader plugin for Claws Mail CLAWS_PLUGINS_BUILD= rssyl -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-spamassassin/Makefile b/mail/claws-mail-spamassassin/Makefile index 8c4f0ffb51f5..1146e52bf34c 100644 --- a/mail/claws-mail-spamassassin/Makefile +++ b/mail/claws-mail-spamassassin/Makefile @@ -10,6 +10,5 @@ RUN_DEPENDS= spamd:${PORTSDIR}/mail/p5-Mail-SpamAssassin CLAWS_PLUGINS_BUILD= spamassassin -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-spamreport/Makefile b/mail/claws-mail-spamreport/Makefile index e65d23c1e4cc..d912f8983094 100644 --- a/mail/claws-mail-spamreport/Makefile +++ b/mail/claws-mail-spamreport/Makefile @@ -8,7 +8,6 @@ COMMENT= Spam report plugin for Claws Mail CLAWS_PLUGINS_BUILD= spam_report -NO_STAGE= yes .include "../claws-mail/Makefile.claws" PLIST_FILES:= ${PLIST_FILES:S|spam_report|spamreport|g} .include diff --git a/mail/claws-mail-tnef/Makefile b/mail/claws-mail-tnef/Makefile index cc497447561c..1e8027e4494d 100644 --- a/mail/claws-mail-tnef/Makefile +++ b/mail/claws-mail-tnef/Makefile @@ -8,6 +8,5 @@ COMMENT= TNEF attachment format parser plugin for Claws Mail CLAWS_PLUGINS_BUILD= tnef_parse -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-vcalendar/Makefile b/mail/claws-mail-vcalendar/Makefile index 9b32da4ff80e..3947ee06c32f 100644 --- a/mail/claws-mail-vcalendar/Makefile +++ b/mail/claws-mail-vcalendar/Makefile @@ -2,12 +2,11 @@ # $FreeBSD$ PORTNAME= vcalendar -PORTREVISION= 0 +PORTREVISION= 1 COMMENT= vCalendar plugin for Claws Mail CLAWS_PLUGINS_BUILD= vcalendar -NO_STAGE= yes .include "../claws-mail/Makefile.claws" .include diff --git a/mail/claws-mail-vcalendar/files/patch-src__plugins__vcalendar__vcal_meeting_gtk.c b/mail/claws-mail-vcalendar/files/patch-src__plugins__vcalendar__vcal_meeting_gtk.c new file mode 100644 index 000000000000..1850dea07f8a --- /dev/null +++ b/mail/claws-mail-vcalendar/files/patch-src__plugins__vcalendar__vcal_meeting_gtk.c @@ -0,0 +1,71 @@ +--- ./src/plugins/vcalendar/vcal_meeting_gtk.c.orig 2013-03-19 07:31:04.000000000 +0100 ++++ ./src/plugins/vcalendar/vcal_meeting_gtk.c 2013-09-28 16:28:18.000000000 +0200 +@@ -1433,15 +1433,31 @@ + + times = get_predefined_times(); + +- meet->start_time = gtk_combo_box_entry_new_text (); ++#if !GTK_CHECK_VERSION(2, 24, 0) ++ meet->start_time = gtk_combo_box_entry_new_text(); ++#else ++ meet->start_time = gtk_combo_box_text_new_with_entry(); ++#endif + gtk_combo_box_set_active(GTK_COMBO_BOX(meet->start_time), -1); + menu = GTK_LIST_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(meet->start_time))); ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(meet->start_time), times); +- +- meet->end_time = gtk_combo_box_entry_new_text (); ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(meet->start_time), times); ++#endif ++ ++#if !GTK_CHECK_VERSION(2, 24, 0) ++ meet->end_time = gtk_combo_box_entry_new_text(); ++#else ++ meet->end_time = gtk_combo_box_text_new_with_entry(); ++#endif + gtk_combo_box_set_active(GTK_COMBO_BOX(meet->end_time), -1); + menu = GTK_LIST_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(meet->end_time))); ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(meet->end_time), times); ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(meet->end_time), times); ++#endif + + list_free_strings(times); + g_list_free(times); +@@ -1597,12 +1613,14 @@ + date_hbox = gtk_hbox_new(FALSE, 6); + date_vbox = gtk_vbox_new(FALSE, 6); + hbox = gtk_hbox_new(FALSE, 6); +- label = gtk_label_new(_("Starts at: ")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); ++ label = gtk_label_new(_("Starts at: ")); ++ gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); + gtk_label_set_use_markup(GTK_LABEL(label), TRUE); + + gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(hbox), meet->start_time, FALSE, FALSE, 0); +- label = gtk_label_new(_(" on:")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); ++ label = gtk_label_new(_(" on:")); ++ gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); + gtk_label_set_use_markup(GTK_LABEL(label), TRUE); + gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(date_vbox), hbox, FALSE, FALSE, 0); +@@ -1619,12 +1637,14 @@ + + date_vbox = gtk_vbox_new(FALSE, 6); + hbox = gtk_hbox_new(FALSE, 6); +- label = gtk_label_new(_("Ends at: ")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); ++ label = gtk_label_new(_("Ends at: ")); ++ gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); + gtk_label_set_use_markup(GTK_LABEL(label), TRUE); + + gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(hbox), meet->end_time, FALSE, FALSE, 0); +- label = gtk_label_new(_(" on:")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); ++ label = gtk_label_new(_(" on:")); ++ gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); + gtk_label_set_use_markup(GTK_LABEL(label), TRUE); + gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(date_vbox), hbox, FALSE, FALSE, 0); diff --git a/mail/claws-mail/Makefile b/mail/claws-mail/Makefile index 750e66cc469c..b833d4b113dc 100644 --- a/mail/claws-mail/Makefile +++ b/mail/claws-mail/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PORTNAME= claws-mail +PORTREVISION= 1 CATEGORIES= mail news ipv6 COMMENT= Lightweight and very featureful GTK+ based e-mail and news client @@ -13,11 +14,9 @@ LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \ RUN_DEPENDS= ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support USE_GNOME= gtk20 -USES= iconv pathfix +USES= pathfix INSTALLS_ICONS= yes -MAN1= claws-mail.1 - OPTIONS_DEFINE= COMPFACE DEBUG DOCS ENCHANT IPV6 JPILOT LDAP \ MANUAL NLS STARTUP THEMES OPTIONS_SUB= yes @@ -59,7 +58,6 @@ STARTUP_LIB_DEPENDS= libstartup-notification-1.so:${PORTSDIR}/x11/startup-notifi THEMES_RUN_DEPENDS= ${LOCALBASE}/share/claws-mail/themes/ZX-0_1.1/down_arrow.xpm:${PORTSDIR}/x11-themes/claws-mail-themes -NO_STAGE= yes .include "Makefile.claws" .include @@ -78,14 +76,12 @@ post-patch: ${REINPLACE_CMD} -e "s|/usr/bin/perl|${PERL}|" $$f; done post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in NEWS RELEASE_NOTES README TODO - @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor - @${INSTALL_DATA} ${WRKSRC}/tools/README ${DOCSDIR}/README.tools -.endif - @${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/tools/README ${STAGEDIR}${DOCSDIR}/README.tools + @${MKDIR} ${STAGEDIR}${DATADIR} cd ${WRKSRC}/tools && \ ${INSTALL_SCRIPT} OOo2claws-mail.pl acroread2claws-mail.pl \ calypso_convert.pl convert_mbox.pl eud2gc.py filter_conv.pl \ @@ -96,6 +92,6 @@ post-install: nautilus2claws-mail.sh outlook2claws-mail.pl tb2claws-mail \ tbird2claws.py textviewer.pl textviewer.sh \ thunderbird-filters-convertor.pl uudec uuooffice vcard2xml.py \ - ${DATADIR} + ${STAGEDIR}${DATADIR} .include diff --git a/mail/claws-mail/Makefile.claws b/mail/claws-mail/Makefile.claws index ced483787491..45edf52d2c37 100644 --- a/mail/claws-mail/Makefile.claws +++ b/mail/claws-mail/Makefile.claws @@ -9,11 +9,10 @@ MAINTAINER= pawel@FreeBSD.org LICENSE= GPLv3 USE_BZIP2= yes -USES+= gmake pkgconfig +USES+= gmake iconv pkgconfig GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \ - --disable-dbus +CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} --disable-dbus CLAWS_PLUGINS= acpi_notifier \ address_keeper \ @@ -56,6 +55,7 @@ RUN_DEPENDS+= claws-mail>=${PORTVERSION}:${PORTSDIR}/mail/claws-mail MASTERDIR= ${.CURDIR}/../../mail/claws-mail DESCR= ${.CURDIR}/pkg-descr +FILESDIR= ${.CURDIR}/files PLIST= ${NONEXISTENT} PKGMESSAGE= ${.CURDIR}/pkg-message @@ -73,7 +73,7 @@ do-build: do-install: . for p in ${CLAWS_PLUGINS_BUILD} - cd ${WRKSRC}/src/plugins/${p} && ${GMAKE} install + cd ${WRKSRC}/src/plugins/${p} && ${GMAKE} install DESTDIR="${STAGEDIR}" . endfor .endif diff --git a/mail/claws-mail/files/patch-combobox_set_popdown_strings b/mail/claws-mail/files/patch-combobox_set_popdown_strings new file mode 100644 index 000000000000..02ef188aa47d --- /dev/null +++ b/mail/claws-mail/files/patch-combobox_set_popdown_strings @@ -0,0 +1,361 @@ +--- src/gtk/inputdialog.c.orig 2013-03-19 07:31:04.000000000 +0100 ++++ src/gtk/inputdialog.c 2013-10-04 23:12:25.000000000 +0200 +@@ -1,6 +1,6 @@ + /* + * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client +- * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team ++ * Copyright (C) 1999-2013 Hiroyuki Yamamoto and the Claws Mail team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by +@@ -197,10 +197,13 @@ + gtk_widget_show(icon_q); + gtk_widget_hide(icon_p); + is_pass = FALSE; +- ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_unset_popdown_strings(GTK_COMBO_BOX(combo)); + combobox_set_popdown_strings(GTK_COMBO_BOX(combo), list); +- ++#else ++ combobox_unset_popdown_strings(GTK_COMBO_BOX_TEXT(combo)); ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(combo), list); ++#endif + return input_dialog_open(title, message, NULL, default_string, FALSE, remember); + } + +--- src/gtk/quicksearch.c.orig 2013-03-19 07:31:04.000000000 +0100 ++++ src/gtk/quicksearch.c 2013-10-04 23:12:25.000000000 +0200 +@@ -1,6 +1,6 @@ + /* + * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client +- * Copyright (C) 1999-2012 Colin Leroy ++ * Copyright (C) 1999-2013 Colin Leroy + * and the Claws Mail team + * + * This program is free software; you can redistribute it and/or modify +@@ -208,14 +208,23 @@ + { + GtkWidget *search_string_entry = quicksearch->search_string_entry; + ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_unset_popdown_strings(GTK_COMBO_BOX(search_string_entry)); +- + if (prefs_common.summary_quicksearch_type == ADVANCED_SEARCH_EXTENDED) + combobox_set_popdown_strings(GTK_COMBO_BOX(search_string_entry), + quicksearch->extended_search_strings); + else + combobox_set_popdown_strings(GTK_COMBO_BOX(search_string_entry), + quicksearch->normal_search_strings); ++#else ++ combobox_unset_popdown_strings(GTK_COMBO_BOX_TEXT(search_string_entry)); ++ if (prefs_common.summary_quicksearch_type == ADVANCED_SEARCH_EXTENDED) ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(search_string_entry), ++ quicksearch->extended_search_strings); ++ else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(search_string_entry), ++ quicksearch->normal_search_strings); ++#endif + } + + static void update_extended_buttons (QuickSearch *quicksearch) +--- src/editaddress.c.orig 2013-03-19 07:31:04.000000000 +0100 ++++ src/editaddress.c 2013-10-04 23:12:25.000000000 +0200 +@@ -1,6 +1,6 @@ + /* + * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client +- * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team ++ * Copyright (C) 1999-2013 Hiroyuki Yamamoto and the Claws Mail team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by +@@ -1366,9 +1366,13 @@ + #endif + gtk_combo_box_set_active(GTK_COMBO_BOX(entry_name), -1); + if (prefs_common.addressbook_custom_attributes) ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(entry_name), + prefs_common.addressbook_custom_attributes); +- ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(entry_name), ++ prefs_common.addressbook_custom_attributes); ++#endif + /* Button box */ + vboxb = gtk_vbox_new( FALSE, 4 ); + gtk_box_pack_start(GTK_BOX(hbox), vboxb, FALSE, FALSE, 2); +@@ -1760,10 +1764,19 @@ + void addressbook_edit_reload_attr_list( void ) + { + if (personeditdlg.entry_atname) { ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_unset_popdown_strings(GTK_COMBO_BOX(personeditdlg.entry_atname)); ++#else ++ combobox_unset_popdown_strings(GTK_COMBO_BOX_TEXT(personeditdlg.entry_atname)); ++#endif + if (prefs_common.addressbook_custom_attributes) ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(personeditdlg.entry_atname), + prefs_common.addressbook_custom_attributes); ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(personeditdlg.entry_atname), ++ prefs_common.addressbook_custom_attributes); ++#endif + } + } + +--- src/compose.c.orig 2013-06-08 21:58:31.000000000 +0200 ++++ src/compose.c 2013-10-04 23:12:25.000000000 +0200 +@@ -1,6 +1,6 @@ + /* + * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client +- * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team ++ * Copyright (C) 1999-2013 Hiroyuki Yamamoto and the Claws Mail team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by +@@ -930,11 +930,20 @@ + { + GtkEditable *entry; + if (folderidentifier) { ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_unset_popdown_strings(GTK_COMBO_BOX(compose->savemsg_combo)); ++#else ++ combobox_unset_popdown_strings(GTK_COMBO_BOX_TEXT(compose->savemsg_combo)); ++#endif + prefs_common.compose_save_to_history = add_history( + prefs_common.compose_save_to_history, folderidentifier); ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(compose->savemsg_combo), + prefs_common.compose_save_to_history); ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(compose->savemsg_combo), ++ prefs_common.compose_save_to_history); ++#endif + } + + entry = GTK_EDITABLE(gtk_bin_get_child(GTK_BIN(compose->savemsg_combo))); +@@ -952,11 +961,20 @@ + result = gtk_editable_get_chars(entry, 0, -1); + + if (result) { ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_unset_popdown_strings(GTK_COMBO_BOX(compose->savemsg_combo)); ++#else ++ combobox_unset_popdown_strings(GTK_COMBO_BOX_TEXT(compose->savemsg_combo)); ++#endif + prefs_common.compose_save_to_history = add_history( + prefs_common.compose_save_to_history, result); ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(compose->savemsg_combo), + prefs_common.compose_save_to_history); ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(compose->savemsg_combo), ++ prefs_common.compose_save_to_history); ++#endif + } + return result; + } +@@ -6709,7 +6727,7 @@ + GtkCellRenderer *cell = gtk_cell_renderer_text_new(); + gtk_cell_renderer_set_alignment(cell, 0.0, 0.5); + gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo), cell, TRUE); +- gtk_combo_box_set_entry_text_column(combo, 0); ++ gtk_combo_box_set_entry_text_column(GTK_COMBO_BOX(combo), 0); + #endif + gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0); + g_signal_connect(G_OBJECT(gtk_bin_get_child(GTK_BIN(combo))), "grab_focus", +@@ -7077,9 +7095,13 @@ + gtk_widget_show(savemsg_combo); + + if (prefs_common.compose_save_to_history) ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(savemsg_combo), + prefs_common.compose_save_to_history); +- ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(savemsg_combo), ++ prefs_common.compose_save_to_history); ++#endif + gtk_table_attach(GTK_TABLE(table), savemsg_combo, 1, 2, rowcount, rowcount + 1, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); + gtk_widget_set_sensitive(GTK_WIDGET(savemsg_combo), prefs_common.savemsg); + g_signal_connect_after(G_OBJECT(savemsg_combo), "grab_focus", +--- src/message_search.c.orig 2013-03-19 07:31:04.000000000 +0100 ++++ src/message_search.c 2013-10-04 23:12:25.000000000 +0200 +@@ -1,6 +1,6 @@ + /* + * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client +- * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team ++ * Copyright (C) 1999-2013 Hiroyuki Yamamoto and the Claws Mail team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by +@@ -193,8 +193,13 @@ + #endif + gtk_combo_box_set_active(GTK_COMBO_BOX(body_entry), -1); + if (prefs_common.message_search_history) ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(body_entry), + prefs_common.message_search_history); ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(body_entry), ++ prefs_common.message_search_history); ++#endif + gtk_widget_show (body_entry); + gtk_box_pack_start (GTK_BOX (hbox1), body_entry, TRUE, TRUE, 0); + g_signal_connect(G_OBJECT(body_entry), "changed", +@@ -290,11 +295,20 @@ + if (!body_str || *body_str == '\0') return; + + /* add to history */ ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_unset_popdown_strings(GTK_COMBO_BOX(search_window.body_entry)); ++#else ++ combobox_unset_popdown_strings(GTK_COMBO_BOX_TEXT(search_window.body_entry)); ++#endif + prefs_common.message_search_history = add_history( + prefs_common.message_search_history, body_str); ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(search_window.body_entry), + prefs_common.message_search_history); ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(search_window.body_entry), ++ prefs_common.message_search_history); ++#endif + + case_sens = gtk_toggle_button_get_active + (GTK_TOGGLE_BUTTON(search_window.case_checkbtn)); +--- src/prefs_matcher.c.orig 2013-04-27 09:06:57.000000000 +0200 ++++ src/prefs_matcher.c 2013-10-04 23:12:26.000000000 +0200 +@@ -655,7 +655,7 @@ + GtkCellRenderer *cell = gtk_cell_renderer_text_new(); + gtk_cell_renderer_set_alignment(cell, 0.0, 0.5); + gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(headers_combo), cell, TRUE); +- gtk_combo_box_set_entry_text_column(headers_combo, 0); ++ gtk_combo_box_set_entry_text_column(GTK_COMBO_BOX(headers_combo), 0); + #endif + gtk_widget_set_size_request(headers_combo, 100, -1); + gtk_box_pack_start(GTK_BOX(upper_hbox), headers_combo, TRUE, TRUE, 0); +--- src/prefs_toolbar.c.orig 2013-03-19 07:31:04.000000000 +0100 ++++ src/prefs_toolbar.c 2013-10-04 23:12:26.000000000 +0200 +@@ -1,6 +1,6 @@ + /* + * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client +- * Copyright (C) 2002-2012 Hiroyuki Yamamoto & the Claws Mail team ++ * Copyright (C) 2002-2013 Hiroyuki Yamamoto & the Claws Mail team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by +@@ -382,8 +382,13 @@ + GHashTable **hash; + + prefs_toolbar->combo_action_list = toolbar_get_action_items(prefs_toolbar->source); ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(prefs_toolbar->item_func_combo), + prefs_toolbar->combo_action_list); ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(prefs_toolbar->item_func_combo), ++ prefs_toolbar->combo_action_list); ++#endif + + /* get currently defined sylpheed actions */ + if (prefs_common.actions_list != NULL) { +--- src/summary_search.c.orig 2013-03-19 07:31:04.000000000 +0100 ++++ src/summary_search.c 2013-10-04 23:12:26.000000000 +0200 +@@ -1,6 +1,6 @@ + /* + * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client +- * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team ++ * Copyright (C) 1999-2013 Hiroyuki Yamamoto and the Claws Mail team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by +@@ -181,10 +181,17 @@ + + if (result && result[0] != '\0') { + /* add to history */ +- ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_unset_popdown_strings(GTK_COMBO_BOX(from)); ++#else ++ combobox_unset_popdown_strings(GTK_COMBO_BOX_TEXT(from)); ++#endif + *history = add_history(*history, result); ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(from), *history); ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(from), *history); ++#endif + + return result; + } else { +@@ -311,8 +318,13 @@ + #endif + gtk_combo_box_set_active(GTK_COMBO_BOX(from_entry), -1); + if (prefs_common.summary_search_from_history) ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(from_entry), + prefs_common.summary_search_from_history); ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(from_entry), ++ prefs_common.summary_search_from_history); ++#endif + gtk_widget_show (from_entry); + gtk_table_attach (GTK_TABLE (table1), from_entry, 1, 3, 0, 1, + GTK_EXPAND|GTK_FILL, 0, 0, 0); +@@ -330,8 +342,13 @@ + #endif + gtk_combo_box_set_active(GTK_COMBO_BOX(to_entry), -1); + if (prefs_common.summary_search_to_history) ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(to_entry), + prefs_common.summary_search_to_history); ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(to_entry), ++ prefs_common.summary_search_to_history); ++#endif + gtk_widget_show (to_entry); + gtk_table_attach (GTK_TABLE (table1), to_entry, 1, 3, 1, 2, + GTK_EXPAND|GTK_FILL, 0, 0, 0); +@@ -349,8 +366,13 @@ + #endif + gtk_combo_box_set_active(GTK_COMBO_BOX(subject_entry), -1); + if (prefs_common.summary_search_subject_history) ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(subject_entry), + prefs_common.summary_search_subject_history); ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(subject_entry), ++ prefs_common.summary_search_subject_history); ++#endif + gtk_widget_show (subject_entry); + gtk_table_attach (GTK_TABLE (table1), subject_entry, 1, 3, 2, 3, + GTK_EXPAND|GTK_FILL, 0, 0, 0); +@@ -368,8 +390,13 @@ + #endif + gtk_combo_box_set_active(GTK_COMBO_BOX(body_entry), -1); + if (prefs_common.summary_search_body_history) ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(body_entry), + prefs_common.summary_search_body_history); ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(body_entry), ++ prefs_common.summary_search_body_history); ++#endif + gtk_widget_show (body_entry); + gtk_table_attach (GTK_TABLE (table1), body_entry, 1, 3, 3, 4, + GTK_EXPAND|GTK_FILL, 0, 0, 0); +@@ -387,8 +414,13 @@ + #endif + gtk_combo_box_set_active(GTK_COMBO_BOX(adv_condition_entry), -1); + if (prefs_common.summary_search_adv_condition_history) ++#if !GTK_CHECK_VERSION(2, 24, 0) + combobox_set_popdown_strings(GTK_COMBO_BOX(adv_condition_entry), + prefs_common.summary_search_adv_condition_history); ++#else ++ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(adv_condition_entry), ++ prefs_common.summary_search_adv_condition_history); ++#endif + gtk_widget_show (adv_condition_entry); + gtk_table_attach (GTK_TABLE (table1), adv_condition_entry, 1, 2, 4, 5, + GTK_EXPAND|GTK_FILL, 0, 0, 0); diff --git a/mail/claws-mail/pkg-plist b/mail/claws-mail/pkg-plist index 23188dbf0da1..14237dd67b81 100644 --- a/mail/claws-mail/pkg-plist +++ b/mail/claws-mail/pkg-plist @@ -241,6 +241,7 @@ lib/claws-mail/plugins/pgpinline.deps lib/claws-mail/plugins/pgpmime.deps lib/claws-mail/plugins/smime.deps libdata/pkgconfig/claws-mail.pc +man/man1/claws-mail.1.gz share/applications/claws-mail.desktop %%DATADIR%%/OOo2claws-mail.pl %%DATADIR%%/acroread2claws-mail.pl