diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2005-07-05 12:38:51 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2005-07-05 12:38:51 +0800 |
commit | 342d3c32efc78ba037046d32b137321b915bac6d (patch) | |
tree | 3d6124cd1437c75f5a13a71861343e824ecc57b3 /calendar/gui/e-cal-popup.h | |
parent | d6634fe53c1b9ddb09b538f181b356865b3aeaf2 (diff) | |
download | gsoc2013-evolution-342d3c32efc78ba037046d32b137321b915bac6d.tar.gz gsoc2013-evolution-342d3c32efc78ba037046d32b137321b915bac6d.tar.zst gsoc2013-evolution-342d3c32efc78ba037046d32b137321b915bac6d.zip |
Created new target type Added #define for the new target type Poped e-cal
2005-07-05 Srinivasa Ragavan <sragavan@novell.com>
* gui/e-cal-popup.c: Created new target type
* gui/e-cal-popup.h: Added #define for the new target type
* gui/dialogs/cal-attachment-bar.c: (cab_popup) Poped e-cal instead of
em_*. Removed mailer code from calendar
* gui/dialogs/comp-editor.c: (drag_data_received) Poped e-cal instead of
em_*. Removed mailer code from calendar.
svn path=/trunk/; revision=29630
Diffstat (limited to 'calendar/gui/e-cal-popup.h')
-rw-r--r-- | calendar/gui/e-cal-popup.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/calendar/gui/e-cal-popup.h b/calendar/gui/e-cal-popup.h index 0de18e70b4..8fc2ed5e85 100644 --- a/calendar/gui/e-cal-popup.h +++ b/calendar/gui/e-cal-popup.h @@ -47,6 +47,7 @@ struct _ECalendarView; enum _e_cal_popup_target_t { E_CAL_POPUP_TARGET_SELECT, E_CAL_POPUP_TARGET_SOURCE, + E_CAL_POPUP_TARGET_ATTACHMENTS, }; /** @@ -99,8 +100,21 @@ enum _e_cal_popup_target_source_t { E_CAL_POPUP_SOURCE_NO_OFFLINE = 1 <<4 }; +/** + * enum _e_cal_popup_target_attachments_t - ECalPopupTargetAttachments qualifiers. + * + * @E_CAL_POPUP_ATTACHMENTS_ONE: There is one and only one attachment selected. + * @E_CAL_POPUP_ATTACHMENTS_MANY: There is one or more attachments selected. + * + **/ +enum _e_cal_popup_target_attachments_t { + E_CAL_POPUP_ATTACHMENTS_ONE = 1<<0, /* only 1 selected */ + E_CAL_POPUP_ATTACHMENTS_MANY = 1<<1, /* one or more selected */ +}; + typedef struct _ECalPopupTargetSelect ECalPopupTargetSelect; typedef struct _ECalPopupTargetSource ECalPopupTargetSource; +typedef struct _ECalPopupTargetAttachments ECalPopupTargetAttachments; /** * struct _ECalPopupTargetSelect - A list of address cards. @@ -136,6 +150,20 @@ struct _ECalPopupTargetSource { struct _ESourceSelector *selector; }; +/** + * struct _ECalPopupTargetAttachments - A list of calendar attachments. + * + * @target: Superclass. + * @attachments: A GSList list of CalAttachments. + * + * This target is used to represent a selected list of attachments in + * the calendar attachment area. + **/ +struct _ECalPopupTargetAttachments { + EPopupTarget target; + GSList *attachments; +}; + typedef struct _EPopupItem ECalPopupItem; /* The object */ @@ -155,6 +183,7 @@ ECalPopup *e_cal_popup_new(const char *menuid); ECalPopupTargetSelect *e_cal_popup_target_new_select(ECalPopup *eabp, struct _ECalModel *model, GPtrArray *events); ECalPopupTargetSource *e_cal_popup_target_new_source(ECalPopup *eabp, struct _ESourceSelector *selector); +ECalPopupTargetAttachments * e_cal_popup_target_new_attachments (ECalPopup *ecp, GSList *attachments); /* ********************************************************************** */ |