[gnome-calendar] window: code cleanup
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] window: code cleanup
- Date: Fri, 9 Jan 2015 14:34:00 +0000 (UTC)
commit 352ebd40c36126ea3d91d24dc669ad2abc17f232
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Jan 8 12:50:05 2015 -0200
window: code cleanup
Removes an unused function and an unused variable.
src/gcal-window.c | 23 -----------------------
1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index e731a03..abb2507 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -141,9 +141,6 @@ static void view_changed (GObject *o
GParamSpec *pspec,
gpointer user_data);
-static void search_view_closed (GtkPopover *popover,
- gpointer user_data);
-
static void set_new_event_mode (GcalWindow *window,
gboolean enabled);
@@ -319,10 +316,6 @@ search_event_selected (GcalSearchView *search_view,
icaltimetype *date,
gpointer user_data)
{
- GcalWindowPrivate *priv;
-
- priv = gcal_window_get_instance_private (GCAL_WINDOW (user_data));
-
g_object_set (user_data, "active-date", date, NULL);
update_view (GCAL_WINDOW (user_data));
gcal_window_set_search_mode (GCAL_WINDOW (user_data), FALSE);
@@ -513,21 +506,6 @@ view_changed (GObject *object,
update_view (GCAL_WINDOW (user_data));
}
-/**
- * search_view_closed:
- * @object:
- * @pspec:
- * @user_data:
- *
- *
- **/
-static void
-search_view_closed (GtkPopover *popover,
- gpointer user_data)
-{
- ;
-}
-
static void
set_new_event_mode (GcalWindow *window,
gboolean enabled)
@@ -1342,7 +1320,6 @@ gcal_window_constructed (GObject *object)
g_signal_connect (priv->views[GCAL_WINDOW_VIEW_SEARCH], "event-activated", G_CALLBACK
(search_event_selected),
object);
- g_signal_connect (priv->views[GCAL_WINDOW_VIEW_SEARCH], "closed", G_CALLBACK (search_view_closed), object);
/* refresh timeout, first is fast */
priv->refresh_timeout_id = g_timeout_add (FAST_REFRESH_TIMEOUT, (GSourceFunc) refresh_sources, object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]