? mail-composer.error
? warnings
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/composer/ChangeLog,v
retrieving revision 1.728
diff -u -p -r1.728 ChangeLog
--- ChangeLog	6 Jan 2006 06:40:44 -0000	1.728
+++ ChangeLog	9 Jan 2006 10:24:21 -0000
@@ -1,3 +1,16 @@
+2006-01-05  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.
+
 2006-01-06  Simon Zheng <simon.zheng@sun.com>
 
 	* e-msg-composer-hdrs.h: use libedataserver/e-account.h 
Index: e-msg-composer-hdrs.c
===================================================================
RCS file: /cvs/gnome/evolution/composer/e-msg-composer-hdrs.c,v
retrieving revision 1.147
diff -u -p -r1.147 e-msg-composer-hdrs.c
--- e-msg-composer-hdrs.c	22 Oct 2005 08:16:44 -0000	1.147
+++ e-msg-composer-hdrs.c	9 Jan 2006 10:24:21 -0000
@@ -92,7 +92,7 @@ extern struct _EMFolderTreeModel *mail_c
 typedef struct {
 	GtkWidget *label;
 	GtkWidget *entry;
-	int visible:1;
+	guint visible:1;
 } EMsgComposerHdrPair;
 
 struct _EMsgComposerHdrsPrivate {
@@ -317,8 +317,7 @@ account_removed_cb (EAccountList *accoun
 			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,10 +575,7 @@ post_entry_changed_cb (GtkButton *button
 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);
Index: e-msg-composer.c
===================================================================
RCS file: /cvs/gnome/evolution/composer/e-msg-composer.c,v
retrieving revision 1.526
diff -u -p -r1.526 e-msg-composer.c
--- e-msg-composer.c	17 Dec 2005 14:14:07 -0000	1.526
+++ e-msg-composer.c	9 Jan 2006 10:24:22 -0000
@@ -714,8 +714,6 @@ build_message (EMsgComposer *composer, g
 		e_attachment_bar_to_multipart (attachment_bar, multipart, p->charset);
 		
 		if (p->is_alternative) {
-			int i;
-			
 			for (i = camel_multipart_get_number (multipart); i > 1; i--) {
 				part = camel_multipart_get_part (multipart, i - 1);
 				camel_medium_remove_header (CAMEL_MEDIUM (part), "Content-Disposition");
@@ -733,7 +731,7 @@ build_message (EMsgComposer *composer, g
 	    || p->smime_encrypt
 #endif
 		) {
-		int i, j;
+		int j;
 		const char *types[] = { CAMEL_RECIPIENT_TYPE_TO, CAMEL_RECIPIENT_TYPE_CC, CAMEL_RECIPIENT_TYPE_BCC };
 
 		recipients = g_ptr_array_new();
@@ -1253,7 +1251,6 @@ set_editor_text(EMsgComposer *composer, 
 	EMsgComposerPrivate *p = composer->priv;
 	Bonobo_PersistStream persist;
 	BonoboStream *stream;
-	BonoboWidget *editor;
 	CORBA_Environment ev;
 	Bonobo_Unknown object;
 
@@ -1261,8 +1258,6 @@ set_editor_text(EMsgComposer *composer, 
 	
 	persist = p->persist_stream_interface;
 	
-	editor = BONOBO_WIDGET (p->eeditor);
-	
 	CORBA_exception_init (&ev);
 
 	if (len == -1)
@@ -1518,7 +1513,8 @@ autosave_manager_query_load_orphans (Aut
 		char *filename = match->data;
 		EMsgComposer *composer;
 		
-		if (load) { 
+		if (load) {
+			/* FIXME: composer is never used */ 
 			composer = autosave_load_draft (filename);
 		} else {
 			g_unlink (filename);
@@ -4581,11 +4577,11 @@ e_msg_composer_new_with_message (CamelMi
 			handle_multipart (new, multipart, 0);
 		}
 	} else {
-		ssize_t len;
+		ssize_t length;
 		char *html;
 
-		html = em_utils_part_to_html((CamelMimePart *)message, &len, NULL);
-		e_msg_composer_set_pending_body(new, html, len);
+		html = em_utils_part_to_html((CamelMimePart *)message, &length, NULL);
+		e_msg_composer_set_pending_body(new, html, length);
 	}
 	
 	/* We wait until now to set the body text because we need to ensure that
Index: evolution-composer.c
===================================================================
RCS file: /cvs/gnome/evolution/composer/evolution-composer.c,v
retrieving revision 1.45
diff -u -p -r1.45 evolution-composer.c
--- evolution-composer.c	6 Jan 2006 06:40:44 -0000	1.45
+++ evolution-composer.c	9 Jan 2006 10:24:22 -0000
@@ -319,9 +319,6 @@ evolution_composer_class_init (Evolution
 static void
 evolution_composer_init (EvolutionComposer *composer)
 {
-	EAccount *account;
-	
-	account = mail_config_get_default_account ();
 	composer->composer = e_msg_composer_new ();
 	composer->priv = g_malloc0(sizeof(*composer->priv));
 }
Index: listener.c
===================================================================
RCS file: /cvs/gnome/evolution/composer/listener.c,v
retrieving revision 1.36
diff -u -p -r1.36 listener.c
--- listener.c	19 Oct 2005 10:54:27 -0000	1.36
+++ listener.c	9 Jan 2006 10:24:22 -0000
@@ -138,7 +138,7 @@ listener_init(EditorListener *object)
 {
 }
 
-BONOBO_TYPE_FUNC_FULL(EditorListener, GNOME_GtkHTML_Editor_Listener, BONOBO_TYPE_OBJECT, listener);
+BONOBO_TYPE_FUNC_FULL(EditorListener, GNOME_GtkHTML_Editor_Listener, BONOBO_TYPE_OBJECT, listener)
 
 EditorListener *
 listener_new (EMsgComposer *composer)
