1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- 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 <gerard@seibercom.net>
This commit is contained in:
Pawel Pekala 2013-10-05 11:25:29 +00:00
parent e7f149e7cd
commit 441d6f4800
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=329440
27 changed files with 448 additions and 40 deletions

View File

@ -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 <bsd.port.mk>

View File

@ -8,6 +8,5 @@ COMMENT= Mail archiver plugin for Claws Mail
CLAWS_PLUGINS_BUILD= archive
NO_STAGE= yes
.include "../claws-mail/Makefile.claws"
.include <bsd.port.mk>

View File

@ -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 <bsd.port.mk>

View File

@ -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 <bsd.port.mk>

View File

@ -10,6 +10,5 @@ RUN_DEPENDS= bogofilter:${PORTSDIR}/mail/bogofilter
CLAWS_PLUGINS_BUILD= bogofilter
NO_STAGE= yes
.include "../claws-mail/Makefile.claws"
.include <bsd.port.mk>

View File

@ -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 <bsd.port.mk>

View File

@ -10,7 +10,6 @@ RUN_DEPENDS= clamd:${PORTSDIR}/security/clamav
CLAWS_PLUGINS_BUILD= clamd
NO_STAGE= yes
post-install:
@${ECHO}
@${ECHO_CMD} "********************************************************************************"

View File

@ -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 <bsd.port.mk>

View File

@ -8,6 +8,5 @@ COMMENT= Header insertion plugin for Claws Mail
CLAWS_PLUGINS_BUILD= fetchinfo
NO_STAGE= yes
.include "../claws-mail/Makefile.claws"
.include <bsd.port.mk>

View File

@ -10,6 +10,5 @@ LIB_DEPENDS= libgdata.so:${PORTSDIR}/devel/libgdata
CLAWS_PLUGINS_BUILD= gdata
NO_STAGE= yes
.include "../claws-mail/Makefile.claws"
.include <bsd.port.mk>

View File

@ -8,6 +8,5 @@ COMMENT= Mbox maildir plugin for Claws Mail
CLAWS_PLUGINS_BUILD= mailmbox
NO_STAGE= yes
.include "../claws-mail/Makefile.claws"
.include <bsd.port.mk>

View File

@ -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 <bsd.port.mk>

View File

@ -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 <bsd.port.mk>

View File

@ -12,6 +12,5 @@ USE_GHOSTSCRIPT=yes
CLAWS_PLUGINS_BUILD= pdf_viewer
NO_STAGE= yes
.include "../claws-mail/Makefile.claws"
.include <bsd.port.mk>

View File

@ -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 <bsd.port.mk>

View File

@ -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 <bsd.port.mk>

View File

@ -10,6 +10,5 @@ USE_GNOME= pygtk2
CLAWS_PLUGINS_BUILD= python
NO_STAGE= yes
.include "../claws-mail/Makefile.claws"
.include <bsd.port.mk>

View File

@ -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 <bsd.port.mk>

View File

@ -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 <bsd.port.mk>

View File

@ -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 <bsd.port.mk>

View File

@ -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 <bsd.port.mk>

View File

@ -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 <bsd.port.mk>

View File

@ -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(_("<b>Starts at:</b> ")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+ label = gtk_label_new(_("<b>Starts at:</b> "));
+ 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(_("<b> on:</b>")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+ label = gtk_label_new(_("<b> on:</b>"));
+ 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(_("<b>Ends at:</b> ")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+ label = gtk_label_new(_("<b>Ends at:</b> "));
+ 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(_("<b> on:</b>")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+ label = gtk_label_new(_("<b> on:</b>"));
+ 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);

View File

@ -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 <bsd.port.options.mk>
@ -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 <bsd.port.mk>

View File

@ -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

View File

@ -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 <colin@colino.net>
+ * Copyright (C) 1999-2013 Colin Leroy <colin@colino.net>
* 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);

View File

@ -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