fix: i18n of gtk msgbox buttons (#19904)
* fix: i18n of gtk msgbox buttons
similar to #19756 (12df0e8
) but for messageboxes
* refactor: DRY the gtk+ button mnemonics
* fix: don't compile gtk_util on non-Linux platforms
rename from `gtk_util.[cc,h]` to `util_gtk.[cc,h]` so that it gets
picked up by the `extra_source_filters` rule in `BUILD.gn`.
* fix: make linter happy
It really shows that I cannot build locally atm... :P
This commit is contained in:
parent
2542c51c48
commit
7e61cd0dfb
5 changed files with 70 additions and 32 deletions
21
shell/browser/ui/util_gtk.h
Normal file
21
shell/browser/ui/util_gtk.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright (c) 2019 GitHub, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SHELL_BROWSER_UI_UTIL_GTK_H_
|
||||
#define SHELL_BROWSER_UI_UTIL_GTK_H_
|
||||
|
||||
namespace gtk_util {
|
||||
|
||||
/* These are `const char*` rather than the project-preferred `const char[]`
|
||||
because they must fit the type of an external dependency */
|
||||
extern const char* const kCancelLabel;
|
||||
extern const char* const kNoLabel;
|
||||
extern const char* const kOkLabel;
|
||||
extern const char* const kOpenLabel;
|
||||
extern const char* const kSaveLabel;
|
||||
extern const char* const kYesLabel;
|
||||
|
||||
} // namespace gtk_util
|
||||
|
||||
#endif // SHELL_BROWSER_UI_UTIL_GTK_H_
|
Loading…
Add table
Add a link
Reference in a new issue