month-view: makes a descendant of GcalSubscriber

By making GcalMonthView a descendat of GcalSubscriber it gets
implementation for each of the methods on ECalDataModel subscriber and
utomatically gains the functionality of adding and removing events widgets
This commit is contained in:
Erick Pérez Castellanos
2014-12-04 17:10:46 -05:00
parent cfb2c39a7d
commit aca1b66743
2 changed files with 9 additions and 133 deletions
+3 -4
View File
@@ -21,8 +21,7 @@
#define __GCAL_MONTH_VIEW_H__
#include "gcal-manager.h"
#include <gtk/gtk.h>
#include "gcal-subscriber.h"
G_BEGIN_DECLS
@@ -38,12 +37,12 @@ typedef struct _GcalMonthViewClass GcalMonthViewClass;
struct _GcalMonthView
{
GtkContainer parent;
GcalSubscriber parent;
};
struct _GcalMonthViewClass
{
GtkContainerClass parent_class;
GcalSubscriberClass parent_class;
/* signals */
void (*new_event) (gint new_day);