aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-composer-prefs.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@src.gnome.org>2002-06-06 23:54:39 +0800
committerRadek Doulik <rodo@src.gnome.org>2002-06-06 23:54:39 +0800
commitf6956dfe32ead2baabb43fd407038486c8980859 (patch)
tree67d8bf59c9a5e87f1b7cde160694a2cc536c6e54 /mail/mail-composer-prefs.c
parent1f993cacd1ac269ea4e7a77c57edbce732b9e8b5 (diff)
downloadgsoc2013-evolution-f6956dfe32ead2baabb43fd407038486c8980859.tar.gz
gsoc2013-evolution-f6956dfe32ead2baabb43fd407038486c8980859.tar.zst
gsoc2013-evolution-f6956dfe32ead2baabb43fd407038486c8980859.zip
enhanced signature editor
svn path=/trunk/; revision=17132
Diffstat (limited to 'mail/mail-composer-prefs.c')
-rw-r--r--mail/mail-composer-prefs.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/mail/mail-composer-prefs.c b/mail/mail-composer-prefs.c
index 669c02c4fe..cef953ba82 100644
--- a/mail/mail-composer-prefs.c
+++ b/mail/mail-composer-prefs.c
@@ -34,6 +34,7 @@
#include <bonobo/bonobo-object-client.h>
#include <gal/widgets/e-gui-utils.h>
+#include <gal/widgets/e-unicode.h>
#include "widgets/misc/e-charset-picker.h"
@@ -247,9 +248,9 @@ mail_composer_prefs_new_signature (MailComposerPrefs *prefs, gboolean html)
sig = mail_config_signature_add (html);
if (prefs) {
- name [0] = e_utf8_to_gtk_string (prefs->sig_clist, sig->name);
- row = gtk_clist_append (GTK_CLIST (prefs->sig_clist), name);
- gtk_clist_set_row_data (GTK_CLIST (prefs->sig_clist), row, sig);
+ name [0] = e_utf8_to_gtk_string (GTK_WIDGET (prefs->sig_clist), sig->name);
+ row = gtk_clist_append (prefs->sig_clist, name);
+ gtk_clist_set_row_data (prefs->sig_clist, row, sig);
gtk_clist_select_row (GTK_CLIST (prefs->sig_clist), row, 0);
g_free (name [0]);
/*gtk_widget_grab_focus (prefs->sig_name);*/
@@ -290,12 +291,12 @@ sig_row_select (GtkCList *clist, int row, int col, GdkEvent *event, MailComposer
MailConfigSignature *sig;
printf ("sig_row_select\n");
- gtk_widget_set_sensitive ((GtkWidget *) prefs->sig_delete, TRUE);
- gtk_widget_set_sensitive ((GtkWidget *) prefs->sig_edit, TRUE);
-
sig = gtk_clist_get_row_data (prefs->sig_clist, row);
prefs->sig_row = row;
+ gtk_widget_set_sensitive ((GtkWidget *) prefs->sig_delete, TRUE);
+ gtk_widget_set_sensitive ((GtkWidget *) prefs->sig_edit, sig->script == NULL);
+
sig_load_preview (prefs, sig);
}
@@ -316,7 +317,7 @@ sig_fill_clist (GtkCList *clist)
gtk_clist_freeze (clist);
for (l = mail_config_get_signature_list (); l; l = l->next) {
- name [0] = e_utf8_to_gtk_string (clist, ((MailConfigSignature *) l->data)->name);
+ name [0] = e_utf8_to_gtk_string (GTK_WIDGET (clist), ((MailConfigSignature *) l->data)->name);
row = gtk_clist_append (clist, name);
gtk_clist_set_row_data (clist, row, l->data);
g_free (name [0]);