aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2005-03-22 23:09:10 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-03-22 23:09:10 +0800
commit2aff6123641900ebd65a622d77deadbbb9a92f6c (patch)
tree0a214800ff4e3a32a4faab15bf1313abded753cb /calendar/gui
parent9ab035ce81904f24cf11098329fe2d00b4096e63 (diff)
downloadgsoc2013-evolution-2aff6123641900ebd65a622d77deadbbb9a92f6c.tar
gsoc2013-evolution-2aff6123641900ebd65a622d77deadbbb9a92f6c.tar.gz
gsoc2013-evolution-2aff6123641900ebd65a622d77deadbbb9a92f6c.tar.bz2
gsoc2013-evolution-2aff6123641900ebd65a622d77deadbbb9a92f6c.tar.lz
gsoc2013-evolution-2aff6123641900ebd65a622d77deadbbb9a92f6c.tar.xz
gsoc2013-evolution-2aff6123641900ebd65a622d77deadbbb9a92f6c.tar.zst
gsoc2013-evolution-2aff6123641900ebd65a622d77deadbbb9a92f6c.zip
Popup all the menu items when clicked on the source.
2005-03-22 Chenthill Palanisamy <pchenthill@novell.com> * gui/calendar-component.c: (popup_event_cb): Popup all the menu items when clicked on the source. svn path=/trunk/; revision=29090
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-component.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index 55c4200115..63cb4859e5 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -564,19 +564,8 @@ popup_event_cb(ESourceSelector *selector, ESource *insource, GdkEventButton *eve
t = e_cal_popup_target_new_source(ep, selector);
t->target.widget = (GtkWidget *)component_view->calendar;
- if (!insource) {
-
- ESourceGroup *group;
-
- group = e_source_selector_get_primary_source_group (selector);
- g_object_ref (group);
- ecc_source_popups [0].user_data = group;
- menus = g_slist_prepend (menus, &ecc_source_popups [0]);
- }
- else {
- for (i=1;i<sizeof(ecc_source_popups)/sizeof(ecc_source_popups[0]);i++)
- menus = g_slist_prepend(menus, &ecc_source_popups[i]);
- }
+ for (i=0;i<sizeof(ecc_source_popups)/sizeof(ecc_source_popups[0]);i++)
+ menus = g_slist_prepend(menus, &ecc_source_popups[i]);
e_popup_add_items((EPopup *)ep, menus, NULL, ecc_source_popup_free, component_view);