aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-summary.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-12-13 07:35:45 +0800
committerChris Lahey <clahey@src.gnome.org>2000-12-13 07:35:45 +0800
commitecae5285eae30188123aa34ba026c57cac1b9483 (patch)
tree84676a53cad209b47d2f7102c1c158f3ecd57849 /mail/mail-summary.c
parentd46c9da28df091da9dca931d611f7421330bc6c0 (diff)
downloadgsoc2013-evolution-ecae5285eae30188123aa34ba026c57cac1b9483.tar.gz
gsoc2013-evolution-ecae5285eae30188123aa34ba026c57cac1b9483.tar.zst
gsoc2013-evolution-ecae5285eae30188123aa34ba026c57cac1b9483.zip
Added a cast.
2000-12-12 Christopher James Lahey <clahey@helixcode.com> * component-factory.c (create_view): Added a cast. * mail-summary.c: Added #include "mail-summary.h". Commented out folder_free, summary_free, and view_destroy_cb since they're not used. (do_changed): Added a cast. (create_summary_view): Changed some types so that casting would be easier. * session.c (mail_session_remember_password): Added a cast. svn path=/trunk/; revision=6956
Diffstat (limited to 'mail/mail-summary.c')
-rw-r--r--mail/mail-summary.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/mail/mail-summary.c b/mail/mail-summary.c
index cfbeea9ad5..308a1aa271 100644
--- a/mail/mail-summary.c
+++ b/mail/mail-summary.c
@@ -34,6 +34,7 @@
#include "mail-tools.h"
#include "mail-ops.h"
#include "mail-vfolder.h"
+#include "mail-summary.h"
#include "Evolution.h"
#include "evolution-storage.h"
@@ -133,6 +134,7 @@ check_compipes (void)
}
}
+#if 0
static void
folder_free (FolderSummary *folder)
{
@@ -165,6 +167,7 @@ view_destroy_cb (GtkObject *object,
summary_free (summary);
g_free (summary);
}
+#endif
static char *
generate_html_summary (MailSummary *summary)
@@ -208,7 +211,7 @@ do_changed (MailSummary *summary)
char *ret_html;
ret_html = generate_html_summary (summary);
- executive_summary_html_view_set_html(summary->view, (const char *) ret_html);
+ executive_summary_html_view_set_html(EXECUTIVE_SUMMARY_HTML_VIEW(summary->view), (const char *) ret_html);
g_free (ret_html);
}
@@ -385,7 +388,8 @@ BonoboObject *
create_summary_view (ExecutiveSummaryComponentFactory *_factory,
void *closure)
{
- BonoboObject *component, *view, *bag;
+ BonoboObject *component, *view;
+ BonoboPropertyBag *bag;
char *html;
MailSummary *summary;
@@ -410,17 +414,17 @@ create_summary_view (ExecutiveSummaryComponentFactory *_factory,
summary->view = view;
bag = bonobo_property_bag_new (get_property, NULL, summary);
- bonobo_property_bag_add (BONOBO_PROPERTY_BAG (bag),
+ bonobo_property_bag_add (bag,
"window_title", PROPERTY_TITLE,
BONOBO_ARG_STRING, NULL,
"The title of this component's window",
BONOBO_PROPERTY_READABLE);
- bonobo_property_bag_add (BONOBO_PROPERTY_BAG (bag),
+ bonobo_property_bag_add (bag,
"window_icon", PROPERTY_ICON,
BONOBO_ARG_STRING, NULL,
"The icon for this component's window",
BONOBO_PROPERTY_READABLE);
- bonobo_object_add_interface (component, bag);
+ bonobo_object_add_interface (component, BONOBO_OBJECT(bag));
g_free (html);
return component;