aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
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
parent9ab035ce81904f24cf11098329fe2d00b4096e63 (diff)
downloadgsoc2013-evolution-2aff6123641900ebd65a622d77deadbbb9a92f6c.tar.gz
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')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/calendar-component.c15
2 files changed, 7 insertions, 13 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 27c26ad21e..9bce867653 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2005-03-21 Chenthill Palanisamy <pchenthill@novell.com>
Fixes #73031
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);