[gnome-calendar] window: set search terms API



commit bed360b013a7909b76e0a96afb4f9a10cb06e39f
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Thu Feb 5 18:13:12 2015 -0500

    window: set search terms API

 src/gcal-window.c |    8 ++++++++
 src/gcal-window.h |    2 ++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 4235127..3ea289f 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -1586,6 +1586,14 @@ gcal_window_set_search_mode (GcalWindow *window,
 }
 
 void
+gcal_window_set_search_query (GcalWindow  *window,
+                              const gchar *query)
+{
+  GcalWindowPrivate *priv = gcal_window_get_instance_private (window);
+  gtk_entry_set_text (GTK_ENTRY (priv->search_entry), query);
+}
+
+void
 gcal_window_open_event_by_uuid (GcalWindow  *window,
                                 const gchar *uuid)
 {
diff --git a/src/gcal-window.h b/src/gcal-window.h
index 2b8d3e7..66ea13e 100644
--- a/src/gcal-window.h
+++ b/src/gcal-window.h
@@ -56,6 +56,8 @@ GtkWidget*   gcal_window_new_with_view_and_date (GcalApplication    *app,
 void         gcal_window_new_event              (GcalWindow         *window);
 void         gcal_window_set_search_mode        (GcalWindow         *window,
                                                  gboolean            enabled);
+void         gcal_window_set_search_query       (GcalWindow         *window,
+                                                 const gchar        *query);
 void         gcal_window_open_event_by_uuid     (GcalWindow         *window,
                                                  const gchar        *uuid);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]