GNOME Bugzilla – Bug 602958
Right click over source in calendar view opens a calendar
Last modified: 2010-11-12 09:36:34 UTC
Right click over a calendar in a calendar view opens a calendar. i think it didn't do that before kill-bonobo. Note that I right-clicked on a source which was a primary source already, and which was opened. The trace of the right-click without boring parts:
+ Trace 219284
Thread 1 (Thread 0xb7f7b770 (LWP 17482))
I don't understand what this is about. Can you give more exact steps?
Sure. I guess the easiest way is to add a remote calendar and do not mark it for offline use. Then go to offline and select the calendar. You'll be prompted about "not being marked for offline". That's OK. But it tells you that also on each right click over this calendar, before the popup menu is shown. It does the same when you've a calendar which requires authentication and you didn't give it a password yet. You are asked for the password. It does it with other calendars as well, but in those two cases it's visually noticeable. I believe it shouldn't open a calendar on right click, because it can take some time with remote calendars. And it should open it especially when it is already opened.
(In reply to comment #2) > Sure. I guess the easiest way is to add a remote calendar and do not mark it > for offline use. Then go to offline and select the calendar. You'll be prompted > about "not being marked for offline". That's OK. Okay, I'm able to reproduce this much. > But it tells you that also on each right click over this calendar, before the popup > menu is shown. But not this part. Whether the calendar is checkmarked or not while offline, right-clicking on it shows the popup menu without any error dialog. I'm testing with my Zimbra CalDAV calendar. Are you still seeing this?
As a related but separate issue, calendars (or any other type of ESource) whose content is not available while offline should probably be desensitized in the source selector tree in offline mode so it's obvious that you can't interact with the calendar at all. That would eliminate a couple lame error dialogs.
Maybe some changes in EAlert and such are preventing to show the dialog, but on the console are still shown > calendar-gui-WARNING **: Unable to load the calendar Repository is offline on every right click of the similar calendar you are using.
Hmm. Since I'm not seeing this could you post a backtrace from where that warning is emitted?
This is when I right click over the CalDAV calendar in offline: Breakpoint 1, IA__g_logv (log_domain=0x7f40963a1392 "calendar-gui", log_level=G_LOG_LEVEL_WARNING, format=0x7f40963a18b0 "Unable to load the calendar %s \n", args1=0x7fffa96e5d00) at gmessages.c:431 431 gboolean was_fatal = (log_level & G_LOG_FLAG_FATAL) != 0; (gdb) bt
+ Trace 220018
Milan, can you retest this with 2.29.90 or later? I did a bunch of work on sidebar / ECalModel interaction a couple weeks ago so this may well be fixed now.
I'm sorry, it's still there.
Created attachment 174312 [details] [review] eds patch for evolution-data-server; ESourceSelector did it, invoking the "primary-source-changed" signal on every click by calling e_source_selector_set_primary_selection unconditionally.
Created commit 704ca40 in eds master (2.91.3+)