aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-03-16 10:19:47 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-03-16 10:19:47 +0800
commite91db1e5a1c13a703dd7035b9b2383f2e3820fca (patch)
tree8fb4eb82871efb1647d1d58579b4add32792d676 /calendar/gui/dialogs
parent0709fc318feae5c38cf678916d54450eff7975c0 (diff)
downloadgsoc2013-evolution-e91db1e5a1c13a703dd7035b9b2383f2e3820fca.tar.gz
gsoc2013-evolution-e91db1e5a1c13a703dd7035b9b2383f2e3820fca.tar.zst
gsoc2013-evolution-e91db1e5a1c13a703dd7035b9b2383f2e3820fca.zip
Updated to use new EPopupMenu API.
2002-03-15 Jeffrey Stedfast <fejj@ximian.com> * gui/e-day-view.c: Updated to use new EPopupMenu API. * gui/e-week-view.c: Updated to use new EPopupMenu API. * gui/e-calendar-table.c: Updated to use new EPopupMenu API. svn path=/trunk/; revision=16184
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/meeting-page.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/calendar/gui/dialogs/meeting-page.c b/calendar/gui/dialogs/meeting-page.c
index 7333380195..9358b40c8b 100644
--- a/calendar/gui/dialogs/meeting-page.c
+++ b/calendar/gui/dialogs/meeting-page.c
@@ -698,14 +698,14 @@ enum {
static EPopupMenu context_menu[] = {
#if 0
- { N_("_Delegate To..."), NULL,
- GTK_SIGNAL_FUNC (popup_delegate_cb),NULL, CAN_DELEGATE },
+ { N_("_Delegate To..."), NULL,
+ GTK_SIGNAL_FUNC (popup_delegate_cb), NULL, NULL, CAN_DELEGATE },
E_POPUP_SEPARATOR,
#endif
- { N_("_Delete"), GNOME_STOCK_MENU_TRASH,
- GTK_SIGNAL_FUNC (popup_delete_cb), NULL, CAN_DELETE },
+ { N_("_Delete"), NULL,
+ GTK_SIGNAL_FUNC (popup_delete_cb), NULL, NULL, CAN_DELETE },
E_POPUP_TERMINATOR
};
@@ -723,7 +723,10 @@ right_click_cb (ETable *etable, gint row, gint col, GdkEvent *event, gpointer da
view_row = e_table_model_to_view_row (etable, row);
priv->row = e_meeting_model_etable_view_to_model_row (etable, priv->model, view_row);
-
+
+ /* FIXME: if you enable Delegate, then change index to '1' */
+ context_menu[0].pixmap = gnome_stock_new_with_icon (GNOME_STOCK_MENU_TRASH);
+
menu = e_popup_menu_create (context_menu, enable_mask, hide_mask, data);
e_auto_kill_popup_menu_on_hide (menu);