aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-composer-prefs.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 14368d4da0..89b47d9a49 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-06 Radek Doulik <rodo@ximian.com>
+
+ * mail-composer-prefs.c (mail_composer_prefs_construct): disable
+ edit and delete when there are no signatures defined
+
2002-06-06 Not Zed <NotZed@Ximian.com>
* message-list.c (mail_regen_list): Keep track of the regeneration
diff --git a/mail/mail-composer-prefs.c b/mail/mail-composer-prefs.c
index cef953ba82..dad26a0b13 100644
--- a/mail/mail-composer-prefs.c
+++ b/mail/mail-composer-prefs.c
@@ -820,6 +820,10 @@ mail_composer_prefs_construct (MailComposerPrefs *prefs)
GTK_SIGNAL_FUNC (sig_row_select), prefs);
gtk_signal_connect (GTK_OBJECT (prefs->sig_clist), "unselect_row",
GTK_SIGNAL_FUNC (sig_row_unselect), prefs);
+ if (mail_config_get_signature_list () == NULL) {
+ gtk_widget_set_sensitive ((GtkWidget *) prefs->sig_delete, FALSE);
+ gtk_widget_set_sensitive ((GtkWidget *) prefs->sig_edit, FALSE);
+ }
/* preview GtkHTML widget */
widget = glade_xml_get_widget (gui, "scrolled-sig");