[gnome-calendar] shell-search: app set initial date to current on its own
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] shell-search: app set initial date to current on its own
- Date: Fri, 6 Feb 2015 14:28:04 +0000 (UTC)
commit 10429b3f8cfdf25ba0ba9e710c1c2d91e6b7fcc8
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Fri Feb 6 09:20:26 2015 -0500
shell-search: app set initial date to current on its own
src/gcal-shell-search-provider.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/src/gcal-shell-search-provider.c b/src/gcal-shell-search-provider.c
index a826ccc..363591e 100644
--- a/src/gcal-shell-search-provider.c
+++ b/src/gcal-shell-search-provider.c
@@ -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 (¤t_date, gcal_manager_get_system_timezone (priv->manager));
- gcal_application_set_initial_date (GCAL_APPLICATION (application), ¤t_date);
-
g_application_activate (application);
+ terms_joined = g_strjoinv (" ", terms);
windows = g_list_reverse (gtk_application_get_windows (GTK_APPLICATION (application)));
if (windows != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]