summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/custom_button.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk/custom_button.cc')
-rw-r--r--chrome/browser/gtk/custom_button.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/gtk/custom_button.cc b/chrome/browser/gtk/custom_button.cc
index b49c422..d31b903 100644
--- a/chrome/browser/gtk/custom_button.cc
+++ b/chrome/browser/gtk/custom_button.cc
@@ -65,7 +65,7 @@ gboolean CustomDrawButtonBase::OnExpose(GtkWidget* widget, GdkEventExpose* e) {
// start of the widget (left for LTR, right for RTL).
int pixbuf_width = gdk_pixbuf_get_width(pixbuf);
int widget_width = widget->allocation.width;
- int x = gtk_widget_get_direction(widget) == GTK_TEXT_DIR_RTL ?
+ int x = (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) ?
widget_width - pixbuf_width : 0;
gdk_cairo_set_source_pixbuf(cairo_context, pixbuf, x, 0);