search-button: Add debug statements
This makes it easier to troubleshoot what triggers and stops searches.
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
41390a246e
commit
d7f200fff8
@@ -253,10 +253,13 @@ on_entry_search_changed_cb (GtkSearchEntry *entry,
|
||||
|
||||
if (!text || *text == '\0')
|
||||
{
|
||||
g_debug ("Search query contents have been cleared");
|
||||
set_model (self, NULL);
|
||||
GCAL_RETURN ();
|
||||
}
|
||||
|
||||
g_debug ("Search query changed to \"%s\"", text);
|
||||
|
||||
sexp_query = g_strdup_printf ("(contains? \"summary\" \"%s\")", text);
|
||||
search_engine = gcal_context_get_search_engine (self->context);
|
||||
gcal_search_engine_search (search_engine,
|
||||
@@ -272,6 +275,7 @@ static void
|
||||
on_entry_stop_search_cb (GtkSearchEntry *search_entry,
|
||||
GcalSearchButton *self)
|
||||
{
|
||||
g_debug ("Exiting search mode");
|
||||
quit_search_entry (self);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user