use get_selected_objects() instead of get_selected_comp().

2004-01-14  Rodrigo Moya <rodrigo@ximian.com>

	* gui/e-calendar-table.c (e_calendar_table_show_popup_menu):
	use get_selected_objects() instead of get_selected_comp().

svn path=/trunk/; revision=24223
This commit is contained in:
Rodrigo Moya
2004-01-14 17:56:13 +00:00
committed by Rodrigo Moya
parent 6f24ef0425
commit 7146e58b6a
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2004-01-14 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-calendar-table.c (e_calendar_table_show_popup_menu):
use get_selected_objects() instead of get_selected_comp().
2004-01-14 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-cal-model-tasks.c (get_status): removed assertion.

View File

@ -1098,21 +1098,20 @@ e_calendar_table_show_popup_menu (ETable *table,
int disable_mask = 0;
GtkMenu *gtk_menu;
icalproperty *prop;
GSList *selection;
ECalModelComponent *comp_data;
gboolean read_only = TRUE;
n_selected = e_table_selected_count (table);
if (n_selected <= 0)
selection = get_selected_objects (cal_table);
if (!selection)
return TRUE;
comp_data = get_selected_comp (cal_table);
g_assert (comp_data != NULL);
comp_data = selection->data;
n_selected = g_slist_length (selection);
if (n_selected == 1) {
hide_mask = MASK_MULTIPLE;
/* See if the task has the URL property set */
prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_URL_PROPERTY);
if (!prop)
disable_mask |= MASK_LACKS_URL;
@ -1132,6 +1131,8 @@ e_calendar_table_show_popup_menu (ETable *table,
e_popup_menu (gtk_menu, gdk_event);
g_slist_free (selection);
return TRUE;
}