/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
G_CALLBACK (account_set_default), NULL);
gtkut_stock_button_set_create_with_help(&confirm_area, &help_btn,
- &close_btn, _("_Close"),
- NULL, NULL, NULL, NULL);
+ &close_btn, "window-close", _("_Close"),
+ NULL, NULL, NULL, NULL, NULL, NULL);
gtk_widget_show(confirm_area);
gtk_box_pack_end (GTK_BOX (hbox), confirm_area, FALSE, FALSE, 0);
ac_prefs->account_name ? ac_prefs->account_name :
_("(Untitled)"));
if (alertpanel_full(_("Delete account"), buf,
- _("_Cancel"), _("_Delete"), NULL, ALERTFOCUS_FIRST, FALSE,
+ NULL, _("_Cancel"), "edit-delete", _("_Delete"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE,
NULL, ALERT_WARNING) != G_ALERTALTERNATE)
return;
account_list_dirty = TRUE;
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2007-2021 The Claws Mail Team
+ * Copyright (C) 2007-2022 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
static void custom_attr_window_list_view_clear_list(GtkWidget *list_view, gboolean warn)
{
if (!warn || alertpanel(_("Delete all attribute names"),
- _("Do you really want to delete all attribute names?"),
- _("_Cancel"), _("D_elete"), NULL, ALERTFOCUS_FIRST) == G_ALERTALTERNATE) {
+ _("Do you really want to delete all attribute names?"),
+ NULL, _("_Cancel"), NULL, _("D_elete"), NULL, NULL,
+ ALERTFOCUS_FIRST) == G_ALERTALTERNATE) {
GtkListStore *list_store = GTK_LIST_STORE(gtk_tree_view_get_model
(GTK_TREE_VIEW(list_view)));
gtk_list_store_clear(list_store);
if (alertpanel(_("Delete attribute name"),
_("Do you really want to delete this attribute name?"),
- _("_Cancel"), _("D_elete"), NULL, ALERTFOCUS_FIRST) == G_ALERTALTERNATE) {
+ NULL, _("_Cancel"), NULL, _("D_elete"), NULL, NULL,
+ ALERTFOCUS_FIRST) == G_ALERTALTERNATE) {
gtk_list_store_remove(GTK_LIST_STORE(model), &sel);
dirty = TRUE;
}
{
if (alertpanel(_("Reset to default"),
_("Do you really want to replace all attribute names\nwith the default set?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST) == G_ALERTALTERNATE) {
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL, ALERTFOCUS_FIRST) == G_ALERTALTERNATE) {
GList *tmp = custom_attr_default_list();
custom_attr_window_load_list(tmp);
if (tmp) {
del_btn = gtkut_stock_button("edit-delete", _("D_elete"));
gtk_box_pack_start(GTK_BOX(hbox1), del_btn, FALSE, FALSE, 0);
- gtkut_stock_button_set_create(&hbox2, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&hbox2, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_widget_show(new_attr_label);
gtk_widget_show(new_attr_entry);
/* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2007-2021 Holger Berndt <hb@claws-mail.org>
+ * Copyright (C) 2007-2022 Holger Berndt <hb@claws-mail.org>
* and the Claws Mail team
*
* This program is free software; you can redistribute it and/or modify
val = alertpanel_full(_("Find address book email duplicates"),
_("Claws Mail will now search for duplicate email "
"addresses in the address book."),
- _("_Cancel"), "edit-find", NULL,
+ NULL, _("_Cancel"), "edit-find", _("_Find"), NULL, NULL,
ALERTFOCUS_SECOND, FALSE, vbox, ALERT_NOTICE);
if(val == G_ALERTALTERNATE) {
want_search = TRUE;
aval = alertpanel(_("Delete address(es)"),
_("Really delete the address(es)?"),
- _("_Cancel"), _("D_elete"), NULL,
- ALERTFOCUS_SECOND);
+ NULL, _("_Cancel"), NULL, _("D_elete"),
+ NULL, NULL, ALERTFOCUS_SECOND);
if(aval != G_ALERTALTERNATE)
return;
/* Test for read only */
iface = ds->interface;
if( iface && iface->readOnly ) {
- alertpanel( _("Delete address"),
- _("This address data is read-only and cannot be deleted."),
- _("_Close"), NULL, NULL, ALERTFOCUS_FIRST );
+ alertpanel(_("Delete address"),
+ _("This address data is read-only and cannot be deleted."),
+ "window-close", _("_Close"), NULL, NULL, NULL, NULL,
+ ALERTFOCUS_FIRST );
return FALSE;
}
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001-2019 Match Grun and the Claws Mail team
+ * Copyright (C) 2001-2022 Match Grun 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
G_CALLBACK(addressadd_tree_row_activated), NULL);
/* Button panel */
- gtkut_stock_button_set_create(&hbbox, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
gtk_container_set_border_width( GTK_CONTAINER(hbbox), HSPACING_NARROW );
gtk_widget_grab_default(ok_btn);
if (server->retVal != LDAPRC_SUCCESS) {
alertpanel( _("Add address(es)"),
_("Can't add the specified address"),
- _("_Close"), NULL, NULL, ALERTFOCUS_FIRST );
+ "window-close". _("_Close"), NULL, NULL,
+ NULL, NULL, ALERTFOCUS_FIRST );
return server->retVal;
}
}
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
gtk_widget_set_can_default(bcc_btn, TRUE);
gtk_box_pack_start(GTK_BOX(hbbox), bcc_btn, TRUE, TRUE, 0);
- close_btn = gtk_button_new_with_mnemonic("_Close");
+ close_btn = gtkut_stock_button("window-close", "_Close");
gtk_widget_set_can_default(close_btn, TRUE);
gtk_box_pack_start(GTK_BOX(hbbox), close_btn, TRUE, TRUE, 0);
if( iface->readOnly ) {
alertpanel( _("Delete address(es)"),
_("This address data is read-only and cannot be deleted."),
- _("_Close"), NULL, NULL, ALERTFOCUS_FIRST);
+ "window-close", _("_Close"), NULL, NULL, NULL, NULL, ALERTFOCUS_FIRST);
return;
}
aval = alertpanel( _("Delete group"),
_("Really delete the group(s)?\n"
"The addresses it contains will not be lost."),
- _("_Cancel"), _("D_elete"), NULL, ALERTFOCUS_SECOND );
+ NULL, _("_Cancel"), NULL, _("D_elete"), NULL, NULL,
+ ALERTFOCUS_SECOND );
if( aval != G_ALERTALTERNATE ) {
goto thaw_ret;
}
} else {
aval = alertpanel( _("Delete address(es)"),
_("Really delete the address(es)?"),
- _("_Cancel"), _("D_elete"), NULL, ALERTFOCUS_SECOND );
+ NULL, _("_Cancel"), NULL, _("D_elete"), NULL, NULL,
+ ALERTFOCUS_SECOND );
if( aval != G_ALERTALTERNATE ) {
goto thaw_ret;
}
"results and addresses in '%s'?" ),
obj->name );
aval = alertpanel( _("Delete"), message,
- _("_Cancel"), _("D_elete"), NULL, ALERTFOCUS_SECOND );
+ NULL, _("_Cancel"), NULL, _("D_elete"), NULL, NULL,
+ ALERTFOCUS_SECOND );
g_free(message);
if( aval == G_ALERTALTERNATE ) {
delType = ADDRTREE_DEL_FOLDER_ADDR;
"If you delete the folder only, the addresses it contains will be moved into the parent folder." ),
obj->name );
aval = alertpanel( _("Delete folder"), message,
- _("_Cancel"), _("Delete _folder only"), _("Delete folder and _addresses"), ALERTFOCUS_SECOND);
+ NULL, _("_Cancel"), NULL, _("Delete _folder only"),
+ NULL, _("Delete folder and _addresses"), ALERTFOCUS_SECOND);
g_free(message);
if( aval == G_ALERTALTERNATE ) {
delType = ADDRTREE_DEL_FOLDER_ONLY;
else if( obj->type == ADDR_ITEM_GROUP ) {
message = g_strdup_printf(_("Do you want to delete '%s'?\n"
"The addresses it contains will not be lost."), obj->name);
- aval = alertpanel(_("Delete"), message, _("_Cancel"),
- _("D_elete"), NULL, ALERTFOCUS_SECOND);
+ aval = alertpanel(_("Delete"), message, NULL, _("_Cancel"),
+ NULL, _("D_elete"), NULL, NULL, ALERTFOCUS_SECOND);
g_free(message);
if( aval == G_ALERTALTERNATE ) delType = ADDRTREE_DEL_FOLDER_ONLY;
} else {
message = g_strdup_printf(_("Do you want to delete '%s'?\n"
"The addresses it contains will be lost."), obj->name);
- aval = alertpanel(_("Delete"), message, _("_Cancel"),
- _("D_elete"), NULL, ALERTFOCUS_SECOND);
+ aval = alertpanel(_("Delete"), message, NULL, _("_Cancel"),
+ NULL, _("D_elete"), NULL, NULL, ALERTFOCUS_SECOND);
g_free(message);
if( aval == G_ALERTALTERNATE ) delType = ADDRTREE_DEL_DATA;
}
if (server->retVal != LDAPRC_SUCCESS) {
alertpanel( _("Add address(es)"),
addressbook_err2string(_lutErrorsLDAP_, server->retVal),
- _("_Close"), NULL, NULL, ALERTFOCUS_FIRST );
+ "window-close", _("_Close"), NULL, NULL, NULL, NULL,
+ ALERTFOCUS_FIRST );
server->retVal = LDAPRC_SUCCESS;
return;
}
if (server->retVal != LDAPRC_SUCCESS) {
alertpanel( _("Add address(es)"),
addressbook_err2string(_lutErrorsLDAP_, server->retVal),
- _("_Close"), NULL, NULL, ALERTFOCUS_FIRST );
+ "window-close", _("_Close"), NULL, NULL, NULL, NULL, ALERTFOCUS_FIRST );
return;
}
}
}
}
}
- if( errFlag ) {
+ if (errFlag) {
debug_print( "Error\n%s\n", msg );
alertpanel_full(_("Addressbook conversion error"), msg,
- _("_Close"), NULL, NULL, ALERTFOCUS_FIRST, FALSE,
- NULL, ALERT_ERROR);
- }
- else if( msg ) {
+ "window-close", _("_Close"), NULL, NULL, NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_ERROR);
+ } else if (msg) {
debug_print( "Warning\n%s\n", msg );
alertpanel_full(_("Addressbook conversion error"), msg,
- _("_Close"), NULL, NULL, ALERTFOCUS_FIRST, FALSE,
- NULL, ALERT_WARNING);
+ "window-close", _("_Close"), NULL, NULL, NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
}
return retVal;
addrindex_print_index( addrIndex, stdout );
alertpanel_full(_("Addressbook Error"),
_("Could not read address index"),
- _("_Close"), NULL, NULL, ALERTFOCUS_FIRST, FALSE,
- NULL, ALERT_ERROR);
+ "window-close", _("_Close"), NULL, NULL, NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_ERROR);
}
debug_print( "done.\n" );
}
/*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001-2019 the Claws Mail team and Match Grun
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 2001-2022 the Claws Mail team and Match Grun
*
* 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
gtk_container_add( GTK_CONTAINER(tree_win), view );
/* Button panel */
- gtkut_stock_button_set_create( &hbbox, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL );
+ gtkut_stock_button_set_create( &hbbox, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL );
gtk_box_pack_end( GTK_BOX(vbox), hbbox, FALSE, FALSE, 0 );
gtk_container_set_border_width( GTK_CONTAINER(hbbox), 0 );
gtk_widget_grab_default( ok_btn );
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2002-2020 the Claws Mail team and Match Grun
+ * Copyright (C) 2002-2022 the Claws Mail team and Match Grun
*
* 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
gtk_box_pack_start(GTK_BOX(hsbox), statusbar, TRUE, TRUE, 0);
/* Button panel */
- gtkut_stock_button_set_create(&hbbox, &btnCancel, _("_Cancel"),
- &btnOk, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &btnCancel, NULL, _("_Cancel"),
+ &btnOk, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
/* Signal handlers */
/*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001-2019 the Claws Mail team and Match Grun
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 2001-2022 the Claws Mail team and Match Grun
*
* 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
if( abf->retVal != LDAPRC_SUCCESS ) {
alertpanel( _("Address(es) update"),
_("Update failed. Changes not written to Directory."),
- _("_Close"), NULL, NULL, ALERTFOCUS_FIRST );
+ "window-close", _("_Close"), NULL, NULL,
+ NULL, NULL, ALERTFOCUS_FIRST );
}
else {
abf->retVal = MGU_SUCCESS;
/* Test for read only */
if( ds->interface->readOnly ) {
- alertpanel( _("Merge addresses"),
- _("This address data is read-only and cannot be deleted."),
- _("_Close"), NULL, NULL, ALERTFOCUS_FIRST );
+ alertpanel(_("Merge addresses"),
+ _("This address data is read-only and cannot be deleted."),
+ "window-close", _("_Close"), NULL, NULL, NULL, NULL,
+ ALERTFOCUS_FIRST );
return;
}
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
static void alertpanel_show (void);
static void alertpanel_create (const gchar *title,
const gchar *message,
+ const gchar *stock_icon1,
const gchar *button1_label,
+ const gchar *stock_icon2,
const gchar *button2_label,
+ const gchar *stock_icon3,
const gchar *button3_label,
AlertFocus focus,
gboolean can_disable,
AlertValue alertpanel_with_widget(const gchar *title,
const gchar *message,
+ const gchar *stock_icon1,
const gchar *button1_label,
+ const gchar *stock_icon2,
const gchar *button2_label,
+ const gchar *stock_icon3,
const gchar *button3_label,
AlertFocus focus,
gboolean can_disable,
GtkWidget *widget)
{
- return alertpanel_full(title, message, button1_label,
- button2_label, button3_label, focus,
- can_disable, widget, ALERT_QUESTION);
+ return alertpanel_full(title, message, NULL, button1_label,
+ NULL, button2_label, NULL, button3_label,
+ focus, can_disable, widget, ALERT_QUESTION);
}
AlertValue alertpanel_full(const gchar *title, const gchar *message,
+ const gchar *stock_icon1,
const gchar *button1_label,
+ const gchar *stock_icon2,
const gchar *button2_label,
+ const gchar *stock_icon3,
const gchar *button3_label,
- AlertFocus focus,
+ AlertFocus focus,
gboolean can_disable,
GtkWidget *widget,
AlertType alert_type)
alertpanel_is_open = TRUE;
hooks_invoke(ALERTPANEL_OPENED_HOOKLIST, &alertpanel_is_open);
}
- alertpanel_create(title, message, button1_label, button2_label,
- button3_label, focus, can_disable, widget, alert_type);
+ alertpanel_create(title, message, stock_icon1, button1_label, stock_icon2,
+ button2_label, stock_icon3, button3_label, focus,
+ can_disable, widget, alert_type);
alertpanel_show();
debug_print("return value = %d\n", value);
AlertValue alertpanel(const gchar *title,
const gchar *message,
+ const gchar *stock_icon1,
const gchar *button1_label,
+ const gchar *stock_icon2,
const gchar *button2_label,
+ const gchar *stock_icon3,
const gchar *button3_label,
- AlertFocus focus)
+ AlertFocus focus)
{
- return alertpanel_full(title, message, button1_label, button2_label,
- button3_label, focus, FALSE, NULL, ALERT_QUESTION);
+ return alertpanel_full(title, message, stock_icon1, button1_label, stock_icon2, button2_label,
+ stock_icon3, button3_label, focus, FALSE, NULL, ALERT_QUESTION);
}
static void alertpanel_message(const gchar *title, const gchar *message, gint type)
hooks_invoke(ALERTPANEL_OPENED_HOOKLIST, &alertpanel_is_open);
}
- alertpanel_create(title, message, _("_Close"), NULL, NULL,
+ alertpanel_create(title, message, NULL, _("_Close"), NULL, NULL, NULL, NULL,
ALERTFOCUS_FIRST, FALSE, NULL, type);
alertpanel_show();
}
if (mainwin && mainwin->logwin) {
mainwindow_clear_error(mainwin);
- val = alertpanel_full(_("Error"), buf, _("_Close"),
- _("_View log"), NULL, ALERTFOCUS_FIRST, FALSE, NULL,
- ALERT_ERROR);
+ val = alertpanel_full(_("Error"), buf, NULL, _("_Close"), NULL,
+ _("_View log"), NULL, NULL, ALERTFOCUS_FIRST,
+ FALSE, NULL, ALERT_ERROR);
if (val == G_ALERTALTERNATE)
log_window_show(mainwin->logwin);
} else
static void alertpanel_create(const gchar *title,
const gchar *message,
+ const gchar *stock_icon1,
const gchar *button1_label,
+ const gchar *stock_icon2,
const gchar *button2_label,
+ const gchar *stock_icon3,
const gchar *button3_label,
AlertFocus focus,
gboolean can_disable,
label3 = button3_label;
gtkut_stock_button_set_create(&confirm_area,
- &button1, button1_label,
- button2_label ? &button2 : NULL, label2,
- button3_label ? &button3 : NULL, label3);
+ &button1, stock_icon1, button1_label,
+ button2_label ? &button2 : NULL, stock_icon2, label2,
+ button3_label ? &button3 : NULL, stock_icon3, label3);
gtk_box_pack_end(GTK_BOX(vbox), confirm_area, FALSE, FALSE, 0);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2017 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
#define ALERTPANEL_OPENED_HOOKLIST "alertpanel_opened_hooklist"
AlertValue alertpanel_full(const gchar *title, const gchar *message,
+ const gchar *stock_icon1,
const gchar *button1_label,
+ const gchar *stock_icon2,
const gchar *button2_label,
+ const gchar *stock_icon3,
const gchar *button3_label,
AlertFocus focus,
gboolean can_disable,
AlertValue alertpanel (const gchar *title,
const gchar *message,
+ const gchar *stock_icon1,
const gchar *button1_label,
+ const gchar *stock_icon2,
const gchar *button2_label,
+ const gchar *stock_icon3,
const gchar *button3_label,
AlertFocus focus);
-AlertValue alertpanel_with_widget (const gchar *title,
- const gchar *message,
- const gchar *button1_label,
- const gchar *button2_label,
- const gchar *button3_label,
- AlertFocus focus,
- gboolean can_disable,
- GtkWidget *widget);
+AlertValue alertpanel_with_widget(const gchar *title,
+ const gchar *message,
+ const gchar *stock_icon1,
+ const gchar *button1_label,
+ const gchar *stock_icon2,
+ const gchar *button2_label,
+ const gchar *stock_icon3,
+ const gchar *button3_label,
+ AlertFocus focus,
+ gboolean can_disable,
+ GtkWidget *widget);
void alertpanel_notice (const gchar *format,
...) G_GNUC_PRINTF(1, 2);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2003-2019 Match Grun and the Claws Mail team
+ * Copyright (C) 2003-2022 Match Grun 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
gtk_container_add( GTK_CONTAINER(tree_win), view );
/* Button panel */
- gtkut_stock_button_set_create(&hbbox, &close_btn, _("_Close"),
- NULL, NULL, NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &close_btn, "window-close", _("_Close"),
+ NULL, NULL, NULL, NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
gtk_container_set_border_width( GTK_CONTAINER(hbbox), 0 );
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
msg = g_strdup_printf(_("You are about to insert a file of %s "
"in the message body. Are you sure you want to do that?"),
to_human_readable(size));
- aval = alertpanel_full(_("Are you sure?"), msg, _("_Cancel"),
- _("_Insert"), NULL, ALERTFOCUS_SECOND, TRUE,
+ aval = alertpanel_full(_("Are you sure?"), msg, NULL, _("_Cancel"),
+ NULL, _("_Insert"), NULL, NULL, ALERTFOCUS_SECOND, TRUE,
NULL, ALERT_QUESTION);
g_free(msg);
if (size == 0 && !compose->batch) {
gchar * msg = g_strdup_printf(_("File %s is empty."), filename);
AlertValue aval = alertpanel_full(_("Empty file"), msg,
- _("_Cancel"), _("_Attach anyway"), NULL,
- ALERTFOCUS_SECOND, FALSE, NULL, ALERT_WARNING);
+ NULL, _("_Cancel"), NULL, _("_Attach anyway"),
+ NULL, NULL, ALERTFOCUS_SECOND, FALSE, NULL, ALERT_WARNING);
g_free(msg);
if (aval != G_ALERTALTERNATE) {
prefs_common_translated_header_name("Cc"));
aval = alertpanel(_("Send"),
text,
- _("_Cancel"), _("_Send"), NULL, ALERTFOCUS_SECOND);
+ NULL, _("_Cancel"), NULL, _("_Send"), NULL, NULL, ALERTFOCUS_SECOND);
g_free(text);
if (aval != G_ALERTALTERNATE)
return FALSE;
prefs_common_translated_header_name("Bcc"));
aval = alertpanel(_("Send"),
text,
- _("_Cancel"), _("_Send"), NULL, ALERTFOCUS_SECOND);
+ NULL, _("_Cancel"), NULL, _("_Send"), NULL, NULL, ALERTFOCUS_SECOND);
g_free(text);
if (aval != G_ALERTALTERNATE)
return FALSE;
_("Queue it anyway?"));
aval = alertpanel_full(compose->sending?_("Send"):_("Send later"), message,
- _("_Cancel"), compose->sending?_("_Send"):_("_Queue"), NULL,
- ALERTFOCUS_FIRST, TRUE, NULL, ALERT_QUESTION);
+ NULL, _("_Cancel"), NULL, compose->sending?_("_Send"):_("_Queue"),
+ NULL, NULL, ALERTFOCUS_FIRST, TRUE, NULL, ALERT_QUESTION);
g_free(message);
if (aval & G_ALERTDISABLE) {
aval &= ~G_ALERTDISABLE;
_("Queue it anyway?"));
aval = alertpanel_full(compose->sending?_("Send"):_("Send later"), message,
- _("_Cancel"), compose->sending?_("_Send"):_("_Queue"), NULL,
- ALERTFOCUS_FIRST, TRUE, NULL, ALERT_QUESTION);
+ NULL, _("_Cancel"), NULL, compose->sending?_("_Send"):_("_Queue"),
+ NULL, NULL, ALERTFOCUS_FIRST, TRUE, NULL, ALERT_QUESTION);
g_free(message);
if (aval & G_ALERTDISABLE) {
aval &= ~G_ALERTDISABLE;
msg = g_strdup_printf(_("Can't convert the character encoding of the message \n"
"to the specified %s charset.\n"
"Send it as %s?"), out_codeset, src_codeset);
- aval = alertpanel_full(_("Error"), msg, _("_Cancel"),
- _("_Send"), NULL, ALERTFOCUS_SECOND, FALSE,
- NULL, ALERT_ERROR);
+ aval = alertpanel_full(_("Error"), msg, NULL, _("_Cancel"),
+ NULL, _("_Send"), NULL, NULL, ALERTFOCUS_SECOND, FALSE,
+ NULL, ALERT_ERROR);
g_free(msg);
if (aval != G_ALERTALTERNATE) {
"The contents of the message might be broken on the way to the delivery.\n"
"\n"
"Send it anyway?"), line + 1);
- aval = alertpanel(_("Warning"), msg, _("_Cancel"), _("_OK"), NULL,
- ALERTFOCUS_FIRST);
+ aval = alertpanel(_("Warning"), msg, NULL, _("_Cancel"), NULL, _("_OK"),
+ NULL, NULL, ALERTFOCUS_FIRST);
g_free(msg);
if (aval != G_ALERTALTERNATE) {
g_free(buf);
return TRUE;
val = alertpanel_full(_("Encryption warning"), warning,
- _("_Cancel"), _("C_ontinue"), NULL, ALERTFOCUS_SECOND,
- TRUE, NULL, ALERT_WARNING);
+ NULL, _("_Cancel"), NULL, _("C_ontinue"), NULL, NULL,
+ ALERTFOCUS_SECOND, TRUE, NULL, ALERT_WARNING);
if (val & G_ALERTDISABLE) {
val &= ~G_ALERTDISABLE;
if (val == G_ALERTALTERNATE)
if (!is_file_exist(ainfo->file)) {
gchar *msg = g_strdup_printf(_("Attachment %s doesn't exist anymore. Ignore?"), ainfo->file);
AlertValue val = alertpanel_full(_("Warning"), msg,
- _("Cancel sending"), _("Ignore attachment"), NULL,
- ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
+ NULL, _("Cancel sending"),
+ NULL, _("Ignore attachment"), NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
g_free(msg);
if (val == G_ALERTDEFAULT) {
return -1;
SET_LABEL_AND_ENTRY(_("Path"), path_entry, 2);
SET_LABEL_AND_ENTRY(_("File name"), filename_entry, 3);
- gtkut_stock_button_set_create(&hbbox, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_btn);
(_("The external editor is still working.\n"
"Force terminating the process?\n"
"process id: %" G_PID_FORMAT), pid);
- val = alertpanel_full(_("Notice"), msg, _("_No"), _("_Yes"),
- NULL, ALERTFOCUS_FIRST, FALSE, NULL,
+ val = alertpanel_full(_("Notice"), msg, NULL, _("_No"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE, NULL,
ALERT_WARNING);
g_free(msg);
AlertValue val;
gtkut_window_popup(compose->window);
val = alertpanel_full(_("Could not save draft"),
- _("Could not save draft.\n"
- "Do you want to cancel exit or discard this email?"),
- _("_Cancel exit"), _("_Discard email"), NULL, ALERTFOCUS_FIRST,
- FALSE, NULL, ALERT_QUESTION);
+ _("Could not save draft.\n"
+ "Do you want to cancel exit or discard this email?"),
+ NULL, _("_Cancel exit"), NULL, _("_Discard email"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE, NULL, ALERT_QUESTION);
if (val == G_ALERTALTERNATE) {
lock = FALSE;
g_mutex_unlock(&compose->mutex); /* must be done before closing */
if (!reedit || compose->folder->stype == F_DRAFT) {
val = alertpanel(_("Discard message"),
_("This message has been modified. Discard it?"),
- _("_Discard"), _("_Save to Drafts"), _("_Cancel"),
+ NULL, _("_Discard"), NULL, _("_Save to Drafts"), NULL, _("_Cancel"),
ALERTFOCUS_FIRST);
} else {
val = alertpanel(_("Save changes"),
_("This message has been modified. Save the latest changes?"),
- _("_Don't save"), _("_Save to Drafts"), _("_Cancel"),
+ NULL, _("_Don't save"), NULL, _("_Save to Drafts"), NULL, _("_Cancel"),
ALERTFOCUS_SECOND);
}
g_mutex_unlock(&compose->mutex);
msg = g_strdup_printf(_("Do you want to apply the template '%s'?"),
tmpl->name);
val = alertpanel(_("Apply template"), msg,
- _("_Replace"), _("_Insert"), _("_Cancel"), ALERTFOCUS_FIRST);
+ NULL, _("_Replace"), NULL, _("_Insert"), NULL, _("_Cancel"),
+ ALERTFOCUS_FIRST);
g_free(msg);
if (val == G_ALERTDEFAULT)
num_files),
num_files);
val = alertpanel_full(_("Insert or attach?"), msg,
- _("_Cancel"), _("_Insert"), _("_Attach"),
- ALERTFOCUS_SECOND,
- TRUE, NULL, ALERT_QUESTION);
+ NULL, _("_Cancel"), NULL, _("_Insert"), NULL, _("_Attach"),
+ ALERTFOCUS_SECOND, TRUE, NULL, ALERT_QUESTION);
g_free(msg);
break;
case COMPOSE_DND_INSERT:
"want to continue?"),
g_slist_length(msginfo_list));
if (g_slist_length(msginfo_list) > 9
- && alertpanel(_("Warning"), msg, _("_Cancel"), _("_Yes"), NULL,
- ALERTFOCUS_SECOND) != G_ALERTALTERNATE) {
+ && alertpanel(_("Warning"), msg, NULL, _("_Cancel"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_SECOND) != G_ALERTALTERNATE) {
g_free(msg);
return;
}
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
"Click OK to keep editing this contact.\n"
"Click Cancel to close without saving."),
#endif
- _("_Cancel"), _("_OK"), NULL, ALERTFOCUS_SECOND );
+ NULL, _("_Cancel"), NULL, _("_OK"), NULL, NULL, ALERTFOCUS_SECOND );
if( val == G_ALERTDEFAULT ) {
edit_person_cancel(widget, cancelled);
}
/* Button panel */
if (prefs_common.addressbook_use_editaddress_dialog)
- gtkut_stock_button_set_create(&hbbox, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
else
gtkut_stock_with_text_button_set_create(&hbbox,
- &cancel_btn, _("_Cancel"), _("Discard"),
- &ok_btn, _("_OK"), _("Apply"),
+ &cancel_btn, NULL, _("Discard"),
+ &ok_btn, NULL, _("Apply"),
NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vnbox), hbbox, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_btn);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001-2019 the Claws Mail team and Match Grun
+ * Copyright (C) 2001-2022 the Claws Mail team and Match Grun
*
* 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
gtk_box_pack_start(GTK_BOX(hsbox), statusbar, TRUE, TRUE, BORDER_WIDTH);
/* Button panel */
- gtkut_stock_button_set_create(&hbbox, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
gtk_container_set_border_width( GTK_CONTAINER(hbbox), 0 );
gtk_widget_grab_default(ok_btn);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
gtk_box_pack_start(GTK_BOX(hsbox), statusbar, TRUE, TRUE, BORDER_WIDTH);
/* Button panel */
- gtkut_stock_button_set_create(&hbbox, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_btn);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001-2019 the Claws Mail team and Match Grun
+ * Copyright (C) 2001-2022 the Claws Mail team and Match Grun
*
* 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
gtk_box_pack_start(GTK_BOX(hsbox), statusbar, TRUE, TRUE, BORDER_WIDTH);
/* Button panel */
- gtkut_stock_button_set_create(&hbbox, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
gtk_container_set_border_width( GTK_CONTAINER(hbbox), 0 );
gtk_widget_grab_default(ok_btn);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001-2021 the Claws Mail team and Match Grun
+ * Copyright (C) 2001-2022 the Claws Mail team and Match Grun
*
* 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
gtk_box_pack_start(GTK_BOX(hsbox), statusbar, TRUE, TRUE, BORDER_WIDTH);
/* Button panel */
- gtkut_stock_button_set_create(&hbbox, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_btn);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001-2019 the Claws Mail team and Match Grun
+ * Copyright (C) 2001-2022 the Claws Mail team and Match Grun
*
* 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
gtk_box_pack_start(GTK_BOX(hsbox), statusbar, TRUE, TRUE, BORDER_WIDTH);
/* Button panel */
- gtkut_stock_button_set_create(&hbbox, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
gtk_container_set_border_width( GTK_CONTAINER(hbbox), 0 );
gtk_widget_grab_default(ok_btn);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2007-2021 Colin Leroy and The Claws Mail Team
+ * Copyright (C) 2007-2022 Colin Leroy 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
if (alertpanel(_("Delete tag"),
_("Do you really want to delete this tag?"),
- _("_Cancel"), _("D_elete"), NULL,
- ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
+ NULL, _("_Cancel"), NULL, _("D_elete"), NULL, NULL,
+ ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
return;
TAGS_WINDOW_LOCK();
if (alertpanel(_("Delete all tags"),
_("Do you really want to delete all tags?"),
- _("_Cancel"), _("D_elete"), NULL,
- ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
+ NULL, _("_Cancel"), NULL, _("D_elete"), NULL, NULL,
+ ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
return;
TAGS_WINDOW_LOCK();
CLAWS_SET_TIP(del_btn,
_("Delete the selected tag"));
- close_btn = gtk_button_new_with_mnemonic("_Close");
+ close_btn = gtkut_stock_button("window-close", _("_Close"));
gtk_box_pack_end(GTK_BOX(hbox1), close_btn, FALSE, FALSE, 0);
gtk_widget_show(new_tag_label);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001-2019 the Claws Mail team and Match Grun
+ * Copyright (C) 2001-2022 the Claws Mail team and Match Grun
*
* 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
gtk_box_pack_start(GTK_BOX(hsbox), statusbar, TRUE, TRUE, BORDER_WIDTH);
/* Button panel */
- gtkut_stock_button_set_create(&hbbox, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
gtk_container_set_border_width( GTK_CONTAINER(hbbox), 0 );
gtk_widget_grab_default(ok_btn);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2002-2019 Match Grun and the Claws Mail team
+ * Copyright (C) 2002-2022 Match Grun 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
"The HTML output directory '%s'\n" \
"does not exist. Do you want to create it?" ),
_exportCtl_->dirOutput );
- aval = alertpanel( _("Create directory" ),
- msg, _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST );
+ aval = alertpanel(_("Create directory" ),
+ msg, NULL, _("_No"), NULL, _("_Yes"), NULL, NULL,
+ ALERTFOCUS_FIRST );
g_free( msg );
if( aval != G_ALERTALTERNATE ) return FALSE;
"Could not create output directory for HTML file:\n%s" ),
reason );
aval = alertpanel_full(_("Failed to Create Directory"), msg,
- "window-close", NULL, NULL, ALERTFOCUS_FIRST, FALSE,
+ "window-close", _("_Close"), NULL, NULL,
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE,
NULL, ALERT_ERROR);
g_free( msg );
return FALSE;
GTK_NOTEBOOK(exphtml_dlg.notebook), PAGE_FINISH );
gtk_button_set_label(GTK_BUTTON(exphtml_dlg.btnCancel),
_("_Close"));
+ gtk_button_set_image(GTK_BUTTON(exphtml_dlg.btnCancel),
+ gtk_image_new_from_icon_name("window-close", GTK_ICON_SIZE_BUTTON));
+
exp_html_finish_show();
exporthtml_save_settings( _exportCtl_ );
export_html_message();
gtk_box_pack_start(GTK_BOX(hsbox), statusbar, TRUE, TRUE, BORDER_WIDTH);
/* Button panel */
- gtkut_stock_button_set_create(&hbbox, &btnPrev, "go-previous",
- &btnNext, "go-next",
- &btnCancel, _("_Cancel"));
+ gtkut_stock_button_set_create(&hbbox, &btnPrev, "go-previous", _("_Previous"),
+ &btnNext, "go-next", _("_Next"),
+ &btnCancel, NULL, _("_Cancel"));
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
gtk_container_set_border_width(GTK_CONTAINER(hbbox), 2);
gtk_widget_grab_default(btnNext);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2003-2019 the Claws Mail team and Match Grun
+ * Copyright (C) 2003-2022 the Claws Mail team and Match Grun
*
* 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
"does not exist. OK to create new directory?" ),
_exportCtl_->dirOutput );
aval = alertpanel( _("Create Directory" ),
- msg, _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST );
+ msg, NULL, _("_No"), NULL, _("_Yes"), NULL, NULL, ALERTFOCUS_FIRST );
g_free( msg );
if( aval != G_ALERTALTERNATE ) return FALSE;
"Could not create output directory for LDIF file:\n%s" ),
reason );
aval = alertpanel_full(_("Failed to Create Directory"), msg,
- _("Close"), NULL, NULL, ALERTFOCUS_FIRST, FALSE,
- NULL, ALERT_ERROR);
+ NULL, _("Close"), NULL, NULL, NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_ERROR);
g_free( msg );
return FALSE;
}
"for an LDAP server. Are you sure you wish " \
"to proceed without a suffix?"
),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST );
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL, ALERTFOCUS_FIRST );
if( aval != G_ALERTALTERNATE ) {
gtk_widget_grab_focus( expldif_dlg.entrySuffix );
errFlag = TRUE;
GTK_NOTEBOOK(expldif_dlg.notebook), PAGE_FINISH );
gtk_button_set_label(GTK_BUTTON(expldif_dlg.btnCancel),
_("_Close"));
+ gtk_button_set_image(GTK_BUTTON(expldif_dlg.btnCancel),
+ gtk_image_new_from_icon_name("window-close", GTK_ICON_SIZE_BUTTON));
exp_ldif_finish_show();
exportldif_save_settings( _exportCtl_ );
export_ldif_message();
gtk_box_pack_start(GTK_BOX(hsbox), statusbar, TRUE, TRUE, BORDER_WIDTH);
/* Button panel */
- gtkut_stock_button_set_create(&hbbox, &btnPrev, "go-previous",
- &btnNext, "go-next",
- &btnCancel, _("_Cancel"));
+ gtkut_stock_button_set_create(&hbbox, &btnPrev, "go-previous", _("_Previous"),
+ &btnNext, "go-next", _("_Next"),
+ &btnCancel, NULL, _("_Cancel"));
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
gtk_container_set_border_width(GTK_CONTAINER(hbbox), 2);
gtk_widget_grab_default(btnNext);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2019 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
G_CALLBACK(export_filesel_cb), NULL);
gtkut_stock_button_set_create(&confirm_area,
- &cancel_button, _("_Cancel"),
- &ok_button, _("_OK"),
- NULL, NULL);
+ &cancel_button, NULL, _("_Cancel"),
+ &ok_button, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_button);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2013-2021 the Claws Mail team
+ * Copyright (C) 2013-2022 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
msg = g_strdup_printf
(_("The file %s is missing! "
"Do you want to use the backup file from %s?"), FOLDER_LIST,buf);
- aval = alertpanel(_("Warning"), msg, _("_No"), _("_Yes"), NULL,
- ALERTFOCUS_FIRST);
+ aval = alertpanel(_("Warning"), msg, NULL, _("_No"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_FIRST);
g_free(msg);
if (aval != G_ALERTALTERNATE)
return FALSE;
msg = g_strdup_printf
(_("The file %s is empty or corrupted! "
"Do you want to use the backup file from %s?"), FOLDER_LIST,buf);
- aval = alertpanel(_("Warning"), msg, _("_No"), _("_Yes"), NULL,
- ALERTFOCUS_FIRST);
+ aval = alertpanel(_("Warning"), msg, NULL, _("_No"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_FIRST);
g_free(msg);
if (aval != G_ALERTALTERNATE)
return FALSE;
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
gtk_box_pack_start(GTK_BOX(vbox), statusbar, FALSE, FALSE, 0);
gtkut_stock_button_set_create(&confirm_area,
- &new_button, _("_New"),
- &cancel_button, _("_Cancel"),
- &ok_button, _("_OK"));
+ &new_button, NULL, _("_New"),
+ &cancel_button, NULL, _("_Cancel"),
+ &ok_button, NULL, _("_OK"));
gtk_box_pack_end(GTK_BOX(vbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_button);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
}
if (prefs_common.ask_mark_all_read) {
val = alertpanel_full(title, message,
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST,
- TRUE, NULL, ALERT_QUESTION);
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL,
+ ALERTFOCUS_FIRST, TRUE, NULL, ALERT_QUESTION);
if ((val & ~G_ALERTDISABLE) != G_ALERTALTERNATE)
return;
alertpanel_full(_("Rebuild folder tree"),
_("Rebuilding the folder tree will remove "
"local caches. Do you want to continue?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST,
- FALSE, NULL, ALERT_WARNING)
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING)
!= G_ALERTALTERNATE) {
return;
}
if (prefs_common.ask_on_clean) {
if (alertpanel(_("Empty trash"),
_("Delete all messages in trash?"),
- _("_Cancel"), _("_Empty trash"), NULL,
+ NULL, _("_Cancel"), NULL, _("_Empty trash"), NULL, NULL,
ALERTFOCUS_SECOND) != G_ALERTALTERNATE)
return;
}
if (prefs_common.work_offline)
if (alertpanel(_("Offline warning"),
_("You're working offline. Override?"),
- _("_No"), _("_Yes"),
- NULL, ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
+ NULL, _("_No"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
return;
/* ask for confirmation before sending queued messages only
if (!prefs_common.work_offline) {
if (alertpanel(_("Send queued messages"),
_("Send all queued messages?"),
- _("_Cancel"), _("_Send"),
- NULL, ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
+ NULL, _("_Cancel"), NULL, _("_Send"),
+ NULL, NULL, ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
return;
}
}
_("Do you really want to make folder '%s' a subfolder of '%s'?"),
from_folder->name, to_folder->name);
status = alertpanel_full(copy ? _("Copy folder"):_("Move folder"), buf,
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST,
- TRUE, NULL, ALERT_QUESTION);
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL,
+ ALERTFOCUS_FIRST, TRUE, NULL, ALERT_QUESTION);
g_free(buf);
if ((status & ~G_ALERTDISABLE) != G_ALERTALTERNATE)
gtk_grid_attach(GTK_GRID(grid1), notebook, 0, row, 2, 1);
row++;
- gtkut_stock_button_set_create(&confirm_area, &close_button, _("_Close"),
- NULL, NULL, NULL, NULL);
+ gtkut_stock_button_set_create(&confirm_area, &close_button, "window-close", _("_Close"),
+ NULL, NULL, NULL, NULL, NULL, NULL);
gtk_grid_attach(GTK_GRID(grid1), confirm_area, 0, row, 2, 1);
row++;
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2019 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
g_free(max_width);
width += 100;
- gtkut_stock_button_set_create(&hbbox, &close_btn, _("_Close"),
- NULL, NULL, NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &close_btn, "window-close", _("_Close"),
+ NULL, NULL, NULL, NULL, NULL, NULL);
vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, VSPACING_NARROW);
gtk_container_add(GTK_CONTAINER(dwindow->window), vbox);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2004-2021 the Claws Mail Team
+ * Copyright (C) 2004-2022 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
gtk_widget_show(vbox);
gtk_container_add(GTK_CONTAINER(window), vbox);
- gtkut_stock_button_set_create(&confirm_area, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&confirm_area, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_widget_show(confirm_area);
gtk_box_pack_end(GTK_BOX(vbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_focus(ok_btn);
void gtkut_stock_button_set_create_with_help(GtkWidget **bbox,
GtkWidget **help_button,
- GtkWidget **button1, const gchar *label1,
- GtkWidget **button2, const gchar *label2,
- GtkWidget **button3, const gchar *label3)
+ GtkWidget **button1, const gchar *stock_icon1, const gchar *label1,
+ GtkWidget **button2, const gchar *stock_icon2, const gchar *label2,
+ GtkWidget **button3, const gchar *stock_icon3, const gchar *label3)
{
cm_return_if_fail(bbox != NULL);
cm_return_if_fail(button1 != NULL);
- gtkut_stock_button_set_create(bbox, button1, label1,
- button2, label2, button3, label3);
+ gtkut_stock_button_set_create(bbox, button1, stock_icon1, label1,
+ button2, stock_icon2, label2, button3, stock_icon3, label3);
gtkut_stock_button_add_help(*bbox, help_button);
}
void gtkut_stock_button_set_create(GtkWidget **bbox,
- GtkWidget **button1, const gchar *label1,
- GtkWidget **button2, const gchar *label2,
- GtkWidget **button3, const gchar *label3)
+ GtkWidget **button1, const gchar *stock_icon1, const gchar *label1,
+ GtkWidget **button2, const gchar *stock_icon2, const gchar *label2,
+ GtkWidget **button3, const gchar *stock_icon3, const gchar *label3)
{
cm_return_if_fail(bbox != NULL);
cm_return_if_fail(button1 != NULL);
gtk_box_set_spacing(GTK_BOX(*bbox), 5);
*button1 = gtk_button_new_with_mnemonic(label1);
+ gtk_button_set_image(GTK_BUTTON(*button1),
+ gtk_image_new_from_icon_name(stock_icon1, GTK_ICON_SIZE_BUTTON));
gtk_widget_set_can_default(*button1, TRUE);
gtk_box_pack_start(GTK_BOX(*bbox), *button1, TRUE, TRUE, 0);
gtk_widget_show(*button1);
if (button2) {
*button2 = gtk_button_new_with_mnemonic(label2);
+ gtk_button_set_image(GTK_BUTTON(*button2),
+ gtk_image_new_from_icon_name(stock_icon2, GTK_ICON_SIZE_BUTTON));
gtk_widget_set_can_default(*button2, TRUE);
gtk_box_pack_start(GTK_BOX(*bbox), *button2, TRUE, TRUE, 0);
gtk_widget_show(*button2);
if (button3) {
*button3 = gtk_button_new_with_mnemonic(label3);
+ gtk_button_set_image(GTK_BUTTON(*button3),
+ gtk_image_new_from_icon_name(stock_icon3, GTK_ICON_SIZE_BUTTON));
gtk_widget_set_can_default(*button3, TRUE);
gtk_box_pack_start(GTK_BOX(*bbox), *button3, TRUE, TRUE, 0);
gtk_widget_show(*button3);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
void gtkut_stock_button_set_create_with_help(GtkWidget **bbox,
GtkWidget **help_button,
- GtkWidget **button1, const gchar *label1,
- GtkWidget **button2, const gchar *label2,
- GtkWidget **button3, const gchar *label3);
+ GtkWidget **button1, const gchar *stock_icon1, const gchar *label1,
+ GtkWidget **button2, const gchar *stock_icon2, const gchar *label2,
+ GtkWidget **button3, const gchar *stock_icon3, const gchar *label3);
void gtkut_stock_button_set_create (GtkWidget **bbox,
GtkWidget **button1,
+ const gchar *stock_icon1,
const gchar *label1,
GtkWidget **button2,
+ const gchar *stock_icon2,
const gchar *label2,
GtkWidget **button3,
+ const gchar *stock_icon3,
const gchar *label3);
void gtkut_stock_with_text_button_set_create(GtkWidget **bbox,
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2005-2019 Paul Mangan and the Claws Mail team
+ * Copyright (C) 2005-2022 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
gtk_container_add(GTK_CONTAINER(scrolledwindow), GTK_WIDGET(table));
- gtkut_stock_button_set_create(&confirm_area, &close_button, _("_Close"),
- NULL, NULL, NULL, NULL);
+ gtkut_stock_button_set_create(&confirm_area, &close_button, "window-close", _("_Close"),
+ NULL, NULL, NULL, NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), confirm_area, FALSE, FALSE, 4);
gtk_widget_grab_default(close_button);
g_signal_connect_closure
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2019 the Claws Mail Team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail Team and Hiroyuki Yamamoto
*
* 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
gtk_widget_grab_focus(GTK_WIDGET(plugin_list_view));
gtkut_stock_button_set_create(&hbuttonbox1,
- &load_btn, _("_Load..."),
- &unload_btn, _("_Unload"),
- NULL, NULL);
+ &load_btn, NULL, _("_Load..."),
+ &unload_btn, NULL, _("_Unload"),
+ NULL, NULL, NULL);
gtk_widget_show(hbuttonbox1);
gtk_box_pack_start(GTK_BOX(vbox3), hbuttonbox1, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(vbox1), hbox_info, FALSE, FALSE, 0);
gtkut_stock_button_set_create_with_help(&hbuttonbox2, &help_btn,
- &close_btn, _("_Close"),
- NULL, NULL, NULL, NULL);
+ &close_btn, "window-close", _("_Close"),
+ NULL, NULL, NULL, NULL, NULL, NULL);
gtk_box_set_spacing(GTK_BOX(hbuttonbox2), 6);
gtk_widget_show(hbuttonbox2);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail Team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail Team and Hiroyuki Yamamoto
*
* 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
#ifndef GENERIC_UMPC
gtkut_stock_button_set_create(&prefswindow->confirm_area,
- &prefswindow->apply_btn, _("_Apply"),
- &prefswindow->cancel_btn, _("_Cancel"),
- &prefswindow->ok_btn, _("_OK"));
+ &prefswindow->apply_btn, NULL, _("_Apply"),
+ &prefswindow->cancel_btn, NULL, _("_Cancel"),
+ &prefswindow->ok_btn, NULL, _("_OK"));
#else
gtkut_stock_button_set_create(&prefswindow->confirm_area,
- &prefswindow->apply_btn, _("_Apply"),
- &prefswindow->ok_btn, _("_Close"),
- NULL, NULL);
+ &prefswindow->apply_btn, NULL, _("_Apply"),
+ &prefswindow->ok_btn, "window-close", _("_Close"),
+ NULL, NULL, NULL);
#endif
gtk_widget_show_all(prefswindow->confirm_area);
gtk_widget_show(prefswindow->vbox);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Colin Leroy
+ * Copyright (C) 1999-2022 the Claws Mail team and Colin Leroy
*
* 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
gchar *buf;
buf = g_strdup_printf(_("TLS certificate for %s"), cert->host);
- alertpanel_full(buf, NULL, _("_Close"), NULL, NULL,
+ alertpanel_full(buf, NULL, "window-close", _("_Close"), NULL, NULL, NULL, NULL,
ALERTFOCUS_FIRST, FALSE, cert_widget, ALERT_NOTICE);
g_free(buf);
}
title = _("TLS certificate is unknown");
val = alertpanel_full(title, NULL,
- _("_Cancel connection"), _("_Accept and save"), NULL,
- ALERTFOCUS_FIRST, FALSE, vbox, ALERT_QUESTION);
+ NULL, _("_Cancel connection"), NULL, _("_Accept and save"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE, vbox, ALERT_QUESTION);
return (val == G_ALERTALTERNATE);
}
title = _("TLS certificate is expired");
val = alertpanel_full(title, NULL,
- _("_Cancel connection"), _("_Accept"), NULL,
- ALERTFOCUS_FIRST, FALSE, vbox, ALERT_QUESTION);
+ NULL, _("_Cancel connection"), NULL, _("_Accept"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE, vbox, ALERT_QUESTION);
return (val == G_ALERTALTERNATE);
}
else
title = _("TLS certificate changed");
val = alertpanel_full(title, NULL,
- _("_Cancel connection"), _("_Accept and save"), NULL,
- ALERTFOCUS_FIRST, FALSE, vbox2, ALERT_WARNING);
+ NULL, _("_Cancel connection"), NULL, _("_Accept and save"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE, vbox2, ALERT_WARNING);
return (val == G_ALERTALTERNATE);
}
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
"Do you want to continue connecting to this "
"server? The communication would not be "
"secure."),
- _("_Cancel"), _("Con_tinue connecting"), NULL,
- ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING) != G_ALERTALTERNATE)
+ NULL, _("_Cancel"), NULL, _("Con_tinue connecting"), NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING) != G_ALERTALTERNATE)
return NULL;
}
port = account->set_imapport ? account->imapport
/*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2019 the Claws Mail Team and Hiroyuki Yamamoto
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2022 the Claws Mail Team and Hiroyuki Yamamoto
*
* 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
"Recovery will not be possible.\n\n"
"Do you really want to delete?"), name);
avalue = alertpanel_full(_("Delete folder"), message,
- _("_Cancel"), _("_Delete"), NULL, ALERTFOCUS_FIRST, FALSE,
+ NULL, _("_Cancel"), "edit-delete", _("_Delete"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE,
NULL, ALERT_WARNING);
g_free(message);
if (avalue != G_ALERTALTERNATE) return;
G_CALLBACK(chk_update_val), &recurse);
avalue = alertpanel_full(_("Subscriptions"), message,
- _("_Cancel"), _("_Search"), NULL, ALERTFOCUS_SECOND,
+ NULL, _("_Cancel"), "edit-find", _("_Search"),
+ NULL, NULL, ALERTFOCUS_SECOND,
FALSE, rec_chk, ALERT_QUESTION);
g_free(message);
if (avalue != G_ALERTALTERNATE) return;
G_CALLBACK(chk_update_val), &recurse);
avalue = alertpanel_full(_("Subscriptions"), message,
- _("_Cancel"), action?_("_Subscribe"):_("_Unsubscribe"), NULL,
- ALERTFOCUS_SECOND, FALSE, rec_chk, ALERT_QUESTION);
+ NULL, _("_Cancel"), NULL, action?_("_Subscribe"):_("_Unsubscribe"),
+ NULL, NULL, ALERTFOCUS_SECOND, FALSE, rec_chk, ALERT_QUESTION);
g_free(message);
if (avalue != G_ALERTALTERNATE) return;
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2020 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
G_CALLBACK(import_destsel_cb), NULL);
gtkut_stock_button_set_create(&confirm_area,
- &cancel_button, _("_Cancel"),
- &ok_button, _("_OK"),
- NULL, NULL);
+ &cancel_button, NULL, _("_Cancel"),
+ &ok_button, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_button);
if (!*destdir) {
if (alertpanel(_("Import mbox file"),
_("Destination folder is not set.\nImport mbox file to the Inbox folder?"),
- _("_OK"), _("_Cancel"), NULL, ALERTFOCUS_FIRST)
+ NULL, _("_OK"), NULL, _("_Cancel"), NULL, NULL, ALERTFOCUS_FIRST)
== G_ALERTALTERNATE) {
gtk_widget_grab_focus(dest_entry);
return;
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001-2019 the Claws Mail team and Match Grun
+ * Copyright (C) 2001-2022 the Claws Mail team and Match Grun
*
* 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
GTK_NOTEBOOK(impldif_dlg.notebook), PAGE_FINISH );
gtk_button_set_label(GTK_BUTTON(impldif_dlg.btnCancel),
_("_Close"));
+ gtk_button_set_image(GTK_BUTTON(impldif_dlg.btnCancel),
+ gtk_image_new_from_icon_name("window-close", GTK_ICON_SIZE_BUTTON));
imp_ldif_finish_show();
}
}
/* Button panel */
gtkut_stock_button_set_create(&hbbox,
- &btnPrev, "go-previous",
- &btnNext, "go-next",
- &btnCancel, _("_Cancel"));
+ &btnPrev, "go-previous", _("_Previous"),
+ &btnNext, "go-next", _("_Next"),
+ &btnCancel, NULL, _("_Cancel"));
btnProceed = gtk_button_new_with_mnemonic(_("Proceed"));
gtk_widget_set_can_default(btnProceed, TRUE);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001-2019 the Claws Mail team and Match Grun
+ * Copyright (C) 2001-2022 the Claws Mail team and Match Grun
*
* 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
gtk_box_pack_start(GTK_BOX(hsbox), statusbar, TRUE, TRUE, BORDER_WIDTH);
/* Button panel */
- gtkut_stock_button_set_create(&hbbox, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
gtk_container_set_border_width( GTK_CONTAINER(hbbox), 5);
gtk_widget_grab_default(ok_btn);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2002-2019 the Claws Mail team and Match Grun
+ * Copyright (C) 2002-2022 the Claws Mail team and Match Grun
*
* 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
gtk_box_pack_start(GTK_BOX(hsbox), statusbar, TRUE, TRUE, BORDER_WIDTH);
/* Button panel */
- gtkut_stock_button_set_create(&hbbox, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
gtk_container_set_border_width( GTK_CONTAINER(hbbox), 5);
gtk_widget_grab_default(ok_btn);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
#include "defs.h"
#include <glib.h>
-#include <glib/gi18n.h>
+#include <glib/gi18n.h>NULL,
#include <gtk/gtk.h>
#include <stdio.h>
#include <unistd.h>
fin_msg);
gtk_button_set_label(GTK_BUTTON(inc_dialog->dialog->cancel_btn),
_("_Close"));
+ gtk_button_set_image(GTK_BUTTON(inc_dialog->dialog->cancel_btn),
+ gtk_image_new_from_icon_name("window-close", GTK_ICON_SIZE_BUTTON));
}
g_free(fin_msg);
"Do you want to continue connecting to this "
"server? The communication would not be "
"secure."),
- _("_Cancel"), _("Con_tinue connecting"), NULL,
- ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING) != G_ALERTALTERNATE)
+ NULL, _("_Cancel"), NULL, _("Con_tinue connecting"), NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING) != G_ALERTALTERNATE)
return INC_CANCEL;
}
#endif
answer = alertpanel(_("Offline warning"),
tmp,
- _("_No"), _("_Yes"),
- !force_ask? _("On_ly once"):NULL, ALERTFOCUS_SECOND);
+ NULL, _("_No"), NULL, _("_Yes"),
+ NULL, !force_ask? _("On_ly once"):NULL, ALERTFOCUS_SECOND);
g_free(tmp);
if (answer == G_ALERTALTERNATE) {
inc_offline_overridden_yes = time(NULL);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2020 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
G_CALLBACK(chk_update_val), &backup);
if (alertpanel_full(_("Migration of configuration"), message,
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_SECOND, FALSE,
- keep_backup_chk, ALERT_QUESTION) != G_ALERTALTERNATE) {
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL, ALERTFOCUS_SECOND,
+ FALSE, keep_backup_chk, ALERT_QUESTION) != G_ALERTALTERNATE) {
return FALSE;
}
if (prefs_common.warn_queued_on_exit && procmsg_have_queued_mails_fast()) {
if (alertpanel(_("Queued messages"),
_("Some unsent messages are queued. Exit now?"),
- _("_Cancel"), _("_OK"), NULL, ALERTFOCUS_FIRST)
+ NULL, _("_Cancel"), NULL, _("_OK"), NULL, NULL,
+ ALERTFOCUS_FIRST)
!= G_ALERTALTERNATE) {
main_window_popup(mainwin);
sc_exiting = FALSE;
/*
Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
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
if (for_quit)
val = alertpanel(_("Empty trash"),
_("Delete all messages in trash folders?"),
- _("_No"), _("_Yes"), _("Don't quit"),
+ NULL, _("_No"), NULL, _("_Yes"), NULL, _("Don't quit"),
ALERTFOCUS_SECOND);
else
val = alertpanel(_("Empty trash"),
_("Delete all messages in trash folders?"),
- _("_No"), _("_Yes"), NULL,
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL,
ALERTFOCUS_SECOND);
if (val == G_ALERTALTERNATE) {
debug_print("will empty trash\n");
if (prefs_common.confirm_on_exit) {
if (alertpanel(_("Exit"), _("Exit Claws Mail?"),
- _("_Cancel"), _("_Quit"), NULL, ALERTFOCUS_FIRST)
+ NULL, _("_Cancel"), NULL, _("_Quit"),
+ NULL, NULL, ALERTFOCUS_FIRST)
!= G_ALERTALTERNATE)
return;
manage_window_focus_in(mainwin->window, NULL, NULL);
if (offline_ask_sync && ask && alertpanel(_("Folder synchronisation"),
_("Do you want to synchronise your folders now?"),
- _("_Cancel"), _("_Synchronise"), NULL, ALERTFOCUS_SECOND) != G_ALERTALTERNATE)
+ NULL, _("_Cancel"), NULL, _("_Synchronise"), NULL, NULL,
+ ALERTFOCUS_SECOND) != G_ALERTALTERNATE)
return;
if (offline_ask_sync)
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2020 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
if (g_file_test(mbox, G_FILE_TEST_EXISTS) == TRUE) {
if (alertpanel_full(_("Overwrite mbox file"),
_("This file already exists. Do you want to overwrite it?"),
- _("_Cancel"), _("Overwrite"), NULL,
+ NULL, _("_Cancel"), NULL, _("Overwrite"), NULL, NULL,
ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING)
!= G_ALERTALTERNATE) {
return -2;
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
gtk_box_pack_start(GTK_BOX(confirm_area), next_btn, TRUE, TRUE, 0);
gtk_widget_show(next_btn);
- close_btn = gtk_button_new_with_mnemonic("_Close");
+ close_btn = gtkut_stock_button("window-close", _("_Close"));
gtk_widget_set_can_default(close_btn, TRUE);
gtk_box_pack_start(GTK_BOX(confirm_area), close_btn, TRUE, TRUE, 0);
gtk_widget_show(close_btn);
if (all_searched) {
alertpanel_full(_("Search failed"),
_("Search string not found."),
- _("_Close"), NULL, NULL, FALSE,
- ALERTFOCUS_FIRST, NULL, ALERT_WARNING);
+ "window-close", _("_Close"), NULL, NULL, NULL, NULL,
+ FALSE, ALERTFOCUS_FIRST, NULL, ALERT_WARNING);
break;
}
"continue from beginning?");
val = alertpanel(_("Search finished"), str,
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_SECOND);
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL,
+ ALERTFOCUS_SECOND);
if (G_ALERTALTERNATE == val) {
manage_window_focus_in(search_window.window,
NULL, NULL);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
"It is advised to not send the return receipt."),
to, buf);
val = alertpanel_full(_("Warning"), message,
- _("_Don't Send"), _("_Send"), NULL, ALERTFOCUS_FIRST, FALSE,
- NULL, ALERT_WARNING);
+ NULL, _("_Don't Send"), NULL, _("_Send"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE,
+ NULL, ALERT_WARNING);
g_free(message);
if (val != G_ALERTALTERNATE) {
g_free(buf);
prefs_common_translated_header_name("Cc"));
val = alertpanel_with_widget(
_("Return Receipt Notification"),
- text,
- _("_Cancel"), _("_Send Notification"), NULL,
- ALERTFOCUS_FIRST, FALSE, optmenu);
+ text, NULL, _("_Cancel"), NULL, _("_Send Notification"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE, optmenu);
g_free(tr);
g_free(text);
} else
"address that this message was sent to.\n"
"Please choose which account you want to "
"use for sending the receipt notification:"),
- _("_Cancel"), _("_Send Notification"), NULL,
- ALERTFOCUS_FIRST, FALSE, optmenu);
+ NULL, _("_Cancel"), NULL, _("_Send Notification"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE, optmenu);
if (val != G_ALERTALTERNATE)
return NULL;
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail Team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail Team and Hiroyuki Yamamoto
*
* 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
"Recovery will not be possible.\n\n"
"Do you really want to delete?"), name);
avalue = alertpanel_full(_("Delete folder"), message,
- _("_Cancel"), _("D_elete"), NULL, ALERTFOCUS_FIRST, FALSE,
+ NULL, _("_Cancel"), "edit-delete", _("D_elete"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE,
NULL, ALERT_WARNING);
g_free(message);
if (avalue != G_ALERTALTERNATE) return;
(_("Really remove the mailbox '%s'?\n"
"(The messages are NOT deleted from the disk)"), name);
avalue = alertpanel_full(_("Remove mailbox"), message,
- _("_Cancel"), "list-remove", NULL, ALERTFOCUS_FIRST, FALSE,
+ NULL, _("_Cancel"), "list-remove", _("_Remove"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE,
NULL, ALERT_WARNING);
g_free(message);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
res = g_strdup_printf(_("Overwrite existing file '%s'?"),
tmp);
g_free(tmp);
- aval = alertpanel(_("Overwrite"), res, _("_Cancel"),
- _("_OK"), NULL, ALERTFOCUS_FIRST);
+ aval = alertpanel(_("Overwrite"), res, NULL, _("_Cancel"),
+ NULL, _("_OK"), NULL, NULL, ALERTFOCUS_FIRST);
g_free(res);
if (G_ALERTALTERNATE != aval) return FALSE;
}
"Do you want to cancel operation or skip error and "
"continue?"), n);
AlertValue av = alertpanel_full(_("Error saving all message parts"),
- message, _("_Cancel"), _("Skip"), _("Skip all"),
+ message, NULL, _("_Cancel"), NULL, _("Skip"), NULL, _("Skip all"),
ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
g_free(message);
return av;
_("This attachment is an executable file. Executing "
"untrusted binaries is dangerous and could compromise "
"your computer.\n\n"
- "Do you want to run this file?"), _("_Cancel"),
- _("Run binary"),
- NULL, ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
+ "Do you want to run this file?"), NULL, _("_Cancel"),
+ NULL, _("Run binary"), NULL, NULL, ALERTFOCUS_FIRST,
+ FALSE, NULL, ALERT_WARNING);
if (val == G_ALERTALTERNATE) {
debug_print("executing binary\n");
ShellExecute(NULL, L"open", (LPCWSTR)fn16, NULL, NULL, SW_SHOW);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
"Do you want to continue connecting to this "
"server? The communication would not be "
"secure."),
- _("_Cancel"), _("Con_tinue connecting"), NULL,
- ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING) != G_ALERTALTERNATE)
+ NULL, _("_Cancel"), NULL, _("Con_tinue connecting"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING) != G_ALERTALTERNATE)
return NULL;
}
port = ac->set_nntpport ? ac->nntpport : NNTP_PORT;
/*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2019 the Claws Mail team and Hiroyuki Yamamoto
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
name = trim_string(item->path, 32);
message = g_strdup_printf(_("Really unsubscribe newsgroup '%s'?"), name);
avalue = alertpanel_full(_("Unsubscribe newsgroup"), message,
- _("_Cancel"), _("_Unsubscribe"), NULL,
+ NULL, _("_Cancel"), NULL, _("_Unsubscribe"), NULL, NULL,
ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
g_free(message);
g_free(name);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2019 Michael Rasmussen and the Claws Mail Team
+ * Copyright (C) 1999-2022 Michael Rasmussen 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
AlertValue aval;
aval = alertpanel_full(_("Creating archive"), msg,
- _("_Cancel"), _("_OK"), NULL, ALERTFOCUS_FIRST, FALSE,
- NULL, ALERT_WARNING);
+ NULL, _("_Cancel"), NULL, _("_OK"), NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
g_free(msg);
if (aval != G_ALERTALTERNATE)
return FALSE;
"\nContinue anyway?"),
orig_file, g_slist_length(list));
aval = alertpanel_full(_("Creating archive"), msg,
- _("_Cancel"), _("_OK"), NULL, ALERTFOCUS_FIRST, FALSE,
- NULL, ALERT_WARNING);
+ NULL, _("_Cancel"), NULL, _("_OK"), NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
g_free(msg);
if (aval != G_ALERTALTERNATE) {
archive_free_file_list(page->md5, page->rename);
/*
* att_remover -- for Claws Mail
*
- * Copyright (C) 2005=2019 Colin Leroy <colin@colino.net>
+ * Copyright (C) 2005-2022 Colin Leroy <colin@colino.net>
* and the Claws Mail Team
*
* Sylpheed is a GTK+ based, lightweight, and fast e-mail client
gtk_container_set_border_width(GTK_CONTAINER(scrollwin), 4);
gtk_box_pack_start(GTK_BOX(vbox), scrollwin, TRUE, TRUE, 0);
- gtkut_stock_button_set_create(&hbbox, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create(&hbbox, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
gtk_container_set_border_width(GTK_CONTAINER(hbbox), HSPACING_NARROW);
gtk_widget_grab_default(ok_btn);
_("Do you really want to remove all attachments from "
"the selected messages?\n\n"
"The deleted data will be unrecoverable."),
- _("_Cancel"), "edit-delete", NULL, ALERTFOCUS_SECOND,
- FALSE, NULL, ALERT_QUESTION) != G_ALERTALTERNATE)
+ NULL, _("_Cancel"), "edit-delete", _("_Delete"), NULL, NULL,
+ ALERTFOCUS_SECOND, FALSE, NULL, ALERT_QUESTION) != G_ALERTALTERNATE)
return;
main_window_cursor_wait(summaryview->mainwin);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2006-2021 Ricardo Mones and the Claws Mail Team
+ * Copyright (C) 2006-2022 Ricardo Mones 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
bold_text,
compose->sending?_("Send it anyway?"):_("Queue it anyway?"));
aval = alertpanel(_("Attachment warning"), message,
- _("_Cancel"),
- compose->sending ? _("_Send") : _("Queue"),
- NULL,
- ALERTFOCUS_SECOND);
+ NULL, _("_Cancel"),
+ NULL, compose->sending ? _("_Send") : _("Queue"),
+ NULL, NULL, ALERTFOCUS_SECOND);
g_free(message);
g_free(bold_text);
if (aval != G_ALERTALTERNATE)
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2014-2021 Ricardo Mones and the Claws Mail Team
+ * Copyright (C) 2014-2022 Ricardo Mones 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
val = alertpanel_full(_("Clear icon cache"),
_("Are you sure you want to remove all cached avatar icons?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST, FALSE,
- NULL, ALERT_WARNING);
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
if (val != G_ALERTALTERNATE)
return;
/*
- * mailmbox Plugin -- mbox support for Sylpheed
- * Copyright (C) 2003-2019 the Claws Mail team,
+ * mailmbox Plugin -- mbox support for Claws Mail
+ * Copyright (C) 2003-2022 the Claws Mail team,
* Christoph Hohmann,
* Hoa v. Dinh,
* Alfons Hoogervorst
(_("Really remove the mailbox '%s'?\n"
"(The messages are NOT deleted from the disk)"), name);
avalue = alertpanel_full(_("Remove mailbox"), message,
- _("_Cancel"), _("_Remove"), NULL, ALERTFOCUS_FIRST, FALSE,
+ NULL, _("_Cancel"), "list-remove", _("_Remove"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE,
NULL, ALERT_WARNING);
g_free(message);
g_free(name);
(_("All folders and messages under '%s' will be deleted.\n"
"Do you really want to delete?"), name);
avalue = alertpanel_full(_("Delete folder"), message,
- _("_Cancel"), _("_Delete"), NULL, ALERTFOCUS_FIRST, FALSE,
+ NULL, _("_Cancel"), NULL, _("_Delete"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE,
NULL, ALERT_NOTICE);
g_free(message);
if (avalue != G_ALERTALTERNATE) return;
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2004-2019 the Claws Mail team
+ * Copyright (C) 2004-2022 the Claws Mail team
* Copyright (C) 2014-2015 Charles Lehner
*
* This program is free software; you can redistribute it and/or modify
if (!page->modified ||
alertpanel(_("Revert script"),
_("This script has been modified. Revert the unsaved changes?"),
- _("_Revert"), NULL, _("_Cancel"), ALERTFOCUS_FIRST) == G_ALERTDEFAULT)
+ NULL, _("_Revert"), NULL, NULL, NULL, _("_Cancel"),
+ ALERTFOCUS_FIRST) == G_ALERTDEFAULT)
sieve_editor_revert(page);
}
if (page->modified) {
switch (alertpanel(_("Save changes"),
_("This script has been modified. Save the latest changes?"),
- _("_Discard"), _("_Save"), _("_Cancel"),
+ NULL, _("_Discard"), "document-save", _("_Save"), NULL, _("_Cancel"),
ALERTFOCUS_SECOND)) {
case G_ALERTDEFAULT:
return TRUE;
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2004-2021 the Claws Mail team
+ * Copyright (C) 2004-2022 the Claws Mail team
* Copyright (C) 2014-2015 Charles Lehner
*
* This program is free software; you can redistribute it and/or modify
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * but WITHOUT ANY WARRANTY; withouNULL, t even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
g_snprintf(buf, sizeof(buf),
_("Do you really want to delete the filter '%s'?"), filter_name);
if (alertpanel_full(_("Delete filter"), buf,
- _("_Cancel"), _("_Delete"), NULL, ALERTFOCUS_FIRST, FALSE,
- NULL, ALERT_WARNING) != G_ALERTALTERNATE)
+ NULL, _("_Cancel"), NULL, _("_Delete"), NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING) != G_ALERTALTERNATE)
return;
cmd_data = g_new(CommandDataName, 1);
/* bottom area stuff */
gtkut_stock_button_set_create(&hbox,
- &btn, _("_Close"),
- NULL, NULL, NULL, NULL);
+ &btn, "window-close", _("_Close"),
+ NULL, NULL, NULL, NULL, NULL, NULL);
/* close */
gtk_box_pack_end (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
/* Notification plugin for Claws Mail
- * Copyright (C) 2005-2019 Holger Berndt and the Claws Mail Team
+ * Copyright (C) 2005-2022 Holger Berndt 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
gtk_box_pack_start(GTK_BOX(vbox), checkbox, FALSE, FALSE, 10);
gtkut_stock_button_set_create(&confirm_area,
- &cancel_button, _("_Cancel"),
- &ok_button, _("_OK"),
- NULL, NULL);
+ &cancel_button, NULL, _("_Cancel"),
+ &ok_button, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_button);
/* Notification plugin for Claws Mail
- * Copyright (C) 2005-2019 Holger Berndt and the Claws Mail Team.
+ * Copyright (C) 2005-2022 Holger Berndt 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
{
if(prefs_common_get_prefs()->confirm_on_exit) {
if(alertpanel(_("Exit"), _("Exit Claws Mail?"),
- _("_Cancel"), _("_OK"),
- NULL, ALERTFOCUS_FIRST) != G_ALERTALTERNATE) {
+ NULL, _("_Cancel"), NULL, _("_OK"),
+ NULL, NULL, ALERTFOCUS_FIRST) != G_ALERTALTERNATE) {
return;
}
manage_window_focus_in(mainwin->window, NULL, NULL);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail Team and Salvatore De Paolis
+ * Copyright (C) 1999-2022 the Claws Mail Team and Salvatore De Paolis
*
* 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
static void pdf_viewer_button_document_info_cb(GtkButton *button, PdfViewer *viewer)
{
- alertpanel_full(_("PDF properties"), NULL, _("_Close"), NULL, NULL,
- ALERTFOCUS_FIRST, FALSE,
+ alertpanel_full(_("PDF properties"), NULL, "window-close", _("_Close"), NULL, NULL,
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE,
GTK_WIDGET(pdf_viewer_fill_info_table(viewer)),
ALERT_NOTICE);
}
/* Perl plugin -- Perl Support for Claws Mail
*
- * Copyright (C) 2004-2007 Holger Berndt
+ * Copyright (C) 2004-2022 Holger Berndt and the Claws Mail Team
*
- * Sylpheed and Claws Mail are GTK+ based, lightweight, and fast e-mail clients
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail Team
+ * Claws Mail are GTK+ based, lightweight, and fast e-mail clients
+ * Copyright (C) 1999-2022 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
message = g_strdup_printf("Error processing Perl script file: "
"(line numbers may not be valid)\n%s",
SvPV(ERRSV,n_a));
- val = alertpanel("Perl Plugin error",message,"Retry","Abort","Edit",
- ALERTFOCUS_FIRST);
+ val = alertpanel("Perl Plugin error",message,NULL,"Retry",NULL,
+ "Abort",NULL,"Edit", ALERTFOCUS_FIRST);
g_free(message);
if(val == G_ALERTOTHER) {
/* passphrase.c - GTK+ based passphrase callback
- * Copyright (C) 2001-2019 Werner Koch (dd9jn) and the Claws Mail team
+ * Copyright (C) 2001-2022 Werner Koch (dd9jn) 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
gtk_widget_grab_focus(pass_entry);
gtkut_stock_button_set_create(&confirm_box,
- &cancel_button, _("_Cancel"),
- &ok_button, _("_OK"),
- NULL, NULL);
+ &cancel_button, NULL, _("_Cancel"),
+ &ok_button, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), confirm_box, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_button);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team
+ * Copyright (C) 1999-2022 the Claws Mail team
* This file Copyright (C) 2006 Colin Leroy <colin@colino.net>
*
* This program is free software; you can redistribute it and/or modify
val = alertpanel(_("Key import"),
_("This key is not in your keyring. Do you want "
"Claws Mail to try to import it?"),
- _("_No"), _("from keyserver"), _("from Web Key Directory"),
- ALERTFOCUS_SECOND);
+ NULL, _("_No"), NULL, _("from keyserver"),
+ NULL, _("from Web Key Directory"), ALERTFOCUS_SECOND);
GTK_EVENTS_FLUSH();
}
if (val == G_ALERTDEFAULT) {
/* select-keys.c - GTK+ based key selection
- * Copyright (C) 2001-2019 Werner Koch (dd9jn) and the Claws Mail team
+ * Copyright (C) 2001-2022 Werner Koch (dd9jn) 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
* Do_n't encrypt are different than the one in the stock Cancel
* button */
gtkut_stock_button_set_create (&bbox,
- &select_btn, _("_Select"),
- &other_btn, _("_Other"),
- &dont_encrypt_btn, _("Do_n't encrypt"));
+ &select_btn, NULL, _("_Select"),
+ &other_btn, NULL, _("_Other"),
+ &dont_encrypt_btn, NULL, _("Do_n't encrypt"));
cancel_btn = gtk_button_new_with_mnemonic("_Cancel");
gtk_widget_set_can_default(cancel_btn, TRUE);
"Do you trust this key enough to use it anyway?"),
key->subkeys->keyid, key->uids->name, key->uids->email);
aval = alertpanel(title, buf,
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST);
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL, ALERTFOCUS_FIRST);
g_free(buf);
g_free(title);
if (aval == G_ALERTALTERNATE)
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2019 the Claws Mail team
+ * Copyright (C) 1999-2022 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
_("GnuPG is not installed properly, or needs "
"to be upgraded.\n"
"OpenPGP support disabled."),
- _("_Close"), NULL, NULL, ALERTFOCUS_FIRST, TRUE, NULL,
- ALERT_WARNING);
+ "window-close", _("_Close"), NULL, NULL, NULL, NULL,
+ ALERTFOCUS_FIRST, TRUE, NULL, ALERT_WARNING);
if (val & G_ALERTDISABLE)
prefs_gpg_get_config()->gpg_warning = FALSE;
}
"which means that you won't be able to sign "
"emails or receive encrypted emails.\n"
"Do you want to create a new key pair now?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_SECOND);
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL,
+ ALERTFOCUS_SECOND);
if (val == G_ALERTDEFAULT) {
return;
}
"to a keyserver?"),
key->fpr ? key->fpr:"null");
AlertValue val = alertpanel(_("Key generated"), buf,
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_SECOND);
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL, ALERTFOCUS_SECOND);
g_free(buf);
if (val == G_ALERTALTERNATE) {
gchar *gpgbin = get_gpg_executable_name();
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
* Copyright (C) 1999-2004 Hiroyuki Yamamoto
- * This file (C) 2005-2021 Andrej Kacian <andrej@kacian.sk> and the
+ * This file (C) 2005-2022 Andrej Kacian <andrej@kacian.sk> and the
* Claws Mail team
*
* - callback handler functions for folderview rssyl context menu items
"Recovery will not be possible.\n\n"
"Do you really want to delete?"), name);
avalue = alertpanel_full(_("Delete folder"), message,
- _("_Cancel"), _("_Delete"), NULL, ALERTFOCUS_FIRST, FALSE,
+ NULL, _("_Cancel"), NULL, _("_Delete"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE,
NULL, ALERT_WARNING);
g_free(message);
if (avalue != G_ALERTALTERNATE) return;
n = trim_string(item->folder->name, 32);
message = g_strdup_printf(_("Really remove the feed tree `%s' ?\n"), n);
avalue = alertpanel_full(_("Remove feed tree"), message,
- _("_Cancel"), _("_Remove"), NULL, ALERTFOCUS_FIRST, FALSE,
+ NULL, _("_Cancel"), "list-remove", _("_Remove"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE,
NULL, ALERT_WARNING);
g_free(message);
g_free(n);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 Colin Leroy <colin@colino.net> and
+ * Copyright (C) 1999-2022 Colin Leroy <colin@colino.net> and
* the Claws Mail team
*
* This program is free software; you can redistribute it and/or modify
message = g_strdup_printf
(_("Do you really want to unsubscribe?"));
avalue = alertpanel_full(_("Delete subscription"), message,
- _("_Cancel"), _("_Delete"), NULL, ALERTFOCUS_FIRST,
+ NULL, _("_Cancel"), NULL, _("_Delete"),
+ NULL, NULL, ALERTFOCUS_FIRST,
FALSE, NULL, ALERT_WARNING);
g_free(message);
if (avalue != G_ALERTALTERNATE) return;
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 Colin Leroy <colin@colino.net> and
+ * Copyright (C) 1999-2022 Colin Leroy <colin@colino.net> and
* the Claws Mail team
*
* This program is free software; you can redistribute it and/or modify
msg = get_avail_msg(unavailable_persons, (total > 1), FALSE, offset_before, offset_after);
val = alertpanel_full(_("Not everyone is available"), msg,
- _("_Cancel"), _("Send anyway"), NULL, ALERTFOCUS_FIRST,
- FALSE, NULL, ALERT_QUESTION);
+ NULL, _("_Cancel"), NULL, _("Send anyway"),
+ NULL, NULL, ALERTFOCUS_FIRST,
+ FALSE, NULL, ALERT_QUESTION);
g_free(msg);
}
msg = get_avail_msg(unavailable_persons, TRUE, TRUE, offset_before, offset_after);
postpone_min > 1 ? 2:1),
postpone_min);
aval = alertpanel_full(title, message,
- label, _("_OK"), NULL, ALERTFOCUS_FIRST, FALSE,
- NULL, ALERT_NOTICE);
+ NULL, label, NULL, _("_OK"), NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_NOTICE);
g_free(label);
g_free(title);
if (!automatic) {
alertpanel_full(_("Empty calendar"),
_("There is nothing to export."),
- _("_OK"), NULL, NULL, ALERTFOCUS_FIRST, FALSE,
- NULL, ALERT_NOTICE);
+ NULL, _("_OK"), NULL, NULL, NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_NOTICE);
g_free(tmpfile);
g_free(internal_file);
return FALSE;
"want to continue?"),
total);
if (total > 9
- && alertpanel(_("Warning"), msg, _("_Cancel"), _("_Yes"), NULL,
- ALERTFOCUS_SECOND)
+ && alertpanel(_("Warning"), msg, NULL, _("_Cancel"),
+ NULL, _("_Yes"), NULL, NULL, ALERTFOCUS_SECOND)
!= G_ALERTALTERNATE) {
g_free(msg);
return;
&send_notify);
val = alertpanel_full(_("Cancel meeting"),
- _("Are you sure you want to cancel this meeting?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST, FALSE,
- send_notify_chkbtn, ALERT_WARNING);
+ _("Are you sure you want to cancel this meeting?"),
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, send_notify_chkbtn, ALERT_WARNING);
if (val != G_ALERTALTERNATE)
return;
if (!account) {
AlertValue val = alertpanel_full(_("No account found"),
- _("You have no account matching any attendee.\n"
- "Do you want to reply anyway?"),
- _("_Cancel"), _("Reply anyway"), NULL,
+ _("You have no account matching any attendee.\n"
+ "Do you want to reply anyway?"),
+ NULL, _("_Cancel"), NULL, _("Reply anyway"), NULL, NULL,
ALERTFOCUS_SECOND, FALSE, NULL, ALERT_QUESTION);
if (val == G_ALERTALTERNATE) {
account = account_get_default();
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail Team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail Team and Hiroyuki Yamamoto
*
* 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
GtkWidget *info_btn;
GtkWidget *btn_vbox;
- GtkWidget *spc_vbox;
+ GtkWidget *spc_vbox;
GtkWidget *top_btn;
GtkWidget *up_btn;
GtkWidget *down_btn;
gtk_container_add(GTK_CONTAINER(window), vbox);
gtkut_stock_button_set_create_with_help(&confirm_area, &help_btn,
- &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_widget_show(confirm_area);
gtk_box_pack_end(GTK_BOX(vbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_btn);
if (alertpanel(_("Delete action"),
_("Do you really want to delete this action?"),
- _("_Cancel"), _("D_elete"), NULL, ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
+ NULL, _("_Cancel"), NULL, _("D_elete"), NULL, NULL,
+ ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
return;
/* XXX: Here's the reason why we need to store the original
if (alertpanel(_("Delete all actions"),
_("Do you really want to delete all the actions?"),
- _("_Cancel"), _("D_elete"), NULL, ALERTFOCUS_FIRST) != G_ALERTDEFAULT)
+ NULL, _("_Cancel"), NULL, _("D_elete"), NULL, NULL,
+ ALERTFOCUS_FIRST) != G_ALERTDEFAULT)
return;
list_store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(actions.actions_list_view)));
GtkListStore *store;
if (modified && alertpanel(_("Entry not saved"),
- _("The entry was not saved. Close anyway?"),
- _("_Close"), _("_Continue editing"), NULL,
- ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
+ _("ThNULL, e entry was not saved. Close anyway?"),
+ "window-close", _("_Close"), NULL, _("_Continue editing"),
+ NULL, NULL, ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
return;
} else if (modified_list && alertpanel(_("Actions list not saved"),
_("The actions list has been modified. Close anyway?"),
- _("_Close"), _("_Continue editing"), NULL,
- ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
+ "window-close", _("_Close"), NULL, _("_Continue editing"),
+ NULL, NULL, ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
return;
}
modified = FALSE;
if (modified && alertpanel(_("Entry not saved"),
_("The entry was not saved. Close anyway?"),
- _("_Close"), _("_Continue editing"),
- NULL, ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
+ "window-close", _("_Close"), NULL, _("_Continue editing"),
+ NULL, NULL, ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
return;
}
modified = FALSE;
alertpanel(_("Entry was modified"),
_("Opening the filter action dialog will clear current modifications "
"of the command-line."),
- _("_Cancel"), _("_Continue editing"), NULL, ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
+ NULL, _("_Cancel"), NULL, _("_Continue editing"), NULL, NULL,
+ ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
return;
}
tokens = g_strsplit_set(action_str, "{}", 5);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
gtk_widget_show (vbox);
gtk_container_add (GTK_CONTAINER (window), vbox);
- gtkut_stock_button_set_create(&confirm_area, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"), NULL, NULL);
+ gtkut_stock_button_set_create(&confirm_area, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"), NULL, NULL, NULL);
gtk_widget_show (confirm_area);
gtk_box_pack_end (GTK_BOX(vbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_default (ok_btn);
if (alertpanel(_("Delete header"),
_("Do you really want to delete this header?"),
- _("_Cancel"), _("_Delete"), NULL, ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
+ NULL, _("_Cancel"), NULL, _("_Delete"), NULL, NULL,
+ ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
return;
gtk_tree_model_get(model, &sel,
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
gtk_widget_show (btn_hbox);
gtk_box_pack_end (GTK_BOX (vbox), btn_hbox, FALSE, FALSE, 0);
- gtkut_stock_button_set_create(&confirm_area, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"), NULL, NULL);
+ gtkut_stock_button_set_create(&confirm_area, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"), NULL, NULL, NULL);
gtk_widget_show (confirm_area);
gtk_box_pack_end (GTK_BOX(btn_hbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_default (ok_btn);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
gtk_container_add (GTK_CONTAINER (window), vbox);
gtkut_stock_button_set_create_with_help(&confirm_area, &help_btn,
- &cancel_btn,_("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_widget_show (confirm_area);
gtk_box_pack_end (GTK_BOX(vbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_default (ok_btn);
if (alertpanel(_("Delete rule"),
_("Do you really want to delete this rule?"),
- _("_Cancel"), _("D_elete"), NULL, ALERTFOCUS_SECOND) == G_ALERTDEFAULT)
+ NULL, _("_Cancel"), NULL, _("D_elete"), NULL, NULL,
+ ALERTFOCUS_SECOND) == G_ALERTDEFAULT)
return;
model = gtk_tree_view_get_model(list_view);
if (alertpanel(_("Delete all rules"),
_("Do you really want to delete all the rules?"),
- _("_Cancel"), _("D_elete"), NULL, ALERTFOCUS_SECOND) == G_ALERTDEFAULT)
+ NULL, _("_Cancel"), NULL, _("D_elete"), NULL, NULL,
+ ALERTFOCUS_SECOND) == G_ALERTDEFAULT)
return;
list_store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(filtering.cond_list_view)));
if (check_changed_list) {
if (modified && alertpanel(_("Filtering rules not saved"),
_("The list of filtering rules have been modified. Close anyway?"),
- _("_Close"), _("_Continue editing"), NULL,
- ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
+ "window-close", _("_Close"), NULL, _("_Continue editing"),
+ NULL, NULL, ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
if (prop != NULL)
filteringprop_free(prop);
return TRUE;
if (!filtering_str) {
val = alertpanel(_("Entry not saved"),
_("The entry was not saved. Close anyway?"),
- _("_Close"), _("_Continue editing"), NULL, ALERTFOCUS_SECOND);
+ "window-close", _("_Close"), NULL, _("_Continue editing"),
+ NULL, NULL, ALERTFOCUS_SECOND);
if (G_ALERTDEFAULT != val) {
g_free(filtering_str);
g_free(str); /* fixed two leaks: huzzah! */
strlen(action)) {
val = alertpanel(_("Entry not saved"),
_("The entry was not saved. Close anyway?"),
- _("_Close"), _("_Continue editing"), NULL, ALERTFOCUS_SECOND);
+ "window-close", _("_Close"), NULL, _("_Continue editing"),
+ NULL, NULL, ALERTFOCUS_SECOND);
if (G_ALERTDEFAULT != val) {
g_free(name);
g_free(condition);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2003-2021 the Claws Mail team
+ * Copyright (C) 2003-2022 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
gtk_container_add(GTK_CONTAINER(window), vbox);
gtkut_stock_button_set_create(&confirm_area,
- &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_btn);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
NULL);
gtkut_stock_button_set_create(&confirm_area,
- &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_widget_show(confirm_area);
gtk_box_pack_end(GTK_BOX(btn_hbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_btn);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
if (alertpanel_full(_("Discard cache"),
_("Do you really want to discard the local cached "
"data for this folder?"),
- _("_Cancel"), _("Discard"), NULL, ALERTFOCUS_SECOND,
- FALSE, NULL, ALERT_WARNING)
+ NULL, _("_Cancel"), NULL, _("Discard"), NULL, NULL,
+ ALERTFOCUS_SECOND, FALSE, NULL, ALERT_WARNING)
!= G_ALERTALTERNATE)
return;
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 6);
gtk_container_add(GTK_CONTAINER(window), vbox);
- gtkut_stock_button_set_create(&confirm_area, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"), NULL, NULL);
+ gtkut_stock_button_set_create(&confirm_area, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"), NULL, NULL, NULL);
gtk_box_pack_end(GTK_BOX(vbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_btn);
if (!matcher_str || strcmp(matcher_str, str) != 0) {
val = alertpanel(_("Entry not saved"),
_("The entry was not saved.\nClose anyway?"),
- _("_Close"),
- _("_Continue editing"),
- NULL,
+ NULL, _("_Close"),
+ NULL, _("_Continue editing"),
+ NULL, NULL,
ALERTFOCUS_SECOND);
if (G_ALERTDEFAULT != val) {
g_free(matcher_str);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2016-2021 the Claws Mail team
+ * Copyright (C) 2016-2022 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
markup, "</span></a>");
g_free(markup);
av = alertpanel_full(_("Configuration warning"), msg,
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_SECOND,
+ NULL, _("_No"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_SECOND,
FALSE, NULL, ALERT_ERROR);
g_free(msg);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2005-2019 Colin Leroy and The Claws Mail Team
+ * Copyright (C) 2005-2022 Colin Leroy 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
hbox1 = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8);
gtk_box_pack_start (GTK_BOX (vbox1), hbox1, FALSE, FALSE, 0);
- gtkut_stock_button_set_create (&confirm_area, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ gtkut_stock_button_set_create (&confirm_area, &cancel_btn,NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_box_pack_end (GTK_BOX (hbox1), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_focus (ok_btn);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2005-2021 Colin Leroy and The Claws Mail Team
+ * Copyright (C) 2005-2022 Colin Leroy 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
gtk_widget_set_hexpand(label3, TRUE);
gtk_widget_set_halign(label3, GTK_ALIGN_FILL);
- gtkut_stock_button_set_create(&confirm_area, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"), NULL, NULL);
+ gtkut_stock_button_set_create(&confirm_area, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"), NULL, NULL, NULL);
gtk_box_pack_start(GTK_BOX(vbox1), confirm_area, FALSE, FALSE, 0);
gtk_widget_show(confirm_area);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
NULL);
gtkut_stock_button_set_create(&confirm_area,
- &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_widget_show(confirm_area);
gtk_box_pack_end(GTK_BOX(btn_hbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_btn);
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
gtk_widget_show (btn_hbox);
gtk_box_pack_end (GTK_BOX (vbox), btn_hbox, FALSE, FALSE, 0);
- gtkut_stock_button_set_create(&confirm_area, &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"), NULL, NULL);
+ gtkut_stock_button_set_create(&confirm_area, &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"), NULL, NULL, NULL);
gtk_widget_show (confirm_area);
gtk_box_pack_end (GTK_BOX(btn_hbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_default (ok_btn);
/*
* Claws Mail templates subsystem
* Copyright (C) 2001 Alexander Barinov
- * Copyright (C) 2001-2021 The Claws Mail team
+ * Copyright (C) 2001-2022 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
/* help | cancel | ok */
gtkut_stock_button_set_create_with_help(&confirm_area, &help_btn,
- &cancel_btn, _("_Cancel"),
- &ok_btn, _("_OK"),
- NULL, NULL);
+ &cancel_btn, NULL, _("_Cancel"),
+ &ok_btn, NULL, _("_OK"),
+ NULL, NULL, NULL);
gtk_widget_show(confirm_area);
gtk_box_pack_end(GTK_BOX(vbox), confirm_area, FALSE, FALSE, 0);
gtk_widget_grab_default(ok_btn);
if (modified && alertpanel(_("Entry not saved"),
_("The entry was not saved. Close anyway?"),
- _("_Close"), _("_Continue editing"), NULL,
- ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
+ "window-close", _("_Close"), NULL, _("_Continue editing"),
+ NULL, NULL, ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
return;
}
if (modified && alertpanel(_("Entry not saved"),
_("The entry was not saved. Close anyway?"),
- _("_Close"), _("_Continue editing"), NULL,
- ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
+ "window-close", _("_Close"), NULL, _("_Continue editing"),
+ NULL, NULL, ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
return;
} else if (modified_list && alertpanel(_("Templates list not saved"),
_("The templates list has been modified. Close anyway?"),
- _("_Close"), _("_Continue editing"), NULL,
- ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
+ "window-close", _("_Close"), NULL, _("_Continue editing"),
+ NULL, NULL, ALERTFOCUS_SECOND) != G_ALERTDEFAULT) {
return;
}
if (alertpanel(_("Delete template"),
_("Do you really want to delete this template?"),
- _("_Cancel"), _("D_elete"), NULL,
- ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
+ NULL, _("_Cancel"), NULL, _("D_elete"), NULL, NULL,
+ ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
return;
gtk_list_store_remove(GTK_LIST_STORE(model), &iter);
{
if (alertpanel(_("Delete all templates"),
_("Do you really want to delete all the templates?"),
- _("_Cancel"), _("D_elete"), NULL,
- ALERTFOCUS_SECOND) == G_ALERTDEFAULT)
+ NULL, _("_Cancel"), NULL, _("D_elete"), NULL, NULL,
+ ALERTFOCUS_SECOND) == G_ALERTDEFAULT)
return;
prefs_template_clear_list();
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2003-2021 the Claws Mail team
+ * Copyright (C) 2003-2022 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
val = alertpanel(alert_title,
_("Are you sure you want to remove this theme?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST);
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL, ALERTFOCUS_FIRST);
g_free(alert_title);
if (G_ALERTALTERNATE == val) {
val = alertpanel(alert_title,
_("This folder doesn't seem to be a theme"
"folder.\nInstall anyway?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST);
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL, ALERTFOCUS_FIRST);
if (G_ALERTALTERNATE != val) {
g_free(alert_title);
goto end_inst;
val = alertpanel(alert_title,
_("Do you want to install theme for all users?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST);
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL, ALERTFOCUS_FIRST);
g_free(alert_title);
switch (val) {
case G_ALERTALTERNATE:
_("A theme with the same name is\n"
"already installed in this location.\n\n"
"Do you want to replace it?"),
- _("_Cancel"), _("Overwrite"), NULL, ALERTFOCUS_FIRST,
- FALSE, NULL, ALERT_WARNING);
+ NULL, _("_Cancel"), NULL, _("Overwrite"), NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
if (val == G_ALERTALTERNATE) {
if (remove_dir_recursive(cinfo->dest) < 0) {
alertpanel_error(_("Couldn't delete the old theme in %s."),
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
"Do you want to continue connecting to this "
"server? The communication would not be "
"secure."),
- _("_Cancel"), _("Con_tinue connecting"), NULL,
- ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING) != G_ALERTALTERNATE) {
+ NULL, _("_Cancel"), NULL, _("Con_tinue connecting"),
+ NULL, NULL, ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING) != G_ALERTALTERNATE) {
session_destroy(session);
return -1;
}
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Colin Leroy
+ * Copyright (C) 1999-2022 the Claws Mail team and Colin Leroy
*
* 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
G_CALLBACK(ssl_manager_view_cb), NULL);
close_btn = gtk_button_new_with_mnemonic("_Close");
+ gtk_button_set_image(GTK_BUTTON(close_btn),
+ gtk_image_new_from_icon_name("window-close", GTK_ICON_SIZE_BUTTON));
g_signal_connect(G_OBJECT(close_btn), "clicked",
G_CALLBACK(ssl_manager_close_cb), NULL);
val = alertpanel_full(_("Delete certificate"),
_("Do you really want to delete this certificate?"),
- _("_Cancel"), _("D_elete"), NULL, ALERTFOCUS_FIRST,
- FALSE, NULL, ALERT_WARNING);
+ NULL, _("_Cancel"), "edit-delete", _("D_elete"), NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
if (val != G_ALERTALTERNATE)
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
gtk_box_pack_start(GTK_BOX(confirm_area), next_btn, TRUE, TRUE, 0);
gtk_widget_show(next_btn);
- close_btn = gtk_button_new_with_mnemonic("_Close");
+ close_btn = gtkut_stock_button("window-close", "_Close");
gtk_widget_set_can_default(close_btn, TRUE);
gtk_box_pack_start(GTK_BOX(confirm_area), close_btn, TRUE, TRUE, 0);
gtk_widget_show(close_btn);
if (all_searched) {
alertpanel_full(_("Search failed"),
_("Search string not found."),
- _("_Close"), NULL, NULL, ALERTFOCUS_FIRST,
+ "window-close", _("_Close"), NULL, NULL,
+ NULL, NULL, ALERTFOCUS_FIRST,
FALSE, NULL, ALERT_WARNING);
break;
}
str = _("End of list reached; continue from beginning?");
val = alertpanel(_("Search finished"), str,
- _("_No"), _("_Yes"), NULL,
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL,
ALERTFOCUS_SECOND);
if (G_ALERTALTERNATE == val) {
if (backward) {
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
val = alertpanel(_("Process mark"),
_("Some marks are left. Process them?"),
- _("_No"), _("_Yes"), _("_Cancel"), ALERTFOCUS_FIRST);
+ NULL, _("_No"), NULL, _("_Yes"), NULL, _("_Cancel"),
+ ALERTFOCUS_FIRST);
if (G_ALERTALTERNATE == val) {
summary_unlock(summaryview);
summary_execute(summaryview);
val = alertpanel(_("No more unread messages"),
_("No unread message found. "
"Search from the end?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_SECOND);
+ NULL, _("_No"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_SECOND);
break;
case NEXTUNREADMSGDIALOG_ASSUME_YES:
val = G_ALERTALTERNATE;
val = alertpanel(_("No more unread messages"),
_("No unread message found. "
"Go to next folder?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_SECOND);
+ NULL, _("_No"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_SECOND);
break;
case NEXTUNREADMSGDIALOG_ASSUME_YES:
val = G_ALERTALTERNATE;
val = alertpanel(_("No more new messages"),
_("No new message found. "
"Search from the end?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_SECOND);
+ NULL, _("_No"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_SECOND);
break;
case NEXTUNREADMSGDIALOG_ASSUME_YES:
val = G_ALERTALTERNATE;
val = alertpanel(_("No more new messages"),
_("No new message found. "
"Go to next folder?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_SECOND);
+ NULL, _("_No"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_SECOND);
break;
case NEXTUNREADMSGDIALOG_ASSUME_YES:
val = G_ALERTALTERNATE;
val = alertpanel(_("No more marked messages"),
_("No marked message found. "
"Search from the end?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_SECOND);
+ NULL, _("_No"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_SECOND);
if (val != G_ALERTALTERNATE) return;
node = summary_find_prev_flagged_msg(summaryview, NULL,
MSG_MARKED, TRUE);
val = alertpanel(_("No more marked messages"),
_("No marked message found. "
"Go to next folder?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_SECOND);
+ NULL, _("_No"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_SECOND);
break;
case NEXTUNREADMSGDIALOG_ASSUME_YES:
val = G_ALERTALTERNATE;
val = alertpanel(_("No more labeled messages"),
_("No labeled message found. "
"Search from the end?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_SECOND);
+ NULL, _("_No"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_SECOND);
if (val != G_ALERTALTERNATE) return;
node = summary_find_prev_flagged_msg(summaryview, NULL,
MSG_CLABEL_FLAG_MASK, TRUE);
val = alertpanel(_("No more labeled messages"),
_("No labeled message found. "
"Search from the beginning?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_SECOND);
+ NULL, _("_No"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_SECOND);
if (val != G_ALERTALTERNATE) return;
if (summaryview->sort_type == SORT_ASCENDING)
node = summary_find_next_flagged_msg(summaryview, NULL,
if (ask_if_needed && prefs_common.ask_mark_all_read) {
AlertValue val = alertpanel_full(_("Mark all as read"),
_("Do you really want to mark all mails in this folder as read?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST,
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL, ALERTFOCUS_FIRST,
TRUE, NULL, ALERT_QUESTION);
if ((val & ~G_ALERTDISABLE) != G_ALERTALTERNATE)
if (ask_if_needed && prefs_common.ask_mark_all_read) {
AlertValue val = alertpanel_full(_("Mark all as unread"),
_("Do you really want to mark all mails in this folder as unread?"),
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST,
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL, ALERTFOCUS_FIRST,
TRUE, NULL, ALERT_QUESTION);
if ((val & ~G_ALERTDISABLE) != G_ALERTALTERNATE)
num);
aval = alertpanel(ngettext("Delete message", "Delete messages", num),
buf,
- _("_Cancel"), _("_Delete"), NULL, ALERTFOCUS_SECOND);
+ NULL, _("_Cancel"), NULL, _("_Delete"), NULL, NULL, ALERTFOCUS_SECOND);
g_free(buf);
if (aval != G_ALERTALTERNATE) {
END_LONG_OPERATION(summaryview);
if (is_file_exist(dest)) {
aval = alertpanel(_("Append or Overwrite"),
_("Append or overwrite existing file?"),
- _("_Append"), _("_Overwrite"), _("_Cancel"),
- ALERTFOCUS_FIRST);
+ NULL, _("_Append"), NULL, _("_Overwrite"),
+ NULL, _("_Cancel"), ALERTFOCUS_FIRST);
if (aval != 0 && aval != 1)
return;
}
"want to continue?"),
g_list_length(clist->selection));
if (g_list_length(clist->selection) > 9
- && alertpanel(_("Warning"), msg, _("_Cancel"), _("_Yes"),
- NULL, ALERTFOCUS_SECOND) != G_ALERTALTERNATE) {
+ && alertpanel(_("Warning"), msg, NULL, _("_Cancel"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_SECOND) != G_ALERTALTERNATE) {
g_free(msg);
return;
}
_("Filtering"),
_("There are some filtering rules that belong to an account.\n"
"Please choose what to do with these rules:"),
- _("_Cancel"), _("_Filter"), NULL, ALERTFOCUS_SECOND,
- TRUE, vbox);
+ NULL, _("_Cancel"), NULL, _("_Filter"), NULL, NULL,
+ ALERTFOCUS_SECOND, TRUE, vbox);
if ((val & ~G_ALERTDISABLE) != G_ALERTALTERNATE) {
return FALSE;
else
msg = _("Do you really want to apply this color label to all selected messages?");
val = alertpanel_full(labelcolor == 0? _("Reset color label"): _("Set color label"), msg,
- _("_No"), _("_Yes"), NULL, ALERTFOCUS_FIRST,
+ NULL, _("_No"), NULL, _("_Yes"), NULL, NULL, ALERTFOCUS_FIRST,
TRUE, NULL, ALERT_QUESTION);
if ((val & ~G_ALERTDISABLE) != G_ALERTALTERNATE)
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
_("Real URL:"), uri->uri,
open_or_cp);
aval = alertpanel_full(_("Phishing attempt warning"), msg,
- _("_Cancel"), open_or_cp_btn, NULL, ALERTFOCUS_FIRST,
- FALSE, NULL, ALERT_WARNING);
+ NULL, _("_Cancel"), NULL, open_or_cp_btn, NULL, NULL,
+ ALERTFOCUS_FIRST, FALSE, NULL, ALERT_WARNING);
g_free(msg);
if (aval == G_ALERTALTERNATE)
retval = TRUE;
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2001-2019 the Claws Mail team and Hiroyuki Yamamoto
+ * Copyright (C) 2001-2022 the Claws Mail team and Hiroyuki Yamamoto
*
* 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
if (prefs_common.work_offline)
if (alertpanel(_("Offline warning"),
_("You're working offline. Override?"),
- _("_No"), _("_Yes"),
- NULL, ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
+ NULL, _("_No"), NULL, _("_Yes"),
+ NULL, NULL, ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
return;
/* ask for confirmation before sending queued messages only
if (found && !prefs_common.work_offline) {
if (alertpanel(_("Send queued messages"),
_("Send all queued messages?"),
- _("_Cancel"), _("_Send"),
- NULL, ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
+ NULL, _("_Cancel"), NULL, _("_Send"),
+ NULL, NULL, ALERTFOCUS_FIRST) != G_ALERTALTERNATE)
return;
}
}
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2021 the Claws Mail team and Colin Leroy
+ * Copyright (C) 1999-2022 the Claws Mail team and Colin Leroy
*
* 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
vbox1 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 6);
gtkut_stock_button_set_create(&hbox1,
- &open_btn, _("Open in browser"),
- &close_btn, _("Close"),
- NULL, NULL);
+ &open_btn, NULL, _("Open in browser"),
+ &close_btn, NULL, _("Close"),
+ NULL, NULL, NULL);
g_signal_connect(G_OBJECT(open_btn), "clicked",
G_CALLBACK(uri_opener_open_cb), NULL);