dateMenu: Re-add special-casing of evolution-calendar

When commit 724a2bd7 changed the way to determine the default
calendar app, it dropped all special handling of evolution.
Unfortunately we still need it to not end up with the default
mail component, so add it back.

https://bugzilla.gnome.org/show_bug.cgi?id=696432
This commit is contained in:
Florian Müllner 2013-03-23 09:29:34 +01:00
parent f8ea825577
commit 390491b37a

View File

@ -221,6 +221,8 @@ const DateMenuButton = new Lang.Class({
this.menu.close(); this.menu.close();
let app = Gio.AppInfo.get_default_for_type('text/calendar', false); let app = Gio.AppInfo.get_default_for_type('text/calendar', false);
if (app.get_id() == 'evolution')
app = Gio.DesktopAppInfo.new('evolution-calendar');
app.launch([], global.create_app_launch_context()); app.launch([], global.create_app_launch_context());
}, },