diff options
author | Radek Doulik <rodo@ximian.com> | 2002-06-07 01:17:24 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2002-06-07 01:17:24 +0800 |
commit | 274a9699257279d11bf61e001c96e12c4f90f9a4 (patch) | |
tree | 43d90ef467d49b4bafffe0b534fa902bafce902f /mail | |
parent | f6956dfe32ead2baabb43fd407038486c8980859 (diff) | |
download | gsoc2013-evolution-274a9699257279d11bf61e001c96e12c4f90f9a4.tar.gz gsoc2013-evolution-274a9699257279d11bf61e001c96e12c4f90f9a4.tar.zst gsoc2013-evolution-274a9699257279d11bf61e001c96e12c4f90f9a4.zip |
disable edit and delete when there are no signatures defined
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
svn path=/trunk/; revision=17133
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-composer-prefs.c | 4 |
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"); |