summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/location_bar_view_gtk.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-27 21:55:21 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-27 21:55:21 +0000
commitdcf05d0dff7ed3392ba91eeebd06712a609d0ccc (patch)
treee6d2067b4776daf2da7a8cae4664f06cc72bfc20 /chrome/browser/gtk/location_bar_view_gtk.cc
parentef0258273377dcaf33058194241af360e0961f0e (diff)
downloadchromium_src-dcf05d0dff7ed3392ba91eeebd06712a609d0ccc.zip
chromium_src-dcf05d0dff7ed3392ba91eeebd06712a609d0ccc.tar.gz
chromium_src-dcf05d0dff7ed3392ba91eeebd06712a609d0ccc.tar.bz2
GTK: Make the info bubble (and bookmark bubble and first run bubble) bidi.
BUG=17631 Review URL: http://codereview.chromium.org/160131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21717 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.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/gtk/location_bar_view_gtk.cc b/chrome/browser/gtk/location_bar_view_gtk.cc
index 01587ec..b1c4e66 100644
--- a/chrome/browser/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/gtk/location_bar_view_gtk.cc
@@ -541,9 +541,14 @@ void LocationBarViewGtk::ShowFirstRunBubbleInternal(bool use_OEM_bubble) {
gdk_window_get_origin(widget()->window, &x, &y);
// The bubble needs to be just below the Omnibox and slightly to the right
// of star button, so shift x and y co-ordinates.
- x += widget()->allocation.x + kFirstRunBubbleLeftMargin;
y += widget()->allocation.y + widget()->allocation.height +
kFirstRunBubbleTopMargin;
+ if (l10n_util::GetTextDirection() == l10n_util::LEFT_TO_RIGHT) {
+ x += widget()->allocation.x + kFirstRunBubbleLeftMargin;
+ } else {
+ x += widget()->allocation.x + widget()->allocation.width -
+ kFirstRunBubbleLeftMargin;
+ }
FirstRunBubble::Show(profile_,
GTK_WINDOW(gtk_widget_get_toplevel(widget())),