shell-search: app set initial date to current on its own

This commit is contained in:
Erick Pérez Castellanos
2015-02-06 09:21:37 -05:00
parent b203f4da53
commit 10429b3f8c
+1 -9
View File
@@ -278,22 +278,14 @@ launch_search_cb (GcalShellSearchProvider *search_provider,
guint32 timestamp,
GcalShellSearchProvider2 *skel)
{
GcalShellSearchProviderPrivate *priv;
GApplication *application;
gchar *terms_joined;
icaltimetype current_date;
GList *windows;
priv = search_provider->priv;
application = g_application_get_default ();
terms_joined = g_strjoinv (" ", terms);
current_date = icaltime_current_time_with_zone (gcal_manager_get_system_timezone (priv->manager));
current_date = icaltime_set_timezone (&current_date, gcal_manager_get_system_timezone (priv->manager));
gcal_application_set_initial_date (GCAL_APPLICATION (application), &current_date);
g_application_activate (application);
terms_joined = g_strjoinv (" ", terms);
windows = g_list_reverse (gtk_application_get_windows (GTK_APPLICATION (application)));
if (windows != NULL)
{