[anjal] Fix warnings
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjal] Fix warnings
- Date: Mon, 20 Jul 2009 07:32:34 +0000 (UTC)
commit c5e1a989b744084c3359e771293e17c13c196954
Author: Srinivasa Ragavan <sragavan novell com>
Date: Mon Jul 20 13:01:23 2009 +0530
Fix warnings
src/mail-people-view.c | 33 ++++++++++++++++++---------------
1 files changed, 18 insertions(+), 15 deletions(-)
---
diff --git a/src/mail-people-view.c b/src/mail-people-view.c
index d3194cc..77d6ca5 100644
--- a/src/mail-people-view.c
+++ b/src/mail-people-view.c
@@ -37,11 +37,16 @@
#include <anerley/anerley-tile-view.h>
#include <anerley/anerley-tile.h>
#include <anerley/anerley-feed-model.h>
+#include <anerley/anerley-econtact-item.h>
#include <clutter/clutter.h>
+#include <clutter-gtk/clutter-gtk.h>
#include <glib.h>
+/* HACK: Anerley should expose this formally */
+void anerley_econtact_item_activate (AnerleyItem *item);
+
struct _MailPeopleViewPrivate {
GtkWidget *tab_str;
EBook *book;
@@ -117,8 +122,6 @@ mpv_item_activated (AnerleyTileView *view, AnerleyItem *item, MailPeopleView *mp
void
mail_people_view_construct (MailPeopleView *acview)
{
- GtkWidget *box, *label, *tbox, *tlabel;
- struct _EAccount *account = mail_config_get_default_account();
GError *error = NULL;
AnerleyEBookFeed *feed;
ClutterActor *stage;
@@ -134,27 +137,27 @@ mail_people_view_construct (MailPeopleView *acview)
g_warning (G_STRLOC ": Error getting default addressbook: %s",
error->message);
g_clear_error (&error);
- return 0;
+ return;
}
- feed = anerley_ebook_feed_new (acview->priv->book);
- model = anerley_feed_model_new (feed);
- icon_view = anerley_tile_view_new (model);
+ feed = (AnerleyEBookFeed *) anerley_ebook_feed_new (acview->priv->book);
+ model = anerley_feed_model_new ((AnerleyFeed *)feed);
+ icon_view = anerley_tile_view_new ((AnerleyFeedModel *)model);
embed = gtk_clutter_embed_new ();
gtk_widget_show (embed);
- stage = gtk_clutter_embed_get_stage (embed);
+ stage = gtk_clutter_embed_get_stage ((GtkClutterEmbed *)embed);
table = nbtk_table_new ();
entry = nbtk_entry_new (NULL);
- tmp = nbtk_entry_get_clutter_text (entry);
+ tmp = nbtk_entry_get_clutter_text ((NbtkEntry *)entry);
g_signal_connect (tmp,
"text-changed",
- _entry_text_changed_cb,
+ G_CALLBACK(_entry_text_changed_cb),
model);
g_signal_connect (icon_view, "item-activated", G_CALLBACK(mpv_item_activated), acview);
nbtk_table_add_actor_with_properties (NBTK_TABLE (table),
- entry,
+ (ClutterActor *)entry,
0,
0,
"x-fill",
@@ -167,11 +170,11 @@ mail_people_view_construct (MailPeopleView *acview)
scroll_view = nbtk_scroll_view_new ();
clutter_container_add_actor (CLUTTER_CONTAINER (stage),
- table);
+ (ClutterActor *)table);
clutter_container_add_actor (CLUTTER_CONTAINER (scroll_view),
- icon_view);
+ (ClutterActor *)icon_view);
nbtk_table_add_actor_with_properties (NBTK_TABLE (table),
- scroll_view,
+ (ClutterActor *)scroll_view,
1,
0,
"x-fill",
@@ -185,8 +188,8 @@ mail_people_view_construct (MailPeopleView *acview)
NULL);
//clutter_actor_set_size (table, 640, 480);
- gtk_box_pack_start (acview, embed, TRUE, TRUE, 6);
- acview->priv->table = table;
+ gtk_box_pack_start ((GtkBox *)acview, embed, TRUE, TRUE, 6);
+ acview->priv->table = (ClutterActor *)table;
g_signal_connect (acview, "size-allocate", G_CALLBACK(mpv_size_alloc), acview);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]