aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-07-06 03:34:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-07-06 03:34:00 +0800
commit903545fb9be7003a81ac207f17221a38b16439d2 (patch)
treeee47ce2591e95c8d3e7991c000170f4795e39dae /composer/e-msg-composer.c
parent917940d6e851589bfa19953555c9551bd1e81b7f (diff)
downloadgsoc2013-evolution-903545fb9be7003a81ac207f17221a38b16439d2.tar.gz
gsoc2013-evolution-903545fb9be7003a81ac207f17221a38b16439d2.tar.zst
gsoc2013-evolution-903545fb9be7003a81ac207f17221a38b16439d2.zip
Don't connect to the postpone signal, but do connect to the save-draft
2002-07-05 Jeffrey Stedfast <fejj@ximian.com> * evolution-composer.c (init): Don't connect to the postpone signal, but do connect to the save-draft signal. (evolution_composer_factory_init): No longer takes a postpone_cb argument, but does now take a save_draft_cb argument. * e-msg-composer.c (menu_file_send_later_cb): Removed. (class_init): Removed the POSTPONE signal. (setup_ui): Don't need to swap the Send/SendLater tooltips and accels anymore, since SendLater no longer exists. svn path=/trunk/; revision=17377
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c47
1 files changed, 1 insertions, 46 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index f716759c2b..bb93d5e60a 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -118,7 +118,6 @@
enum {
SEND,
- POSTPONE,
SAVE_DRAFT,
LAST_SIGNAL
};
@@ -1170,8 +1169,6 @@ autosave_load_draft (const char *filename)
gtk_signal_connect (GTK_OBJECT (composer), "send",
GTK_SIGNAL_FUNC (composer_send_cb), NULL);
- gtk_signal_connect (GTK_OBJECT (composer), "postpone",
- GTK_SIGNAL_FUNC (composer_postpone_cb), NULL);
gtk_widget_show (GTK_WIDGET (composer));
}
@@ -1467,18 +1464,7 @@ menu_file_send_cb (BonoboUIComponent *uic,
void *data,
const char *path)
{
- if (session && camel_session_is_online (session))
- gtk_signal_emit (GTK_OBJECT (data), signals[SEND]);
- else
- gtk_signal_emit (GTK_OBJECT (data), signals[POSTPONE]);
-}
-
-static void
-menu_file_send_later_cb (BonoboUIComponent *uic,
- void *data,
- const char *path)
-{
- gtk_signal_emit (GTK_OBJECT (data), signals[POSTPONE]);
+ gtk_signal_emit (GTK_OBJECT (data), signals[SEND]);
}
static void
@@ -1742,7 +1728,6 @@ static BonoboUIVerb verbs [] = {
BONOBO_UI_VERB ("FileAttach", menu_file_add_attachment_cb),
BONOBO_UI_VERB ("FileSend", menu_file_send_cb),
- BONOBO_UI_VERB ("FileSendLater", menu_file_send_later_cb),
BONOBO_UI_VERB ("DeleteAll", menu_edit_delete_all_cb),
@@ -1755,7 +1740,6 @@ static EPixmap pixcache [] = {
/* E_PIXMAP ("/menu/Insert/FileAttach", "buttons/add-attachment.png"), */
E_PIXMAP ("/commands/FileSend", "send-16.png"),
- E_PIXMAP ("/commands/FileSendLater", "send-later-16.png"),
E_PIXMAP ("/commands/FileSave", "save-16.png"),
E_PIXMAP ("/commands/FileSaveAs", "save-as-16.png"),
@@ -1972,27 +1956,6 @@ setup_ui (EMsgComposer *composer)
composer);
g_free (default_charset);
- if (!session || !camel_session_is_online (session)) {
- char *tooltip;
-
- /* Move the accelerator from Send to Send Later */
- bonobo_ui_component_set_prop (
- composer->uic, "/commands/FileSend",
- "accel", NULL, NULL);
- bonobo_ui_component_set_prop (
- composer->uic, "/commands/FileSendLater",
- "accel", "*Ctrl*Return", NULL);
-
- /* Update the FileSend tooltip to be the same as the FileSendLater tooltip... */
- tooltip = bonobo_ui_component_get_prop (
- composer->uic, "/commands/FileSendLater",
- "tip", NULL);
- bonobo_ui_component_set_prop (
- composer->uic, "/commands/FileSend",
- "tip", tooltip, NULL);
- g_free (tooltip);
- }
-
/* Format -> HTML */
bonobo_ui_component_set_prop (
composer->uic, "/commands/FormatHtml",
@@ -2515,14 +2478,6 @@ class_init (EMsgComposerClass *klass)
gtk_marshal_NONE__NONE,
GTK_TYPE_NONE, 0);
- signals[POSTPONE] =
- gtk_signal_new ("postpone",
- GTK_RUN_LAST,
- object_class->type,
- GTK_SIGNAL_OFFSET (EMsgComposerClass, postpone),
- gtk_marshal_NONE__NONE,
- GTK_TYPE_NONE, 0);
-
signals[SAVE_DRAFT] =
gtk_signal_new ("save-draft",
GTK_RUN_LAST,