summaryrefslogtreecommitdiffstats
path: root/base/gtk_util.h
blob: 435780d713b951cd994e26abf23e02cefa41846b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef BASE_GTK_UTIL_H_
#define BASE_GTK_UTIL_H_
#pragma once

#include <string>

namespace gtk_util {

// 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);

// Removes the "&" accelerators from a Windows label.
std::string RemoveWindowsStyleAccelerators(const std::string& label);

}  // namespace gtk_util

#endif  // BASE_GTK_UTIL_H_