/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2013 Hiroyuki Yamamoto and the Claws Mail team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
cm_return_if_fail(accounts != NULL);
- COMBOBOX_ADD(filtering.account_combobox_list, Q_("Filtering Account Menu|All"), 0);
+ COMBOBOX_ADD(filtering.account_combobox_list, C_("Filtering Account Menu", "All"), 0);
COMBOBOX_ADD(filtering.account_combobox_list, NULL, 0);
for (; accounts != NULL; accounts = accounts->next) {
PrefsAccount *ac = (PrefsAccount *)accounts->data;
(GtkAttachOptions) (GTK_FILL|GTK_EXPAND),
(GtkAttachOptions) (0), 0, 0);
- cond_btn = gtk_button_new_with_label (_(" Define... "));
+ cond_btn = gtk_button_new_with_mnemonic (_(" Def_ine... "));
gtk_widget_show (cond_btn);
gtk_table_attach (GTK_TABLE (table), cond_btn, 2, 3, 2, 3,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL|GTK_EXPAND),
(GtkAttachOptions) (0), 0, 0);
- action_btn = gtk_button_new_with_label (_(" Define... "));
+ action_btn = gtk_button_new_with_mnemonic (_(" De_fine... "));
gtk_widget_show (action_btn);
gtk_table_attach (GTK_TABLE (table), action_btn, 2, 3, 3, 4,
(GtkAttachOptions) (GTK_FILL),
CLAWS_SET_TIP(reg_btn,
_("Append the new rule above to the list"));
- subst_btn = gtkut_get_replace_btn (_("Replace"));
+ subst_btn = gtkut_get_replace_btn (_("_Replace"));
gtk_widget_show (subst_btn);
gtk_box_pack_start (GTK_BOX (btn_hbox), subst_btn, FALSE, TRUE, 0);
g_signal_connect(G_OBJECT (subst_btn), "clicked",
CLAWS_SET_TIP(subst_btn,
_("Replace the selected rule in list with the rule above"));
- del_btn = gtk_button_new_from_stock (GTK_STOCK_DELETE);
- gtk_widget_show (del_btn);
+ del_btn = gtk_button_new_with_mnemonic (_("D_elete"));
+ gtk_button_set_image(GTK_BUTTON(del_btn),
+ gtk_image_new_from_stock(GTK_STOCK_REMOVE,GTK_ICON_SIZE_BUTTON));
gtk_box_pack_start (GTK_BOX (btn_hbox), del_btn, FALSE, TRUE, 0);
g_signal_connect(G_OBJECT (del_btn), "clicked",
G_CALLBACK(prefs_filtering_delete_cb), NULL);
CLAWS_SET_TIP(del_btn,
_("Delete the selected rule from the list"));
- clear_btn = gtk_button_new_from_stock (GTK_STOCK_CLEAR);
+ clear_btn = gtk_button_new_with_mnemonic (_("C_lear"));
+ gtk_button_set_image(GTK_BUTTON(clear_btn),
+ gtk_image_new_from_stock(GTK_STOCK_CLEAR,GTK_ICON_SIZE_BUTTON));
gtk_widget_show (clear_btn);
gtk_box_pack_start (GTK_BOX (btn_hbox), clear_btn, FALSE, TRUE, 0);
g_signal_connect(G_OBJECT (clear_btn), "clicked",
_("Move the selected rule to the top"));
#ifndef GENERIC_UMPC
- page_up_btn = gtk_button_new_with_mnemonic (_("Page up"));
+ page_up_btn = gtk_button_new_with_mnemonic (_("Page u_p"));
gtk_button_set_image(GTK_BUTTON(page_up_btn),
gtk_image_new_from_stock(GTK_STOCK_GO_UP,GTK_ICON_SIZE_BUTTON));
gtk_widget_show (page_up_btn);
_("Move the selected rule down"));
#ifndef GENERIC_UMPC
- page_down_btn = gtk_button_new_with_mnemonic (_("Page down"));
+ page_down_btn = gtk_button_new_with_mnemonic (_("Page dow_n"));
gtk_button_set_image(GTK_BUTTON(page_down_btn),
gtk_image_new_from_stock(GTK_STOCK_GO_DOWN,GTK_ICON_SIZE_BUTTON));
gtk_widget_show (page_down_btn);
account_name = ac_prefs->account_name;
}
if (account_name == NULL)
- account_name = (gchar *)Q_("Filtering Account Menu|All");
+ account_name = (gchar *)C_("Filtering Account Menu", "All");
cond_str = filteringprop_to_string(prop);
subst_char(cond_str, '\t', ':');
GtkListStore *list_store;
gchar *name = NULL;
gint account_id = 0;
- gchar *account_name = (gchar *)Q_("Filtering Account Menu|All");
+ gchar *account_name = (gchar *)C_("Filtering Account Menu", "All");
gboolean enabled = TRUE;
if (prop)
gtk_entry_set_text(GTK_ENTRY(filtering.cond_entry), matcher_str);
action_str = filteringaction_list_to_string(prop->action_list);
- if (matcher_str == NULL) {
- return;
- }
- gtk_entry_set_text(GTK_ENTRY(filtering.action_entry), action_str);
+ if (action_str != NULL)
+ gtk_entry_set_text(GTK_ENTRY(filtering.action_entry), action_str);
g_free(action_str);
g_free(matcher_str);
if (check_changed_list) {
if (modified && alertpanel(_("Filtering rules not saved"),
_("The list of filtering rules have been modified. Close anyway?"),
- GTK_STOCK_CLOSE, _("+_Continue editing"),
+ GTK_STOCK_CLOSE, g_strconcat("+", _("_Continue editing"), NULL),
NULL) != G_ALERTDEFAULT) {
return TRUE;
}
if (!filtering_str) {
val = alertpanel(_("Entry not saved"),
_("The entry was not saved. Close anyway?"),
- GTK_STOCK_CLOSE, _("+_Continue editing"), NULL);
+ GTK_STOCK_CLOSE, g_strconcat("+", _("_Continue editing"),NULL), NULL);
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?"),
- GTK_STOCK_CLOSE, _("+_Continue editing"), NULL);
+ GTK_STOCK_CLOSE, g_strconcat("+", _("_Continue editing"), NULL), NULL);
if (G_ALERTDEFAULT != val) {
g_free(name);
g_free(condition);
g_object_set(list_view, "allow-checkbox-mode", FALSE, NULL);
#endif
-#ifndef MAEMO
g_signal_connect(G_OBJECT(list_view), "popup-menu",
G_CALLBACK(prefs_filtering_list_popup_menu), list_view);
-#else
- gtk_widget_tap_and_hold_setup(GTK_WIDGET(list_view), NULL, NULL,
- GTK_TAP_AND_HOLD_NONE | GTK_TAP_AND_HOLD_NO_INTERNALS);
- g_signal_connect(G_OBJECT(list_view), "tap-and-hold",
- G_CALLBACK(prefs_filtering_list_popup_menu), list_view);
-#endif
g_signal_connect(G_OBJECT(list_view), "button-press-event",
G_CALLBACK(prefs_filtering_list_btn_pressed), list_view);