views: move :event-activated signal to GcalView

We don't really need to copy this signal to every GcalView
implementation. It's just wasting code.
This commit is contained in:
Georges Basile Stavracas Neto
2017-12-16 21:44:09 -02:00
parent c306bbc1ef
commit 5c1bf907fa
4 changed files with 18 additions and 48 deletions
+14
View File
@@ -21,6 +21,7 @@
#define G_LOG_DOMAIN "GcalView"
#include "gcal-event-widget.h"
#include "gcal-view.h"
#include "gcal-utils.h"
@@ -97,6 +98,19 @@ gcal_view_default_init (GcalViewInterface *iface)
G_STRUCT_OFFSET (GcalViewInterface, create_event_detailed),
NULL, NULL, NULL,
G_TYPE_NONE, 2, G_TYPE_POINTER, G_TYPE_POINTER);
/**
* GcalView::event-activated:
*
* Emitted when an event widget inside the view is activated.
*/
g_signal_new ("event-activated",
GCAL_TYPE_VIEW,
G_SIGNAL_RUN_LAST,
0, NULL, NULL, NULL,
G_TYPE_NONE,
1,
GCAL_TYPE_EVENT_WIDGET);
}
/**