diff options
author | Kjartan Maraas <kmaraas@gnome.org> | 2006-01-30 17:51:18 +0800 |
---|---|---|
committer | Kjartan Maraas <kmaraas@src.gnome.org> | 2006-01-30 17:51:18 +0800 |
commit | 04b418a5070ac4381bd73ac31aea38a7f94b53f9 (patch) | |
tree | 4c33889525304c0d47250f0c6f22d7252dbe0271 /composer/e-msg-composer-hdrs.c | |
parent | 066f2c2659f0705f677ea116269b160bff93bff1 (diff) | |
download | gsoc2013-evolution-04b418a5070ac4381bd73ac31aea38a7f94b53f9.tar.gz gsoc2013-evolution-04b418a5070ac4381bd73ac31aea38a7f94b53f9.tar.zst gsoc2013-evolution-04b418a5070ac4381bd73ac31aea38a7f94b53f9.zip |
Use guint for 1 bit bitfield, use g_slist_delete_link instead of
2006-01-24 Kjartan Maraas <kmaraas@gnome.org>
* e-msg-composer-hdrs.c: (account_removed_cb),
(header_new_recipient): Use guint for 1 bit bitfield, use
g_slist_delete_link instead of g_slist_remove_link+g_slist_free1,
Remove some unused vars.
* e-msg-composer.c: (build_message), (set_editor_text),
(autosave_manager_query_load_orphans),
(e_msg_composer_new_with_message): Remove unused vars and rename
a local variable with a name clash.
* evolution-composer.c: (evolution_composer_init): Remove unused var
* listener.c: Remove stray semi colon.
svn path=/trunk/; revision=31358
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 8a52188e9e..18bd8235ae 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -92,7 +92,7 @@ extern struct _EMFolderTreeModel *mail_component_peek_tree_model(struct _MailCom typedef struct { GtkWidget *label; GtkWidget *entry; - int visible:1; + guint visible:1; } EMsgComposerHdrPair; struct _EMsgComposerHdrsPrivate { @@ -317,8 +317,7 @@ account_removed_cb (EAccountList *accounts, EAccount *account, EMsgComposerHdrs if (hdrs->account == account) hdrs->account = NULL; - priv->from_options = g_slist_remove_link (priv->from_options, node); - g_slist_free_1 (node); + priv->from_options = g_slist_delete_link (priv->from_options, node); g_object_unref (account); gtk_widget_destroy (item); break; @@ -576,11 +575,8 @@ post_entry_changed_cb (GtkButton *button, EMsgComposerHdrs *hdrs) static EMsgComposerHdrPair header_new_recipient (EMsgComposerHdrs *hdrs, const char *name, const char *tip) { - EMsgComposerHdrsPrivate *priv; EMsgComposerHdrPair ret; - priv = hdrs->priv; - ret.label = gtk_button_new_with_mnemonic (name); GTK_OBJECT_UNSET_FLAGS (ret.label, GTK_CAN_FOCUS); g_signal_connect_data (ret.label, "clicked", |