[gnome-calendar/ui-rewrite] year-view: launch edit dialog on event activate
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/ui-rewrite] year-view: launch edit dialog on event activate
- Date: Mon, 10 Nov 2014 13:59:13 +0000 (UTC)
commit 12b844c44b9d0c3fec4c4d747630af1b7833b878
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Fri Nov 7 19:56:12 2014 -0500
year-view: launch edit dialog on event activate
src/gcal-year-view.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 2abe39f..44d8d0e 100644
--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -55,6 +55,9 @@ enum
PROP_MANAGER //manager inherited property
};
+static void event_opened (GcalEventWidget *event_widget,
+ gpointer user_data);
+
static void gcal_view_interface_init (GcalViewIface *iface);
static void gcal_year_view_set_property (GObject *object,
@@ -134,6 +137,15 @@ G_DEFINE_TYPE_WITH_CODE (GcalYearView,
static void
+event_opened (GcalEventWidget *event_widget,
+ gpointer user_data)
+{
+ g_signal_emit_by_name (GCAL_VIEW (user_data),
+ "event-activated",
+ event_widget);
+}
+
+static void
gcal_year_view_class_init (GcalYearViewClass *klass)
{
GtkContainerClass *container_class;
@@ -654,6 +666,10 @@ gcal_year_view_add (GtkContainer *container,
gtk_widget_set_parent (widget, GTK_WIDGET (container));
+ g_signal_connect (widget,
+ "activate",
+ G_CALLBACK (event_opened),
+ container);
g_free (date);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]