diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-27 20:03:48 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-27 20:03:48 +0000 |
commit | 872ad5f4027f4eecf4b037d353069ad1b37841b6 (patch) | |
tree | 4d7decb0045aa6019e63a7d583fca0d73997ef40 | |
parent | b8b74d1a72f7b5bdcf6b2b6ac282e4a94b6430ec (diff) | |
download | chromium_src-872ad5f4027f4eecf4b037d353069ad1b37841b6.zip chromium_src-872ad5f4027f4eecf4b037d353069ad1b37841b6.tar.gz chromium_src-872ad5f4027f4eecf4b037d353069ad1b37841b6.tar.bz2 |
widget-gtk: Make it possible to grab focus.
For a touchui build, there is only one native-view shared for all the components
in the browser window, and gtk_widget_grab_focus requires this flag to be set on
the widget to work.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6400004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72872 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | views/widget/gtk_views_fixed.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/widget/gtk_views_fixed.cc b/views/widget/gtk_views_fixed.cc index a2a3f2f..6ab70df8 100644 --- a/views/widget/gtk_views_fixed.cc +++ b/views/widget/gtk_views_fixed.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -70,6 +70,7 @@ static void gtk_views_fixed_class_init(GtkViewsFixedClass* views_fixed_class) { } static void gtk_views_fixed_init(GtkViewsFixed* fixed) { + GTK_WIDGET_SET_FLAGS(GTK_WIDGET(fixed), GTK_CAN_FOCUS); } GtkWidget* gtk_views_fixed_new(void) { |