[anjal] Fix compiler warning



commit d2cadb6968dff8c554e2ca2646f9c24d0b3e5768
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Mon Jul 20 12:46:52 2009 +0530

    Fix compiler warning

 src/em-format-mail-display.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/em-format-mail-display.c b/src/em-format-mail-display.c
index ff924af..1921cad 100644
--- a/src/em-format-mail-display.c
+++ b/src/em-format-mail-display.c
@@ -1531,7 +1531,7 @@ emfd_save_attachment (GtkButton *button, EAttachment *attachment)
 	dest = g_file_new_for_path (path);
 	e_attachment_save_async (
 		attachment, dest, (GAsyncReadyCallback)
-		e_attachment_save_handle_error, gtk_widget_get_toplevel(button));
+		e_attachment_save_handle_error, gtk_widget_get_toplevel((GtkWidget *)button));
 	g_object_unref (dest);
 	g_free(path);
 }
@@ -1616,7 +1616,7 @@ efhd_attachment_button(EMFormatMail *efh, GtkWidget *eb, EMFormatMailPObject *po
 	gtk_box_pack_start ((GtkBox *)tmp, widget, FALSE, FALSE, 2);
 	widget = gtk_button_new ();
 	g_signal_connect (widget, "clicked", G_CALLBACK (emfd_save_attachment), attachment); 
-	gtk_container_add (widget, tmp);
+	gtk_container_add ((GtkContainer *)widget, tmp);
 	gtk_widget_show_all (widget);
 	gtk_box_pack_start ((GtkBox *)mainbox, widget, FALSE, FALSE, 6);
 
@@ -1653,7 +1653,7 @@ efhd_bar_resize (EMFormatMail *efh,
 {
 	EMFormatMailDisplay *efhd = (EMFormatMailDisplay *) efh;
 	GtkWidget *widget;
-	gint width;
+	gint width = 0;
 #warning "fix width"
 //	widget = GTK_WIDGET (efh->html);
 //	width = widget->allocation.width - 12;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]