[gnome-calendar] search-view: remove non-working connection
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] search-view: remove non-working connection
- Date: Fri, 9 Jan 2015 14:40:25 +0000 (UTC)
commit ee09608a581c5f2b9f9ecec928a6c9c57dba94d9
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Jan 9 12:40:16 2015 -0200
search-view: remove non-working connection
All the source update stuff is done internally by ECalDataModel, and we don't need to do it again.
src/gcal-search-view.c | 32 --------------------------------
1 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c
index 2cf124b..28cbdc7 100644
--- a/src/gcal-search-view.c
+++ b/src/gcal-search-view.c
@@ -86,15 +86,6 @@ static gint sort_by_event (GtkListBoxRow
GtkListBoxRow *row2,
gpointer user_data);
-static void source_added (GcalManager *manager,
- ESource *source,
- gboolean enable,
- gpointer user_data);
-
-static void source_removed (GcalManager *manager,
- ESource *source,
- gpointer user_data);
-
static gboolean show_no_results_page (GcalSearchView *view);
/* private */
@@ -263,26 +254,6 @@ sort_by_event (GtkListBoxRow *row1,
return result;
}
-static void
-source_added (GcalManager *manager,
- ESource *source,
- gboolean enable,
- gpointer user_data)
-{
- GcalSearchViewPrivate *priv;
-
- priv = gcal_search_view_get_instance_private (GCAL_SEARCH_VIEW (user_data));
- gcal_search_view_search (GCAL_SEARCH_VIEW (user_data), priv->field, priv->query);
-}
-
-static void
-source_removed (GcalManager *manager,
- ESource *source,
- gpointer user_data)
-{
- source_added (manager, source, FALSE, user_data);
-}
-
/**
* show_no_results_page:
* @view: a #GcalSearchView instance.
@@ -607,9 +578,6 @@ gcal_search_view_set_property (GObject *object,
case PROP_MANAGER:
{
priv->manager = g_value_get_pointer (value);
- g_signal_connect (priv->manager, "source-added", G_CALLBACK (source_added), object);
- g_signal_connect (priv->manager, "source-activated", G_CALLBACK (source_added), object);
- g_signal_connect (priv->manager, "source-removed", G_CALLBACK (source_removed), object);
break;
}
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]