diff options
author | Radek Doulik <rodo@ximian.com> | 2002-08-28 02:27:14 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2002-08-28 02:27:14 +0800 |
commit | 3e580fc5320854262b3038936e18858394feac36 (patch) | |
tree | f95bcca128b70655c9354f2a3b12b5346f265049 /composer/e-msg-composer.c | |
parent | a0d51bc68bd1901d98cf4da3b8ac79e48fce6177 (diff) | |
download | gsoc2013-evolution-3e580fc5320854262b3038936e18858394feac36.tar.gz gsoc2013-evolution-3e580fc5320854262b3038936e18858394feac36.tar.zst gsoc2013-evolution-3e580fc5320854262b3038936e18858394feac36.zip |
removed "Set as default" menu item
2002-08-27 Radek Doulik <rodo@ximian.com>
* e-msg-composer.c (signature_cb): removed "Set as default" menu
item
svn path=/trunk/; revision=17878
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 4c6e186c95..9d99f023d8 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1884,57 +1884,6 @@ signature_cb (GtkWidget *w, EMsgComposer *composer) } if (old_sig != composer->signature || old_auto != composer->auto_signature) e_msg_composer_show_sig_file (composer); - } else if (idx == len - 2) { - /* separator */ - sig_select_item (composer); - } else if (idx == len - 1 && composer->hdrs && E_MSG_COMPOSER_HDRS (composer->hdrs)->account) { - const MailConfigAccount *account = E_MSG_COMPOSER_HDRS (composer->hdrs)->account; - - if (account->id) { - GtkWidget *omenu, *menu; - MailConfigAccount *orig_acc; - int i; - - /* - * this is not exact, because the composer uses duplicates of accounts - * so I have to guess which account it is. - * in 1.4 we have to have account derived from gobject and composer should just - * ref it and not duplicate - */ - - omenu = e_msg_composer_hdrs_get_from_omenu (E_MSG_COMPOSER_HDRS (composer->hdrs)); - menu = gtk_option_menu_get_menu (GTK_OPTION_MENU (omenu)); - i = g_list_index (GTK_MENU_SHELL (menu)->children, gtk_menu_get_active (GTK_MENU (menu))); - - orig_acc = g_slist_nth_data ((GSList *) mail_config_get_accounts (), i); - if (orig_acc) { - if (orig_acc->name && account->name && !strcmp (orig_acc->name, account->name) - && ((orig_acc->id->name == NULL && account->id->name == NULL) - || (orig_acc->id->name && account->id->name - && !strcmp (orig_acc->id->name, account->id->name))) - && ((orig_acc->id->address == NULL && account->id->address == NULL) - || (orig_acc->id->address && account->id->address - && !strcmp (orig_acc->id->address, account->id->address))) - && ((orig_acc->id->reply_to == NULL && account->id->reply_to == NULL) - || (orig_acc->id->reply_to && account->id->reply_to - && !strcmp (orig_acc->id->reply_to, account->id->reply_to))) - && ((orig_acc->id->reply_to == NULL && account->id->reply_to == NULL) - || (orig_acc->id->reply_to && account->id->reply_to - && !strcmp (orig_acc->id->reply_to, account->id->reply_to))) - && ((orig_acc->id->organization == NULL && account->id->organization == NULL) - || (orig_acc->id->organization && account->id->organization - && !strcmp (orig_acc->id->organization, account->id->organization)))) { - - orig_acc->id->def_signature = composer->signature; - orig_acc->id->auto_signature = composer->auto_signature; - mail_config_write_account_sig (orig_acc, -1); - sig_select_item (composer); - return; - } - } - gnome_error_dialog (_("Can't set default signature for this account. " - "Maybe accounts were modified meanwhile?")); - } } /* printf ("signature_cb end\n"); */ } @@ -2021,8 +1970,6 @@ setup_signatures_menu (EMsgComposer *composer) ADD (gtk_str); g_free (gtk_str); } - ADD (NULL); - ADD (_("Set as default")); #undef ADD gtk_widget_show (menu); |