aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-hdrs.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2001-04-25 17:31:56 +0800
committerRadek Doulik <rodo@src.gnome.org>2001-04-25 17:31:56 +0800
commit0f25a9078109a26a08f909c6d2c34e1289c543d8 (patch)
tree40fd9a8a093861ed686fadb1666f49edfa3f6efe /composer/e-msg-composer-hdrs.c
parent65464a8165e62f342a8164a02024ce29f1b0bfe6 (diff)
downloadgsoc2013-evolution-0f25a9078109a26a08f909c6d2c34e1289c543d8.tar.gz
gsoc2013-evolution-0f25a9078109a26a08f909c6d2c34e1289c543d8.tar.zst
gsoc2013-evolution-0f25a9078109a26a08f909c6d2c34e1289c543d8.zip
signature changing
* signature changing 2001-04-25 Radek Doulik <rodo@ximian.com> * listener.c (impl_event): reflect object data type change * e-msg-composer.c (get_sig_file_content): renamed from get_signature (get_signature_html): new helper function, uses get_sig_file_content (set_editor_text): removed signature parameters (from_changed_cb): new signal handler, sets signature by identity change (delete_old_signature): new function, deletes old signature from the document (e_msg_composer_set_sig_file): new method, set's signature filename (e_msg_composer_mark_text_orig): removed (obsolete) * e-msg-composer-hdrs.c: added signal FROM_CHANGED svn path=/trunk/; revision=9557
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r--composer/e-msg-composer-hdrs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c
index ca618f5b35..d31ac118fc 100644
--- a/composer/e-msg-composer-hdrs.c
+++ b/composer/e-msg-composer-hdrs.c
@@ -83,6 +83,7 @@ enum {
SHOW_ADDRESS_DIALOG,
SUBJECT_CHANGED,
HDRS_CHANGED,
+ FROM_CHANGED,
LAST_SIGNAL
};
@@ -170,6 +171,7 @@ from_changed (GtkWidget *item, gpointer data)
EMsgComposerHdrs *hdrs = E_MSG_COMPOSER_HDRS (data);
hdrs->account = gtk_object_get_data (GTK_OBJECT (item), "account");
+ gtk_signal_emit (GTK_OBJECT (hdrs), signals [FROM_CHANGED]);
}
static GtkWidget *
@@ -557,6 +559,15 @@ class_init (EMsgComposerHdrsClass *class)
gtk_marshal_NONE__NONE,
GTK_TYPE_NONE, 0);
+ signals[FROM_CHANGED] =
+ gtk_signal_new ("from_changed",
+ GTK_RUN_LAST,
+ object_class->type,
+ GTK_SIGNAL_OFFSET (EMsgComposerHdrsClass,
+ from_changed),
+ gtk_marshal_NONE__NONE,
+ GTK_TYPE_NONE, 0);
+
gtk_object_class_add_signals (object_class, signals, LAST_SIGNAL);
}