From 342d3c32efc78ba037046d32b137321b915bac6d Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Tue, 5 Jul 2005 04:38:51 +0000 Subject: Created new target type Added #define for the new target type Poped e-cal 2005-07-05 Srinivasa Ragavan * 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 --- calendar/gui/dialogs/cal-attachment-bar.c | 28 ++++++++++++++-------------- calendar/gui/dialogs/comp-editor.c | 9 +++++---- 2 files changed, 19 insertions(+), 18 deletions(-) (limited to 'calendar/gui/dialogs') diff --git a/calendar/gui/dialogs/cal-attachment-bar.c b/calendar/gui/dialogs/cal-attachment-bar.c index b102315db8..17679549f7 100644 --- a/calendar/gui/dialogs/cal-attachment-bar.c +++ b/calendar/gui/dialogs/cal-attachment-bar.c @@ -58,7 +58,7 @@ #include "e-util/e-icon-factory.h" #include "e-util/e-error.h" #include "e-util/e-mktemp.h" -#include "mail/em-popup.h" +#include "../e-cal-popup.h" #define ICON_WIDTH 64 #define ICON_SEPARATORS " /-_" @@ -470,9 +470,9 @@ cab_remove(EPopup *ep, EPopupItem *item, void *data) /* Popup menu handling. */ static EPopupItem cab_popups[] = { - { E_POPUP_ITEM, "10.attach", N_("_Remove"), cab_remove, NULL, GTK_STOCK_REMOVE, EM_POPUP_ATTACHMENTS_MANY }, - { E_POPUP_ITEM, "20.attach", N_("_Properties"), cab_properties, NULL, GTK_STOCK_PROPERTIES, EM_POPUP_ATTACHMENTS_ONE }, - { E_POPUP_BAR, "30.attach.00", NULL, NULL, NULL, NULL, EM_POPUP_ATTACHMENTS_MANY|EM_POPUP_ATTACHMENTS_ONE }, + { E_POPUP_ITEM, "10.attach", N_("_Remove"), cab_remove, NULL, GTK_STOCK_REMOVE, E_CAL_POPUP_ATTACHMENTS_MANY }, + { E_POPUP_ITEM, "20.attach", N_("_Properties"), cab_properties, NULL, GTK_STOCK_PROPERTIES, E_CAL_POPUP_ATTACHMENTS_ONE }, + { E_POPUP_BAR, "30.attach.00", NULL, NULL, NULL, NULL, E_CAL_POPUP_ATTACHMENTS_MANY|E_CAL_POPUP_ATTACHMENTS_ONE }, { E_POPUP_ITEM, "30.attach.01", N_("_Add attachment..."), cab_add, NULL, GTK_STOCK_ADD, 0 }, }; @@ -512,8 +512,8 @@ cab_popup(CalAttachmentBar *bar, GdkEventButton *event, int id) GList *p; GSList *attachments = NULL, *menus = NULL; int i; - EMPopup *emp; - EMPopupTargetAttachments *t; + ECalPopup *ecp; + ECalPopupTargetAttachments *t; GtkMenu *menu; CalAttachment *attachment; @@ -538,18 +538,18 @@ cab_popup(CalAttachmentBar *bar, GdkEventButton *event, int id) for (i=0;itarget.widget = (GtkWidget *)bar; - menu = e_popup_create_menu_once((EPopup *)emp, (EPopupTarget *)t, 0); + menu = e_popup_create_menu_once((EPopup *)ecp, (EPopupTarget *)t, 0); if (event == NULL) gtk_menu_popup(menu, NULL, NULL, cab_popup_position, bar, 0, gtk_get_current_event_time()); diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index fda20375dd..c7a7c10d6d 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -57,6 +57,7 @@ #include "cancel-comp.h" #include "recur-comp.h" #include "comp-editor.h" +#include "../e-cal-popup.h" #include "cal-attachment-bar.h" #include "misc/e-expander.h" @@ -447,7 +448,7 @@ drag_data_received (CompEditor *editor, GdkDragContext *context, return; if (context->action == GDK_ACTION_ASK) { - EMPopup *emp; + ECalPopup *ecp; GSList *menus = NULL; GtkMenu *menu; int i; @@ -466,12 +467,12 @@ drag_data_received (CompEditor *editor, GdkDragContext *context, memcpy(m->selection->data, selection->data, selection->length); m->selection->length = selection->length; - emp = em_popup_new("org.gnome.evolution.mail.editor.popup.drop"); + ecp = e_cal_popup_new("org.gnome.evolution.calendar.editor.popup.drop"); for (i=0;iaction, selection, info, time); -- cgit v1.2.3