diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2007-06-03 10:10:05 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-06-03 10:10:05 +0800 |
commit | a01dfc76dc4fe9374f25d7fde53a78c4cf7efd0e (patch) | |
tree | 51415e9b150ae8e8de2db5a3d7c529f90829bd90 /calendar/gui/dialogs/event-page.c | |
parent | 677df14504c5ad80efbb417c6ceea8d8494e583d (diff) | |
download | gsoc2013-evolution-a01dfc76dc4fe9374f25d7fde53a78c4cf7efd0e.tar.gz 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/event-page.c')
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index 127c741210..5ce9c90cb5 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -1783,13 +1783,15 @@ remove_clicked_cb (GtkButton *btn, EventPage *epage) GList *paths = NULL, *tmp; GtkTreeIter iter; GtkTreePath *path = NULL; + GtkTreeModel *model = NULL; gboolean valid_iter; char *address; priv = epage->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; } |