aboutsummaryrefslogtreecommitdiff
path: root/hildon/hildon-live-search.c
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2010-01-14 17:50:38 +0200
committerClaudio Saavedra <csaavedra@igalia.com>2010-01-14 17:52:14 +0200
commit57f8b3430ac3be4d87385e5ecea11e7e222be5b8 (patch)
tree953bd296c3d057fabd6c2f6f05b2078efce96384 /hildon/hildon-live-search.c
parent0a02685e1efdcf2ea6ff9f7c82e2f2607b6d99b3 (diff)
Fix build after Berto's patch
Diffstat (limited to 'hildon/hildon-live-search.c')
-rw-r--r--hildon/hildon-live-search.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hildon/hildon-live-search.c b/hildon/hildon-live-search.c
index 66d2f59..49d8e92 100644
--- a/hildon/hildon-live-search.c
+++ b/hildon/hildon-live-search.c
@@ -377,9 +377,9 @@ on_key_press_event (GtkWidget *widget,
g_return_val_if_fail (HILDON_IS_LIVE_SEARCH (live_search), FALSE);
priv = live_search->priv;
- if (GTK_WIDGET_VISIBLE (priv->treeview)) {
+ if (GTK_WIDGET_VISIBLE (priv->kb_focus_widget)) {
/* If the live search is hidden, Ctrl+whatever is always
- * passed to the treeview */
+ * passed to the focus widget */
if (GTK_WIDGET_VISIBLE (live_search) || !(event->state & GDK_CONTROL_MASK)) {
GdkEvent *new_event;
@@ -392,8 +392,8 @@ on_key_press_event (GtkWidget *widget,
new_event = gdk_event_copy ((GdkEvent *)event);
handled = gtk_widget_event (priv->entry, new_event);
gdk_event_free (new_event);
- } else if (!GTK_WIDGET_HAS_FOCUS (priv->treeview)) {
- gtk_widget_grab_focus (GTK_WIDGET (priv->treeview));
+ } else if (!GTK_WIDGET_HAS_FOCUS (priv->kb_focus_widget)) {
+ gtk_widget_grab_focus (GTK_WIDGET (priv->kb_focus_widget));
}
}