[gnome-calendar] gcal-view: signal the opening of edit-dialog directly



commit 09f42ad9557fd8affda5eebc363478bdd08977fd
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Sun Dec 21 00:17:33 2014 -0500

    gcal-view: signal the opening of edit-dialog directly

 src/gcal-view.c |    5 +++++
 src/gcal-view.h |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-view.c b/src/gcal-view.c
index 8439067..91c9128 100644
--- a/src/gcal-view.c
+++ b/src/gcal-view.c
@@ -60,6 +60,11 @@ gcal_view_base_init (gpointer g_iface)
                     G_TYPE_DOUBLE,
                     G_TYPE_DOUBLE);
 
+      g_signal_new ("create-event-detailed", GCAL_TYPE_VIEW, G_SIGNAL_RUN_LAST,
+                    G_STRUCT_OFFSET (GcalViewIface, create_event_detailed),
+                    NULL, NULL, NULL,
+                    G_TYPE_NONE, 2, G_TYPE_POINTER, G_TYPE_POINTER);
+
       g_signal_new ("event-activated",
                     GCAL_TYPE_VIEW,
                     G_SIGNAL_RUN_LAST,
diff --git a/src/gcal-view.h b/src/gcal-view.h
index 85db9eb..c42dc8d 100644
--- a/src/gcal-view.h
+++ b/src/gcal-view.h
@@ -46,6 +46,7 @@ struct _GcalViewIface
 
   /* signals */
   void            (*create_event)                       (GcalView *view, icaltimetype *start_span, 
icaltimetype *end_span, gdouble x, gdouble y);
+  void            (*create_event_detailed)              (GcalView *view, icaltimetype *start_span, 
icaltimetype *end_span);
   void            (*event_activated)                    (GcalView *view, GcalEventWidget *event_widget);
 
   /* Time handling related API */


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