aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-view.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-03-05 05:07:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-03-05 05:07:00 +0800
commit018866693e09f835b137b25f255d795f69d4a50e (patch)
tree1f6067064c09729fbbbc723d5060d9e469df6ce3 /mail/em-folder-view.c
parent7a0455fc2b247575cb6fe7199a7494fa812503c4 (diff)
downloadgsoc2013-evolution-018866693e09f835b137b25f255d795f69d4a50e.tar.gz
gsoc2013-evolution-018866693e09f835b137b25f255d795f69d4a50e.tar.zst
gsoc2013-evolution-018866693e09f835b137b25f255d795f69d4a50e.zip
If event == NULL, don't try to use event->key.time
2004-03-04 Jeffrey Stedfast <fejj@ximian.com> * em-folder-view.c (emfv_popup): If event == NULL, don't try to use event->key.time * em-migrate.c (upgrade_vfolder_sources_1_4): New function to upgrade vfolder sources. (em_upgrade_xml_1_4): If the doc is vfolders.xml, upgrade the sources nodes. svn path=/trunk/; revision=24971
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r--mail/em-folder-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index d7da84caff..8d25f92942 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -884,9 +884,9 @@ emfv_popup(EMFolderView *emfv, GdkEvent *event)
menu = em_popup_create_menu_once(emp, target, target->mask, target->mask);
- if (event == NULL || event->type == GDK_KEY_PRESS) {
+ if (event == NULL || event->type == GDK_KEY_PRESS) {
/* FIXME: menu pos function */
- gtk_menu_popup(menu, NULL, NULL, NULL, NULL, 0, event->key.time);
+ gtk_menu_popup(menu, NULL, NULL, NULL, NULL, 0, event ? event->key.time : time (NULL));
} else {
gtk_menu_popup(menu, NULL, NULL, NULL, NULL, event->button.button, event->button.time);
}