summaryrefslogtreecommitdiffstats
path: root/chrome/common/gtk_util.h
diff options
context:
space:
mode:
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_