mirror of
https://github.com/Syping/dtranslatebot.git
synced 2026-04-21 14:40:41 +02:00
user_interface: make get_translator() and get_translator_name() static
This commit is contained in:
parent
823a60d64d
commit
4b1d0a6ff8
2 changed files with 3 additions and 3 deletions
|
|
@ -121,7 +121,7 @@ user_interface::user_interface()
|
|||
set_child(*vertical_box);
|
||||
}
|
||||
|
||||
std::vector<Glib::ustring> user_interface::get_translator() {
|
||||
const std::vector<Glib::ustring> user_interface::get_translator() {
|
||||
return {"Stub", "DeepL", "Mozhi", "LibreTranslate", "Lingva Translate"};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@ namespace bot {
|
|||
class user_interface : public Gtk::Window {
|
||||
public:
|
||||
explicit user_interface();
|
||||
std::vector<Glib::ustring> get_translator();
|
||||
const char* get_translator_name(guint translator_id);
|
||||
static const std::vector<Glib::ustring> get_translator();
|
||||
static const char* get_translator_name(guint translator_id);
|
||||
void log_append(const std::string &message, const std::string &type = "Log", bool is_error = false);
|
||||
void log_scroll_down();
|
||||
void run();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue