summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-01 21:10:40 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-01 21:10:40 +0000
commit719863ea3ed530d8dffaf46c60fde6f7589b8e5a (patch)
tree47a2a8bf1e95da032424ab2c9c52fbc07d414524 /chrome/browser
parent993e3e4526f5fa205d2ec290c4f931d97826c9ee (diff)
downloadchromium_src-719863ea3ed530d8dffaf46c60fde6f7589b8e5a.zip
chromium_src-719863ea3ed530d8dffaf46c60fde6f7589b8e5a.tar.gz
chromium_src-719863ea3ed530d8dffaf46c60fde6f7589b8e5a.tar.bz2
Fixes bug where can't see contents of autocomplete edit. This was
happening because all widgets are initially hidden. NativeViewHostGtk only shows the widget, not descendants. BUG=none TEST=none Review URL: http://codereview.chromium.org/118081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17351 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/views/location_bar_view.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/views/location_bar_view.cc b/chrome/browser/views/location_bar_view.cc
index 1138645..cae04b5 100644
--- a/chrome/browser/views/location_bar_view.cc
+++ b/chrome/browser/views/location_bar_view.cc
@@ -6,6 +6,10 @@
#include "build/build_config.h"
+#if defined(OS_LINUX)
+#include <gtk/gtk.h>
+#endif
+
#include "app/gfx/canvas.h"
#include "app/gfx/favicon_size.h"
#include "app/l10n_util.h"
@@ -156,6 +160,12 @@ void LocationBarView::Init() {
command_updater_,
popup_positioner_));
location_entry_->Init();
+ // Make all the children of the widget visible. NOTE: this won't display
+ // anything, it just toggles the visible flag.
+ gtk_widget_show_all(location_entry_->widget());
+ // Hide the widget. NativeViewHostGtk will make it visible again as
+ // necessary.
+ gtk_widget_hide(location_entry_->widget());
#endif
location_entry_view_ = new views::NativeViewHost;
location_entry_view_->SetID(VIEW_ID_AUTOCOMPLETE);