summaryrefslogtreecommitdiffstats
path: root/chrome/common/gtk_util.h
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-05 23:09:04 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-05 23:09:04 +0000
commitcc7c1c77040c26a56de3eeb953f468ced2a32186 (patch)
tree4ca3048a6d816ea9aaf324054703623c472a7a34 /chrome/common/gtk_util.h
parente9fd14ddb1888ac8906f04148f727467901c763b (diff)
downloadchromium_src-cc7c1c77040c26a56de3eeb953f468ced2a32186.zip
chromium_src-cc7c1c77040c26a56de3eeb953f468ced2a32186.tar.gz
chromium_src-cc7c1c77040c26a56de3eeb953f468ced2a32186.tar.bz2
Move ConvertAcceleratorsFromWindowsStyle into chrome/common/gtk_util.
Use it on the custom startup url buttons. BUG=11507 Review URL: http://codereview.chromium.org/118327 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17796 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gtk_util.h')
-rw-r--r--chrome/common/gtk_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h
index 45ebdbb..d9827d82 100644
--- a/chrome/common/gtk_util.h
+++ b/chrome/common/gtk_util.h
@@ -6,6 +6,7 @@
#define CHROME_COMMON_GTK_UTIL_H_
#include <gtk/gtk.h>
+#include <string>
#include "base/gfx/point.h"
#include "base/gfx/rect.h"
@@ -50,6 +51,10 @@ void InitRCStyles();
void CenterWidgetInHBox(GtkWidget* hbox, GtkWidget* widget, bool pack_at_end,
int padding);
+// Change windows accelerator style to GTK style. (GTK uses _ for
+// accelerators. Windows uses & with && as an escape for &.)
+std::string ConvertAcceleratorsFromWindowsStyle(const std::string& label);
+
} // namespace gtk_util
#endif // CHROME_COMMON_GTK_UTIL_H_