From b57629aa8243f9123706c770843e99fefced824c Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 30 Oct 2001 16:09:14 +0000 Subject: count the actual attendees (doesn't include people delegating 2001-10-30 JP Rosevear * gui/e-meeting-model.c (e_meeting_model_count_actual_attendees): count the actual attendees (doesn't include people delegating * gui/e-meeting-time-sel.c: use e_meeting_model_count_actual_attendees (renamed) * gui/e-meeting-time-sel-item.c: use e_meeting_model_etable_view_to_model_row calls instead of calling on the model directly, use e_meeting_model_count_actual_attendees * gui/e-meeting-model.c (e_meeting_model_etable_model_to_view_row): get the real mapping (e_meeting_model_etable_view_to_model_row): ditto (get_key): e-table-without callback (duplicate_key): ditto (free_gotten_key): ditto (free_duplicated_key): ditto (init): create without model (e_meeting_model_etable_from_model): build etable from without model * gui/e-meeting-model.h: update protos * gui/dialogs/meeting-page.c (right_click_cb): convert row from view to model row svn path=/trunk/; revision=14462 --- calendar/gui/dialogs/meeting-page.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'calendar/gui/dialogs') diff --git a/calendar/gui/dialogs/meeting-page.c b/calendar/gui/dialogs/meeting-page.c index f4324cc2dd..d3e126e003 100644 --- a/calendar/gui/dialogs/meeting-page.c +++ b/calendar/gui/dialogs/meeting-page.c @@ -438,7 +438,7 @@ meeting_page_fill_component (CompEditorPage *page, CalComponent *comp) g_free (cn); } - if (e_meeting_model_count_attendees (priv->model) < 1) { + if (e_meeting_model_count_actual_attendees (priv->model) < 1) { e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, "Atleast one attendee is required."); return FALSE; @@ -592,6 +592,7 @@ init_widgets (MeetingPage *mpage) GTK_SIGNAL_FUNC (invite_cb), mpage); } +#if 0 static void popup_delegate_cb (GtkWidget *widget, gpointer data) { @@ -650,6 +651,7 @@ popup_delegate_cb (GtkWidget *widget, gpointer data) g_free (address); gtk_object_unref (GTK_OBJECT (edd)); } +#endif static void popup_delete_cb (GtkWidget *widget, gpointer data) @@ -692,10 +694,12 @@ enum { }; static EPopupMenu context_menu[] = { +#if 0 { N_("_Delegate To..."), NULL, GTK_SIGNAL_FUNC (popup_delegate_cb),NULL, CAN_DELEGATE }, E_POPUP_SEPARATOR, +#endif { N_("_Delete"), GNOME_STOCK_MENU_TRASH, GTK_SIGNAL_FUNC (popup_delete_cb), NULL, CAN_DELETE }, @@ -714,7 +718,7 @@ right_click_cb (ETable *etable, gint row, gint col, GdkEvent *event, gpointer da priv = mpage->priv; - priv->row = row; + priv->row = e_meeting_model_etable_view_to_model_row (priv->model, row); menu = e_popup_menu_create (context_menu, enable_mask, hide_mask, data); e_auto_kill_popup_menu_on_hide (menu); -- cgit v1.2.3