[gnome-calendar/search-improvements] search-view: don't cast to GcalView when emit signal



commit dd5225971af4e6f3d65cc636f1aecb5d4b423bfb
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Jan 5 20:33:30 2015 -0200

    search-view: don't cast to GcalView when emit signal
    
    Also, remove the last traces of GcalView.

 src/gcal-search-view.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c
index 2821aff..d36e8af 100644
--- a/src/gcal-search-view.c
+++ b/src/gcal-search-view.c
@@ -22,7 +22,6 @@
 
 #include "gcal-event-widget.h"
 #include "gcal-utils.h"
-#include "gcal-view.h"
 
 #include <locale.h>
 #include <langinfo.h>
@@ -228,7 +227,7 @@ static void
 open_event (GcalEventWidget *event_widget,
             gpointer         user_data)
 {
-  g_signal_emit_by_name (GCAL_VIEW (user_data), "event-activated", event_widget);
+  g_signal_emit_by_name (user_data, "event-activated", event_widget);
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]