gnome: play DTMF tones on keypress

If the selected call is in progress and the
input focus is not in an entry, the client will pass
keyboard keys pressed as input to for DTMF tones
to be played by the daemon. The daemon is responsible
for filtering invalid DTMF characters.

Note: this commit disables the GTK built-in treeview
search so it does not steal input focus.

Refs #71632

Change-Id: I127ff814f8bdd84b51f1f8c62132e028189c8f68
diff --git a/src/historyview.cpp b/src/historyview.cpp
index 0d96808..16d958f 100644
--- a/src/historyview.cpp
+++ b/src/historyview.cpp
@@ -214,6 +214,10 @@
     gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(treeview_history), TRUE);
     gtk_container_add(GTK_CONTAINER(self), treeview_history);
 
+    /* disable default search, we will handle it ourselves via LRC;
+     * otherwise the search steals input focus on key presses */
+    gtk_tree_view_set_enable_search(GTK_TREE_VIEW(treeview_history), FALSE);
+
     /* sort the history in descending order by date */
     priv->q_history_model = new QSortFilterProxyModel();
     priv->q_history_model->setSourceModel(CategorizedHistoryModel::instance());