aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-10-31 00:09:14 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-10-31 00:09:14 +0800
commitb57629aa8243f9123706c770843e99fefced824c (patch)
treec26157218acb1f18b79ce8a57c83b9adb6bfcbc6 /calendar/gui/dialogs
parent4ec29933d911ca99f4d762747224c89bffce9c1b (diff)
downloadgsoc2013-evolution-b57629aa8243f9123706c770843e99fefced824c.tar
gsoc2013-evolution-b57629aa8243f9123706c770843e99fefced824c.tar.gz
gsoc2013-evolution-b57629aa8243f9123706c770843e99fefced824c.tar.bz2
gsoc2013-evolution-b57629aa8243f9123706c770843e99fefced824c.tar.lz
gsoc2013-evolution-b57629aa8243f9123706c770843e99fefced824c.tar.xz
gsoc2013-evolution-b57629aa8243f9123706c770843e99fefced824c.tar.zst
gsoc2013-evolution-b57629aa8243f9123706c770843e99fefced824c.zip
count the actual attendees (doesn't include people delegating
2001-10-30 JP Rosevear <jpr@ximian.com> * 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
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/meeting-page.c8
1 files changed, 6 insertions, 2 deletions
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);