diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-24 03:19:13 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-24 03:19:13 +0000 |
commit | 73142769aac422267b84568000a5cc2a4b024f3d (patch) | |
tree | 27f651de1d3656bf505814acfbc7abdd08d2f547 /chrome/browser/gtk/location_bar_view_gtk.cc | |
parent | 92416a93858d7d21044296ec6b7b2440be3ac1bf (diff) | |
download | chromium_src-73142769aac422267b84568000a5cc2a4b024f3d.zip chromium_src-73142769aac422267b84568000a5cc2a4b024f3d.tar.gz chromium_src-73142769aac422267b84568000a5cc2a4b024f3d.tar.bz2 |
GTK: Try to position info bubbles onscreen.
I didn't go so far as to add support for arrows-on-the-bottom
in this change; I'm just making the bubble extend left or right
as needed. I'll add a parameter to specify the default arrow
location (needed for browser action popups) in another CL.
Tested by:
- dragging a window to the right edge of the screen and
confirming that bookmark bubbles open extended to the left
- opening a bookmark bubble, using a little X program to move
the Chrome window to the right side of the screen (can't drag
it there since the pointer is grabbed), and confirming that
the bubble gets updated to extend to the left
- running in Arabic and confirming that bubbles extend to the
left by default but get switched to extend to the right as
needed
BUG=23373
TEST=see above
Review URL: http://codereview.chromium.org/316006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29992 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/location_bar_view_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/location_bar_view_gtk.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/chrome/browser/gtk/location_bar_view_gtk.cc b/chrome/browser/gtk/location_bar_view_gtk.cc index 086cf97..4027d4e 100644 --- a/chrome/browser/gtk/location_bar_view_gtk.cc +++ b/chrome/browser/gtk/location_bar_view_gtk.cc @@ -151,8 +151,6 @@ void LocationBarViewGtk::Init(bool popup_window_mode) { gtk_container_set_border_width(GTK_CONTAINER(hbox_.get()), kHboxBorder); // We will paint for the alignment, to paint the background and border. gtk_widget_set_app_paintable(hbox_.get(), TRUE); - // Have GTK double buffer around the expose signal. - gtk_widget_set_double_buffered(hbox_.get(), TRUE); // Redraw the whole location bar when it changes size (e.g., when toggling // the home button on/off. gtk_widget_set_redraw_on_allocate(hbox_.get(), TRUE); |