aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-page.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2007-06-03 10:10:05 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-06-03 10:10:05 +0800
commita01dfc76dc4fe9374f25d7fde53a78c4cf7efd0e (patch)
tree51415e9b150ae8e8de2db5a3d7c529f90829bd90 /calendar/gui/dialogs/task-page.c
parent677df14504c5ad80efbb417c6ceea8d8494e583d (diff)
downloadgsoc2013-evolution-a01dfc76dc4fe9374f25d7fde53a78c4cf7efd0e.tar
gsoc2013-evolution-a01dfc76dc4fe9374f25d7fde53a78c4cf7efd0e.tar.gz
gsoc2013-evolution-a01dfc76dc4fe9374f25d7fde53a78c4cf7efd0e.tar.bz2
gsoc2013-evolution-a01dfc76dc4fe9374f25d7fde53a78c4cf7efd0e.tar.lz
gsoc2013-evolution-a01dfc76dc4fe9374f25d7fde53a78c4cf7efd0e.tar.xz
gsoc2013-evolution-a01dfc76dc4fe9374f25d7fde53a78c4cf7efd0e.tar.zst
gsoc2013-evolution-a01dfc76dc4fe9374f25d7fde53a78c4cf7efd0e.zip
Fix compiler warnings in the calendar directory (#439122).
svn path=/trunk/; revision=33625
Diffstat (limited to 'calendar/gui/dialogs/task-page.c')
-rw-r--r--calendar/gui/dialogs/task-page.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index 1a7352aab5..43a9b793eb 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -1081,13 +1081,15 @@ remove_clicked_cb (GtkButton *btn, TaskPage *page)
GList *paths = NULL, *tmp;
GtkTreeIter iter;
GtkTreePath *path = NULL;
+ GtkTreeModel *model = NULL;
gboolean valid_iter;
char *address;
priv = page->priv;
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->list_view));
- if (!(paths = gtk_tree_selection_get_selected_rows (selection, (GtkTreeModel **) &(priv->model)))) {
+ model = GTK_TREE_MODEL (priv->model);
+ if (!(paths = gtk_tree_selection_get_selected_rows (selection, &model))) {
g_warning ("Could not get a selection to delete.");
return;
}