[gnome-calendar] window: hook GcalView:event-activated signal
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] window: hook GcalView:event-activated signal
- Date: Thu, 4 Dec 2014 22:36:41 +0000 (UTC)
commit cf7e6be614ad6be095e6f79c6d5dd2b55508fb7e
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Thu Oct 16 01:57:56 2014 -0400
window: hook GcalView:event-activated signal
src/gcal-window.c | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 2e47d98..f5f2cd1 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -146,7 +146,8 @@ static void hide_notification (GtkWidget *b
static void create_event (gpointer user_data,
GtkWidget *widget);
-static void event_activated (GcalEventWidget *event_widget,
+static void event_activated (GcalView *view,
+ GcalEventWidget *event_widget,
gpointer user_data);
static void init_edit_dialog (GcalWindow *window);
@@ -706,7 +707,8 @@ create_event (gpointer user_data,
}
static void
-event_activated (GcalEventWidget *event_widget,
+event_activated (GcalView *view,
+ GcalEventWidget *event_widget,
gpointer user_data)
{
GcalWindowPrivate *priv;
@@ -1011,8 +1013,13 @@ gcal_window_constructed (GObject *object)
G_CALLBACK (gcal_window_new_event), object);
for (i = 0; i < 4; ++i)
{
- g_signal_connect (priv->views[i], "create-event",
- G_CALLBACK (show_new_event_widget), object);
+ if (priv->views[i] != NULL)
+ {
+ g_signal_connect (priv->views[i], "create-event",
+ G_CALLBACK (show_new_event_widget), object);
+ g_signal_connect (priv->views[i], "event-activated",
+ G_CALLBACK (event_activated), object);
+ }
}
g_signal_connect (priv->search_bar, "notify::search-mode-enabled",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]