Re: maildir plugin does not compile with claws 4.0.0

Ricardo Mones <[email protected]> Tue, 1 Mar 2022 02:03:24 +0100
Newsgroups gmane.mail.sylpheed.claws.general
Message-ID <20220301020324.21a97726@busgosu>
On Wed, 23 Feb 2022 19:13:46 +0100
Christian Weiske <[email protected]> wrote:

> Hello Ricardo,
> 
> 
> > > Ricardo Mones kept it alive (last commit was in 2020) so that it
> > > can be compiled and used with the latest claws mail version.    
> > 
> > Yeah, and, as usually, real life catch me in the middle... From what I
> > see on a quick build with CM 4 all it probably needs is to get the
> > configure.ac updated to use GTK+3 libraries instead of GTK+2. If done
> > well perhaps it could be built with any of them, i.e. switch to GTK+3
> > libs if a suitable claws-mail version is detected and fallback to
> > GTK+2 otherwise.
> > 
> > Anyway is unlikely I can do that anytime soon, so patches welcome! :-)  
> 
> Thanks to your hint it was actually not that hard to get it working
> again.
> 
> I had to remove the "-DGTK_DISABLE_DEPRECATED" compilation flag because
> otherwise I got errors about some missing deprecated symbols used by
> claws itself:
> 
> ----
> In file included from maildir.c:41:
> /usr/include/claws-mail/mainwindow.h:150:9: error: unknown type name
> ‘GtkActionGroup’ 150 |         GtkActionGroup  *action_group;
>       |         ^~~~~~~~~~~~~~
> /usr/include/claws-mail/mainwindow.h:151:9: error: unknown type name
> ‘GtkUIManager’ 151 |         GtkUIManager    *ui_manager;
>       |         ^~~~~~~~~~~~
> ----
> 
> Apart from that I only modified configure.ac to use gtk3 instead of
> gtk2.
> 
> 
> The patch is available on
> https://git.cweiske.de/claws-mail-maildir-plugin.git
> in branch "gtk3".

Thanks Christian! I've pushed your change with some modification and others,
so you should be able to build it with latest gtk3 branch of Claws Mail.

regards,
-- 
  Ricardo Mones 
  ~
  The world will end in 5 minutes. Please log out.            Unknown

_______________________________________________
Users mailing list
[email protected]
https://lists.claws-mail.org/cgi-bin/mailman/listinfo/users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEQ7w2SxbfDCBevXWSHw8KiN5bzKYFAmIdcNwACgkQHw8KiN5b
zKbZMA/+P4sPJ0cy8O3YkH9raNm0rnWGmq/R7xBwZ2umf2ewn3adcY8yZXDlQyK1
qZhb26RMjqisrqEz5cm7skdTIzHGmcJj+n2Ads2JCxWHWKL6cDq68tm/q1xuDecj
MAaSMnbMF2hCMaDt0KEXMIt40UWJAfaL7rlyMyeM3PLhAU6nTIZRP3rjmyIu6c8q
CbR2MrwlLUx39LJFFBTFMOt9H6kCYX3dBzcARA5ZRcICF9+lJFcBO4Ul5QPdzOgg
cGKRMyuKZFTO0E6q4eskEcKVYlb3J2MU5Vf1xTxYSAr6W4Ao082+Vk7xnNI90ZtU
aEo0OBoCUGTPqtHEv3K7ZDn8ZwFUODZOtudhki8t8e5d/ukCkhR9YjY9ePNg5ONy
qOD3RSTw19fDvmPTNGuHGWS8KhU39ajiRfQeTSwMCxtSeJjfQLYjVf8qDECxXIb8
LXGP0vumuBUJ/lw4pnrAqiwx6Z75WMOFJ9RFCYjZfB4ZKrTqaYQO+McW/skSBj+A
kYvZiHEH9Ff5XoFh2hEBgYycl6018LMCxca1TaMucZYrg4LRgGDsMUloys1W7sX3
sHqZyujTG7Vm0kvtXkgRZKp0s5JBhqj79BmGn2IcCVEkLXxOs/h/sS6oTrJMfsU2
gidyhuJD7k7irSUbzceCmLAERfp/+BZ/jDXisSDMMhMHBX0q7ZA=
=iqn6
-----END PGP SIGNATURE-----