Rework of alertpanel default button focus handling.
authorAndrej Kacian <ticho@claws-mail.org>
Fri, 9 Feb 2018 13:44:30 +0000 (14:44 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Fri, 9 Feb 2018 13:44:30 +0000 (14:44 +0100)
commit5ab9e6e799f34e73d648817a295051a8da981837
treebaa1fb37ca45a671ceb64130334187297c4be72a
parentf01256abc54f28fc06a5abbe6b6897627b640ee7
Rework of alertpanel default button focus handling.

Instead of using "+" prefix with button labels and/or
the default_value parameter, we introduce "focus"
parameter, which will point to first, second or third
button.

Advantages:
- we got rid of the "+" prefix, which won't work with GTK3
  with GTK3
- instead of having two ways to indicate which button
  should have focus, which can be in conflict, and
  are not very straightforward, there is just one,
  arguably more intuitive
- some small memory leaks fixed along the way
  (using g_strconcat() directly as function argument)
57 files changed:
src/account.c
src/addrcustomattr.c
src/addrduplicates.c
src/addressadd.c
src/addressbook.c
src/addrindex.c
src/alertpanel.c
src/alertpanel.h
src/compose.c
src/editaddress.c
src/edittags.c
src/exphtmldlg.c
src/expldifdlg.c
src/file_checker.c
src/folderview.c
src/gtk/sslcertwindow.c
src/imap_gtk.c
src/import.c
src/inc.c
src/main.c
src/mainwindow.c
src/mbox.c
src/message_search.c
src/messageview.c
src/mh_gtk.c
src/mimeview.c
src/news_gtk.c
src/plugins/archive/archiver_gtk.c
src/plugins/att_remover/att_remover.c
src/plugins/attachwarner/attachwarner.c
src/plugins/libravatar/libravatar_prefs.c
src/plugins/mailmbox/plugin_gtk.c
src/plugins/managesieve/sieve_editor.c
src/plugins/managesieve/sieve_manager.c
src/plugins/notification/notification_trayicon.c
src/plugins/pdf_viewer/poppler_viewer.c
src/plugins/perl/perl_plugin.c
src/plugins/pgpcore/pgp_viewer.c
src/plugins/pgpcore/select-keys.c
src/plugins/pgpcore/sgpgme.c
src/plugins/rssyl/rssyl_cb_menu.c
src/plugins/vcalendar/vcal_folder.c
src/plugins/vcalendar/vcal_meeting_gtk.c
src/plugins/vcalendar/vcalendar.c
src/prefs_actions.c
src/prefs_customheader.c
src/prefs_filtering.c
src/prefs_folder_item.c
src/prefs_matcher.c
src/prefs_migration.c
src/prefs_template.c
src/prefs_themes.c
src/ssl_manager.c
src/summary_search.c
src/summaryview.c
src/textview.c
src/toolbar.c