aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-hdrs.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-18 05:09:39 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-18 05:09:39 +0800
commitd398be6895584ef4d52ad2cf9f8bef6a639f4d38 (patch)
tree1652cb504ec42b2a07a90f50b777b488f2ebff8c /composer/e-msg-composer-hdrs.c
parentbc037887bbf807e072669db44b7c13011e0d8368 (diff)
downloadgsoc2013-evolution-d398be6895584ef4d52ad2cf9f8bef6a639f4d38.tar.gz
gsoc2013-evolution-d398be6895584ef4d52ad2cf9f8bef6a639f4d38.tar.zst
gsoc2013-evolution-d398be6895584ef4d52ad2cf9f8bef6a639f4d38.zip
Toggle the View->Attachments menu item. This fixes bug #6107.
2001-08-17 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (show_attachments): Toggle the View->Attachments menu item. This fixes bug #6107. svn path=/trunk/; revision=12177
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r--composer/e-msg-composer-hdrs.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c
index fcc99e0806..b5c8b78664 100644
--- a/composer/e-msg-composer-hdrs.c
+++ b/composer/e-msg-composer-hdrs.c
@@ -125,23 +125,23 @@ typedef struct {
} EMsgComposerHdrsAndString;
static void
-e_msg_composer_hdrs_and_string_free(EMsgComposerHdrsAndString *emchas)
+e_msg_composer_hdrs_and_string_free (EMsgComposerHdrsAndString *emchas)
{
if (emchas->hdrs)
- gtk_object_unref(GTK_OBJECT(emchas->hdrs));
- g_free(emchas->string);
+ gtk_object_unref (GTK_OBJECT (emchas->hdrs));
+ g_free (emchas->string);
}
static EMsgComposerHdrsAndString *
-e_msg_composer_hdrs_and_string_create(EMsgComposerHdrs *hdrs, const char *string)
+e_msg_composer_hdrs_and_string_create (EMsgComposerHdrs *hdrs, const char *string)
{
EMsgComposerHdrsAndString *emchas;
-
- emchas = g_new(EMsgComposerHdrsAndString, 1);
+
+ emchas = g_new (EMsgComposerHdrsAndString, 1);
emchas->hdrs = hdrs;
- emchas->string = g_strdup(string);
+ emchas->string = g_strdup (string);
if (emchas->hdrs)
- gtk_object_ref(GTK_OBJECT(emchas->hdrs));
+ gtk_object_ref (GTK_OBJECT (emchas->hdrs));
return emchas;
}
@@ -154,16 +154,16 @@ address_button_clicked_cb (GtkButton *button,
EMsgComposerHdrs *hdrs;
EMsgComposerHdrsPrivate *priv;
CORBA_Environment ev;
-
+
emchas = data;
hdrs = emchas->hdrs;
priv = hdrs->priv;
-
+
CORBA_exception_init (&ev);
-
+
GNOME_Evolution_Addressbook_SelectNames_activateDialog (
priv->corba_select_names, emchas->string, &ev);
-
+
CORBA_exception_free (&ev);
}
@@ -187,9 +187,9 @@ create_from_optionmenu (EMsgComposerHdrs *hdrs)
omenu = gtk_option_menu_new ();
menu = gtk_menu_new ();
-
+
default_account = mail_config_get_default_account_num ();
-
+
accounts = mail_config_get_accounts ();
while (accounts) {
const MailConfigAccount *account;
@@ -235,8 +235,8 @@ create_from_optionmenu (EMsgComposerHdrs *hdrs)
}
gtk_option_menu_set_menu (GTK_OPTION_MENU (omenu), menu);
-
- if (first){
+
+ if (first) {
gtk_option_menu_set_history (GTK_OPTION_MENU (omenu), history);
gtk_signal_emit_by_name (GTK_OBJECT (first), "activate", hdrs);
}