summaryrefslogtreecommitdiffstats
path: root/chrome/common/gtk_util.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-24 21:38:25 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-24 21:38:25 +0000
commit355447d7ad8ad01636f91b6b57d3de4edf38f6a9 (patch)
tree199fc5b5d355b04773cea70fc0c0295c1e155294 /chrome/common/gtk_util.h
parentac39c526b5e6fc462bade4ef9d76d0a4b3ee437e (diff)
downloadchromium_src-355447d7ad8ad01636f91b6b57d3de4edf38f6a9.zip
chromium_src-355447d7ad8ad01636f91b6b57d3de4edf38f6a9.tar.gz
chromium_src-355447d7ad8ad01636f91b6b57d3de4edf38f6a9.tar.bz2
Add support for RTL languages in the gtk bookmark bar.
BUG=none TEST=Open a browser window in a RTL language (--lang=he). The bookmark bar layout should correctly be in RTL layout. Review URL: http://codereview.chromium.org/146105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19179 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gtk_util.h')
-rw-r--r--chrome/common/gtk_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h
index e4e7da3..d07393c 100644
--- a/chrome/common/gtk_util.h
+++ b/chrome/common/gtk_util.h
@@ -104,6 +104,12 @@ int MirroredLeftPointForRect(GtkWidget* widget, const gfx::Rect& bounds);
// Returns true if the pointer is currently inside the widget.
bool WidgetContainsCursor(GtkWidget* widget);
+// Packs |widget| into |parent|. If the current UI text direction is
+// RIGHT_TO_LEFT, the widget is packed at the end; otherwise, it is packed at
+// the beginning.
+void BoxPackWidgetWithDirection(GtkBox* parent, GtkWidget* widget,
+ guint expand, guint fill, guint padding);
+
} // namespace gtk_util
#endif // CHROME_COMMON_GTK_UTIL_H_