[gnome-builder/search] GbSearchDisplay: use child_focus() to grab focus in list box
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/search] GbSearchDisplay: use child_focus() to grab focus in list box
- Date: Tue, 16 Dec 2014 03:51:39 +0000 (UTC)
commit 9139de625832a5d1d7df6c730274e422425f10fe
Author: Christian Hergert <christian hergert me>
Date: Mon Dec 15 19:51:33 2014 -0800
GbSearchDisplay: use child_focus() to grab focus in list box
src/search/gb-search-display.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/search/gb-search-display.c b/src/search/gb-search-display.c
index 488e727..aeeed5c 100644
--- a/src/search/gb-search-display.c
+++ b/src/search/gb-search-display.c
@@ -222,8 +222,11 @@ gb_search_display_grab_focus (GtkWidget *widget)
if (row)
{
gtk_list_box_select_row (display->priv->list_box, row);
- gtk_widget_grab_focus (GTK_WIDGET (row));
+ gtk_widget_child_focus (GTK_WIDGET (display->priv->list_box),
+ GTK_DIR_TAB_FORWARD);
}
+ else
+ GTK_WIDGET_CLASS (gb_search_display_parent_class)->grab_focus (widget);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]