diff --git a/gtk/Actions.cc b/gtk/Actions.cc index 9b6d68c7b..612d2bd26 100644 --- a/gtk/Actions.cc +++ b/gtk/Actions.cc @@ -53,10 +53,7 @@ void sort_changed_cb(Gio::SimpleAction& action, Glib::VariantBase const& value, myCore->set_pref(TR_KEY_sort_mode, Glib::VariantBase::cast_dynamic>(value).get()); } -std::array const show_toggle_entries = { - "toggle-main-window"sv, - "toggle-message-log"sv, -}; +auto const show_toggle_entries = std::array{ GTR_KEY_toggle_main_window, GTR_KEY_toggle_message_log }; void toggle_pref_cb(Gio::SimpleAction& action, gpointer /*user_data*/) { @@ -78,36 +75,36 @@ std::array const pref_toggle_entries = { TR_KEY_show_toolbar, // }; -std::array const entries = { - "copy-magnet-link-to-clipboard"sv, - "open-torrent-from-url"sv, - "open-torrent"sv, - "torrent-start"sv, - "torrent-start-now"sv, - "show-stats"sv, - "donate"sv, - "torrent-verify"sv, - "torrent-stop"sv, - "pause-all-torrents"sv, - "start-all-torrents"sv, - "relocate-torrent"sv, - "remove-torrent"sv, - "delete-torrent"sv, - "new-torrent"sv, - "quit"sv, - "select-all"sv, - "deselect-all"sv, - "edit-preferences"sv, - "show-torrent-properties"sv, - "open-torrent-folder"sv, - "show-about-dialog"sv, - "help"sv, - "torrent-reannounce"sv, - "queue-move-top"sv, - "queue-move-up"sv, - "queue-move-down"sv, - "queue-move-bottom"sv, - "present-main-window"sv, +auto const entries = std::array{ + GTR_KEY_copy_magnet_link_to_clipboard, + GTR_KEY_open_torrent_from_url, + GTR_KEY_open_torrent, + GTR_KEY_torrent_start, + GTR_KEY_torrent_start_now, + GTR_KEY_show_stats, + GTR_KEY_donate, + GTR_KEY_torrent_verify, + GTR_KEY_torrent_stop, + GTR_KEY_pause_all_torrents, + GTR_KEY_start_all_torrents, + GTR_KEY_relocate_torrent, + GTR_KEY_remove_torrent, + GTR_KEY_delete_torrent, + GTR_KEY_new_torrent, + GTR_KEY_quit, + GTR_KEY_select_all, + GTR_KEY_deselect_all, + GTR_KEY_edit_preferences, + GTR_KEY_show_torrent_properties, + GTR_KEY_open_torrent_folder, + GTR_KEY_show_about_dialog, + GTR_KEY_help, + GTR_KEY_torrent_reannounce, + GTR_KEY_queue_move_top, + GTR_KEY_queue_move_up, + GTR_KEY_queue_move_down, + GTR_KEY_queue_move_bottom, + GTR_KEY_present_main_window, }; Gtk::Builder* myBuilder = nullptr; @@ -130,7 +127,7 @@ Glib::RefPtr gtr_actions_init(Glib::RefPtr auto const match = gtr_pref_string_get(TR_KEY_sort_mode); { - auto const action_name = Glib::ustring("sort-torrents"); + auto const action_name = GTR_KEY_sort_torrents; auto const action = Gio::SimpleAction::create_radio_string(action_name, match); action->signal_activate().connect([a = action.get(), callback_user_data](auto const& value) { sort_changed_cb(*a, value, callback_user_data); }); diff --git a/gtk/Actions.h b/gtk/Actions.h index 47bc6dd0e..b6294f5d1 100644 --- a/gtk/Actions.h +++ b/gtk/Actions.h @@ -16,6 +16,40 @@ #include #include +inline auto const GTR_KEY_copy_magnet_link_to_clipboard = Glib::ustring{ "copy_magnet_link_to_clipboard" }; +inline auto const GTR_KEY_delete_torrent = Glib::ustring{ "delete_torrent" }; +inline auto const GTR_KEY_deselect_all = Glib::ustring{ "deselect_all" }; +inline auto const GTR_KEY_donate = Glib::ustring{ "donate" }; +inline auto const GTR_KEY_edit_preferences = Glib::ustring{ "edit_preferences" }; +inline auto const GTR_KEY_help = Glib::ustring{ "help" }; +inline auto const GTR_KEY_main_window_popup = Glib::ustring{ "main_window_popup" }; +inline auto const GTR_KEY_new_torrent = Glib::ustring{ "new_torrent" }; +inline auto const GTR_KEY_open_torrent = Glib::ustring{ "open_torrent" }; +inline auto const GTR_KEY_open_torrent_folder = Glib::ustring{ "open_torrent_folder" }; +inline auto const GTR_KEY_open_torrent_from_url = Glib::ustring{ "open_torrent_from_url" }; +inline auto const GTR_KEY_pause_all_torrents = Glib::ustring{ "pause_all_torrents" }; +inline auto const GTR_KEY_present_main_window = Glib::ustring{ "present_main_window" }; +inline auto const GTR_KEY_queue_move_bottom = Glib::ustring{ "queue_move_bottom" }; +inline auto const GTR_KEY_queue_move_down = Glib::ustring{ "queue_move_down" }; +inline auto const GTR_KEY_queue_move_top = Glib::ustring{ "queue_move_top" }; +inline auto const GTR_KEY_queue_move_up = Glib::ustring{ "queue_move_up" }; +inline auto const GTR_KEY_quit = Glib::ustring{ "quit" }; +inline auto const GTR_KEY_relocate_torrent = Glib::ustring{ "relocate_torrent" }; +inline auto const GTR_KEY_remove_torrent = Glib::ustring{ "remove_torrent" }; +inline auto const GTR_KEY_select_all = Glib::ustring{ "select_all" }; +inline auto const GTR_KEY_show_about_dialog = Glib::ustring{ "show_about_dialog" }; +inline auto const GTR_KEY_show_stats = Glib::ustring{ "show_stats" }; +inline auto const GTR_KEY_show_torrent_properties = Glib::ustring{ "show_torrent_properties" }; +inline auto const GTR_KEY_sort_torrents = Glib::ustring{ "sort_torrents" }; +inline auto const GTR_KEY_start_all_torrents = Glib::ustring{ "start_all_torrents" }; +inline auto const GTR_KEY_toggle_main_window = Glib::ustring{ "toggle_main_window" }; +inline auto const GTR_KEY_toggle_message_log = Glib::ustring{ "toggle_message_log" }; +inline auto const GTR_KEY_torrent_reannounce = Glib::ustring{ "torrent_reannounce" }; +inline auto const GTR_KEY_torrent_start = Glib::ustring{ "torrent_start" }; +inline auto const GTR_KEY_torrent_start_now = Glib::ustring{ "torrent_start_now" }; +inline auto const GTR_KEY_torrent_stop = Glib::ustring{ "torrent_stop" }; +inline auto const GTR_KEY_torrent_verify = Glib::ustring{ "torrent_verify" }; + class Session; Glib::RefPtr gtr_actions_init(Glib::RefPtr const& builder, gpointer callback_user_data); diff --git a/gtk/Application.cc b/gtk/Application.cc index a681b521f..89630ac91 100644 --- a/gtk/Application.cc +++ b/gtk/Application.cc @@ -333,30 +333,30 @@ bool Application::Impl::refresh_actions() auto const sel_counts = get_selected_torrent_counts(); bool const has_selection = sel_counts.total_count > 0; - gtr_action_set_sensitive("select-all", torrent_count != 0); - gtr_action_set_sensitive("deselect-all", torrent_count != 0); - gtr_action_set_sensitive("pause-all-torrents", active != 0); - gtr_action_set_sensitive("start-all-torrents", active != total); + gtr_action_set_sensitive(GTR_KEY_select_all, torrent_count != 0); + gtr_action_set_sensitive(GTR_KEY_deselect_all, torrent_count != 0); + gtr_action_set_sensitive(GTR_KEY_pause_all_torrents, active != 0); + gtr_action_set_sensitive(GTR_KEY_start_all_torrents, active != total); - gtr_action_set_sensitive("torrent-stop", (sel_counts.stopped_count < sel_counts.total_count)); - gtr_action_set_sensitive("torrent-start", (sel_counts.stopped_count) > 0); - gtr_action_set_sensitive("torrent-start-now", (sel_counts.stopped_count + sel_counts.queued_count) > 0); - gtr_action_set_sensitive("torrent-verify", has_selection); - gtr_action_set_sensitive("remove-torrent", has_selection); - gtr_action_set_sensitive("delete-torrent", has_selection); - gtr_action_set_sensitive("relocate-torrent", has_selection); - gtr_action_set_sensitive("queue-move-top", has_selection); - gtr_action_set_sensitive("queue-move-up", has_selection); - gtr_action_set_sensitive("queue-move-down", has_selection); - gtr_action_set_sensitive("queue-move-bottom", has_selection); - gtr_action_set_sensitive("show-torrent-properties", has_selection); - gtr_action_set_sensitive("open-torrent-folder", sel_counts.total_count == 1); - gtr_action_set_sensitive("copy-magnet-link-to-clipboard", sel_counts.total_count == 1); + gtr_action_set_sensitive(GTR_KEY_torrent_stop, (sel_counts.stopped_count < sel_counts.total_count)); + gtr_action_set_sensitive(GTR_KEY_torrent_start, (sel_counts.stopped_count) > 0); + gtr_action_set_sensitive(GTR_KEY_torrent_start_now, (sel_counts.stopped_count + sel_counts.queued_count) > 0); + gtr_action_set_sensitive(GTR_KEY_torrent_verify, has_selection); + gtr_action_set_sensitive(GTR_KEY_remove_torrent, has_selection); + gtr_action_set_sensitive(GTR_KEY_delete_torrent, has_selection); + gtr_action_set_sensitive(GTR_KEY_relocate_torrent, has_selection); + gtr_action_set_sensitive(GTR_KEY_queue_move_top, has_selection); + gtr_action_set_sensitive(GTR_KEY_queue_move_up, has_selection); + gtr_action_set_sensitive(GTR_KEY_queue_move_down, has_selection); + gtr_action_set_sensitive(GTR_KEY_queue_move_bottom, has_selection); + gtr_action_set_sensitive(GTR_KEY_show_torrent_properties, has_selection); + gtr_action_set_sensitive(GTR_KEY_open_torrent_folder, sel_counts.total_count == 1); + gtr_action_set_sensitive(GTR_KEY_copy_magnet_link_to_clipboard, sel_counts.total_count == 1); bool const can_update = wind_ != nullptr && wind_->for_each_selected_torrent_until([](auto const& torrent) { return tr_torrentCanManualUpdate(&torrent->get_underlying()); }); - gtr_action_set_sensitive("torrent-reannounce", can_update); + gtr_action_set_sensitive(GTR_KEY_torrent_reannounce, can_update); } refresh_actions_tag_.disconnect(); @@ -458,7 +458,7 @@ bool Application::Impl::on_rpc_changed_idle(tr_rpc_callback_type type, tr_torren switch (type) { case TR_RPC_SESSION_CLOSE: - gtr_action_activate("quit"); + gtr_action_activate(GTR_KEY_quit); break; case TR_RPC_TORRENT_ADDED: @@ -558,7 +558,7 @@ namespace gboolean signal_handler(gpointer user_data) { gtr_message(_("Got termination signal, trying to shut down cleanly. Do it again if it gets stuck.")); - gtr_actions_handler("quit", user_data); + gtr_actions_handler(GTR_KEY_quit, user_data); return G_SOURCE_REMOVE; } @@ -624,7 +624,7 @@ void Application::Impl::on_startup() ui_builder_ = Gtk::Builder::create_from_resource(gtr_get_full_resource_path("transmission-ui.xml"s)); auto const actions = gtr_actions_init(ui_builder_, this); - auto const main_menu = gtr_action_get_object("main-window-menu"); + auto const main_menu = gtr_action_get_object("main_window_menu"); app_.set_menubar(main_menu); /* create main window now to be a parent to any error dialogs */ @@ -684,7 +684,7 @@ void Application::Impl::on_activate() return; } - gtr_action_activate("present-main-window"); + gtr_action_activate(GTR_KEY_present_main_window); } void Application::Impl::open_files(std::vector> const& files) @@ -771,12 +771,12 @@ void Application::Impl::app_setup() if (!start_iconified_) { wind_->show(); - gtr_action_set_toggled("toggle-main-window", true); + gtr_action_set_toggled(GTR_KEY_toggle_main_window, true); } else { gtr_window_set_skip_taskbar_hint(*wind_, icon_ != nullptr); - gtr_action_set_toggled("toggle-main-window", false); + gtr_action_set_toggled(GTR_KEY_toggle_main_window, false); } } @@ -792,7 +792,7 @@ void Application::Impl::placeWindowFromPrefs() void Application::Impl::presentMainWindow() { - gtr_action_set_toggled("toggle-main-window", true); + gtr_action_set_toggled(GTR_KEY_toggle_main_window, true); if (is_iconified_) { @@ -813,7 +813,7 @@ void Application::Impl::presentMainWindow() void Application::Impl::hideMainWindow() { - gtr_action_set_toggled("toggle-main-window", false); + gtr_action_set_toggled(GTR_KEY_toggle_main_window, false); gtr_window_set_skip_taskbar_hint(*wind_, true); gtr_widget_set_visible(*wind_, false); @@ -836,7 +836,7 @@ bool Application::Impl::winclose() { if (icon_ != nullptr) { - gtr_action_activate("toggle-main-window"); + gtr_action_activate(GTR_KEY_toggle_main_window); } else { @@ -1472,9 +1472,8 @@ namespace [[nodiscard]] std::optional get_rpc_method(std::string_view const str) { - if (auto quark = tr_quark_lookup(str)) // method-name, methodName, method_name + if (auto quark = tr_quark_lookup(str)) { - quark = tr_quark_convert(*quark); // method_name switch (*quark) { // method_name @@ -1503,42 +1502,42 @@ void Application::Impl::actions_handler(Glib::ustring const& action_name) { bool changed = false; - if (action_name == "open-torrent-from-url") + if (action_name == GTR_KEY_open_torrent_from_url) { auto w = std::shared_ptr(TorrentUrlChooserDialog::create(*wind_, core_)); gtr_window_on_close(*w, [w]() mutable { w.reset(); }); w->show(); } - else if (action_name == "open-torrent") + else if (action_name == GTR_KEY_open_torrent) { auto w = std::shared_ptr(TorrentFileChooserDialog::create(*wind_, core_)); w->signal_response().connect([w](int /*response*/) mutable { w.reset(); }); w->show(); } - else if (action_name == "show-stats") + else if (action_name == GTR_KEY_show_stats) { auto dialog = std::shared_ptr(StatsDialog::create(*wind_, core_)); gtr_window_on_close(*dialog, [dialog]() mutable { dialog.reset(); }); dialog->show(); } - else if (action_name == "donate") + else if (action_name == GTR_KEY_donate) { gtr_open_uri("https://transmissionbt.com/donate/"); } - else if (action_name == "pause-all-torrents") + else if (action_name == GTR_KEY_pause_all_torrents) { pause_all_torrents(); } - else if (action_name == "start-all-torrents") + else if (action_name == GTR_KEY_start_all_torrents) { start_all_torrents(); } - else if (action_name == "copy-magnet-link-to-clipboard") + else if (action_name == GTR_KEY_copy_magnet_link_to_clipboard) { wind_->for_each_selected_torrent_until( sigc::bind_return(sigc::mem_fun(*this, &Impl::copy_magnet_link_to_clipboard), true)); } - else if (action_name == "relocate-torrent") + else if (action_name == GTR_KEY_relocate_torrent) { auto const ids = get_selected_torrent_ids(); @@ -1553,41 +1552,41 @@ void Application::Impl::actions_handler(Glib::ustring const& action_name) { changed = call_rpc_for_selected_torrents(*method); } - else if (action_name == "open-torrent-folder") + else if (action_name == GTR_KEY_open_torrent_folder) { wind_->for_each_selected_torrent([this](auto const& torrent) { core_->open_folder(torrent->get_id()); }); } - else if (action_name == "show-torrent-properties") + else if (action_name == GTR_KEY_show_torrent_properties) { show_details_dialog_for_selected_torrents(); } - else if (action_name == "new-torrent") + else if (action_name == GTR_KEY_new_torrent) { auto w = std::shared_ptr(MakeDialog::create(*wind_, core_)); gtr_window_on_close(*w, [w]() mutable { w.reset(); }); w->show(); } - else if (action_name == "remove-torrent") + else if (action_name == GTR_KEY_remove_torrent) { remove_selected(false); } - else if (action_name == "delete-torrent") + else if (action_name == GTR_KEY_delete_torrent) { remove_selected(true); } - else if (action_name == "quit") + else if (action_name == GTR_KEY_quit) { on_app_exit(); } - else if (action_name == "select-all") + else if (action_name == GTR_KEY_select_all) { wind_->select_all(); } - else if (action_name == "deselect-all") + else if (action_name == GTR_KEY_deselect_all) { wind_->unselect_all(); } - else if (action_name == "edit-preferences") + else if (action_name == GTR_KEY_edit_preferences) { if (prefs_ == nullptr) { @@ -1597,7 +1596,7 @@ void Application::Impl::actions_handler(Glib::ustring const& action_name) gtr_window_present(prefs_); } - else if (action_name == "toggle-message-log") + else if (action_name == GTR_KEY_toggle_message_log) { if (msgwin_ == nullptr) { @@ -1606,11 +1605,11 @@ void Application::Impl::actions_handler(Glib::ustring const& action_name) *msgwin_, [this]() { - gtr_action_set_toggled("toggle-message-log", false); + gtr_action_set_toggled(GTR_KEY_toggle_message_log, false); msgwin_.reset(); }); - gtr_action_set_toggled("toggle-message-log", true); + gtr_action_set_toggled(GTR_KEY_toggle_message_log, true); msgwin_->show(); } else @@ -1618,19 +1617,19 @@ void Application::Impl::actions_handler(Glib::ustring const& action_name) msgwin_->close(); } } - else if (action_name == "show-about-dialog") + else if (action_name == GTR_KEY_show_about_dialog) { show_about_dialog(); } - else if (action_name == "help") + else if (action_name == GTR_KEY_help) { gtr_open_uri(gtr_get_help_uri()); } - else if (action_name == "toggle-main-window") + else if (action_name == GTR_KEY_toggle_main_window) { toggleMainWindow(); } - else if (action_name == "present-main-window") + else if (action_name == GTR_KEY_present_main_window) { presentMainWindow(); } diff --git a/gtk/MainWindow.cc b/gtk/MainWindow.cc index e5cddfc18..4a8d9295d 100644 --- a/gtk/MainWindow.cc +++ b/gtk/MainWindow.cc @@ -180,7 +180,7 @@ void MainWindow::Impl::on_popup_menu([[maybe_unused]] double event_x, [[maybe_un { if (popup_menu_ == nullptr) { - auto const menu = gtr_action_get_object("main-window-popup"); + auto const menu = gtr_action_get_object(GTR_KEY_main_window_popup); #if GTKMM_CHECK_VERSION(4, 0, 0) popup_menu_ = Gtk::make_managed(menu, Gtk::PopoverMenu::Flags::NESTED); @@ -275,7 +275,7 @@ void MainWindow::Impl::init_view(TorrentView* view, Glib::RefPtrsignal_activate().connect([](guint /*position*/) { gtr_action_activate("show-torrent-properties"); }); + view->signal_activate().connect([](guint /*position*/) { gtr_action_activate(GTR_KEY_show_torrent_properties); }); selection_ = Gtk::MultiSelection::create(model); selection_->signal_selection_changed().connect([this](guint /*position*/, guint /*n_items*/) @@ -297,7 +297,7 @@ void MainWindow::Impl::init_view(TorrentView* view, Glib::RefPtrsignal_popup_menu().connect_notify([this]() { on_popup_menu(0, 0); }); view->signal_row_activated().connect([](auto const& /*path*/, auto* /*column*/) - { gtr_action_activate("show-torrent-properties"); }); + { gtr_action_activate(GTR_KEY_show_torrent_properties); }); view->set_model(model); diff --git a/gtk/MessageLogWindow.cc b/gtk/MessageLogWindow.cc index f749b0512..b9760e4c2 100644 --- a/gtk/MessageLogWindow.cc +++ b/gtk/MessageLogWindow.cc @@ -502,15 +502,15 @@ MessageLogWindow::Impl::Impl( auto const action_group = Gio::SimpleActionGroup::create(); - auto const save_action = Gio::SimpleAction::create("save-message-log"); + auto const save_action = Gio::SimpleAction::create("save_message_log"); save_action->signal_activate().connect([this](auto const& /*value*/) { onSaveRequest(); }); action_group->add_action(save_action); - auto const clear_action = Gio::SimpleAction::create("clear-message-log"); + auto const clear_action = Gio::SimpleAction::create("clear_message_log"); clear_action->signal_activate().connect([this](auto const& /*value*/) { onClearRequest(); }); action_group->add_action(clear_action); - auto const pause_action = Gio::SimpleAction::create_bool("pause-message-log"); + auto const pause_action = Gio::SimpleAction::create_bool("pause_message_log"); pause_action->signal_activate().connect([this, &action = *pause_action](auto const& /*value*/) { onPauseToggled(action); }); action_group->add_action(pause_action); diff --git a/gtk/SystemTrayIcon.cc b/gtk/SystemTrayIcon.cc index 5140e7b0a..e747923bb 100644 --- a/gtk/SystemTrayIcon.cc +++ b/gtk/SystemTrayIcon.cc @@ -114,7 +114,7 @@ SystemTrayIcon::Impl::~Impl() = default; void SystemTrayIcon::Impl::activated() { - gtr_action_activate("toggle-main-window"); + gtr_action_activate(GTR_KEY_toggle_main_window); } void SystemTrayIcon::Impl::popup(guint /*button*/, guint /*when*/) diff --git a/gtk/transmission-ui.xml b/gtk/transmission-ui.xml index d7d8ed69d..67979d966 100644 --- a/gtk/transmission-ui.xml +++ b/gtk/transmission-ui.xml @@ -2,26 +2,26 @@ - + _File
- win.open-torrent + win.open_torrent document-open _Open <control>O Open a torrent - win.open-torrent-from-url + win.open_torrent_from_url document-open Open _URL… <control>U Open URL… - win.new-torrent + win.new_torrent document-new <control>N _New… @@ -29,13 +29,13 @@
- win.start-all-torrents + win.start_all_torrents media-playback-start _Start All Start all torrents - win.pause-all-torrents + win.pause_all_torrents media-playback-pause _Pause All Pause all torrents @@ -54,20 +54,20 @@ _Edit
- win.select-all + win.select_all edit-select-all Select _All <control>A - win.deselect-all + win.deselect_all Dese_lect All <shift><control>A
- win.edit-preferences + win.edit_preferences preferences-system _Preferences @@ -77,14 +77,14 @@ _Torrent
- win.show-torrent-properties + win.show_torrent_properties document-properties _Properties <alt>Return Torrent properties - win.open-torrent-folder + win.open_torrent_folder document-open Open Fold_er <control>E @@ -92,21 +92,21 @@
- win.torrent-start + win.torrent_start media-playback-start _Start <control>S Start torrent - win.torrent-start-now + win.torrent_start_now media-playback-start Start _Now <shift><control>S Start torrent now - win.torrent-reannounce + win.torrent_reannounce network-workgroup Ask Tracker for _More Peers @@ -114,29 +114,29 @@ _Queue
- win.queue-move-top + win.queue_move_top go-top Move to _Top - win.queue-move-up + win.queue_move_up go-up Move _Up - win.queue-move-down + win.queue_move_down go-down Move _Down - win.queue-move-bottom + win.queue_move_bottom go-bottom Move to _Bottom
- win.torrent-stop + win.torrent_stop media-playback-pause _Pause <control>P @@ -145,29 +145,29 @@
- win.relocate-torrent + win.relocate_torrent Set _Location… - win.torrent-verify + win.torrent_verify _Verify Local Data <control>V - win.copy-magnet-link-to-clipboard + win.copy_magnet_link_to_clipboard edit-copy Copy _Magnet Link to Clipboard
- win.remove-torrent + win.remove_torrent list-remove Remove torrent Delete - win.delete-torrent + win.delete_torrent edit-delete _Delete Files and Remove <shift>Delete @@ -199,47 +199,47 @@
- win.sort-torrents + win.sort_torrents Sort by _Activity sort_by_activity - win.sort-torrents + win.sort_torrents Sort by A_ge sort_by_age - win.sort-torrents + win.sort_torrents Sort by _Name sort_by_name - win.sort-torrents + win.sort_torrents Sort by _Progress sort_by_progress - win.sort-torrents + win.sort_torrents Sort by _Queue sort_by_queue - win.sort-torrents + win.sort_torrents Sort by Rati_o sort_by_ratio - win.sort-torrents + win.sort_torrents Sort by Si_ze sort_by_size - win.sort-torrents + win.sort_torrents Sort by Stat_e sort_by_state - win.sort-torrents + win.sort_torrents Sort by Time _Left sort_by_time_left @@ -255,11 +255,11 @@ _Help
- win.toggle-message-log + win.toggle_message_log Message _Log - win.show-stats + win.show_stats _Statistics
@@ -277,7 +277,7 @@ F1 - win.show-about-dialog + win.show_about_dialog help-about _About @@ -285,17 +285,17 @@
- +
- win.show-torrent-properties + win.show_torrent_properties document-properties _Properties <alt>Return Torrent properties - win.open-torrent-folder + win.open_torrent_folder document-open Open Fold_er <control>E @@ -306,47 +306,47 @@ _Sort Torrents By
- win.sort-torrents + win.sort_torrents Sort by _Activity sort_by_activity - win.sort-torrents + win.sort_torrents Sort by A_ge sort_by_age - win.sort-torrents + win.sort_torrents Sort by _Name sort_by_name - win.sort-torrents + win.sort_torrents Sort by _Progress sort_by_progress - win.sort-torrents + win.sort_torrents Sort by _Queue sort_by_queue - win.sort-torrents + win.sort_torrents Sort by Rati_o sort_by_ratio - win.sort-torrents + win.sort_torrents Sort by Si_ze sort_by_size - win.sort-torrents + win.sort_torrents Sort by Stat_e sort_by_state - win.sort-torrents + win.sort_torrents Sort by Time _Left sort_by_time_left @@ -361,21 +361,21 @@
- win.torrent-start + win.torrent_start media-playback-start _Start <control>S Start torrent - win.torrent-start-now + win.torrent_start_now media-playback-start Start _Now <shift><control>S Start torrent now - win.torrent-reannounce + win.torrent_reannounce network-workgroup Ask Tracker for _More Peers @@ -383,29 +383,29 @@ _Queue
- win.queue-move-top + win.queue_move_top go-top Move to _Top - win.queue-move-up + win.queue_move_up go-up Move _Up - win.queue-move-down + win.queue_move_down go-down Move _Down - win.queue-move-bottom + win.queue_move_bottom go-bottom Move to _Bottom
- win.torrent-stop + win.torrent_stop media-playback-pause _Pause <control>P @@ -414,29 +414,29 @@
- win.relocate-torrent + win.relocate_torrent Set _Location… - win.torrent-verify + win.torrent_verify _Verify Local Data <control>V - win.copy-magnet-link-to-clipboard + win.copy_magnet_link_to_clipboard edit-copy Copy _Magnet Link to Clipboard
- win.remove-torrent + win.remove_torrent list-remove Remove torrent Delete - win.delete-torrent + win.delete_torrent edit-delete _Delete Files and Remove <shift>Delete @@ -447,19 +447,19 @@
- win.toggle-main-window + win.toggle_main_window _Show Transmission
- win.open-torrent + win.open_torrent document-open _Open Open a torrent - win.open-torrent-from-url + win.open_torrent_from_url document-open Open _URL… @@ -468,13 +468,13 @@
- win.pause-all-torrents + win.pause_all_torrents media-playback-pause _Pause All Pause all torrents - win.start-all-torrents + win.start_all_torrents media-playback-start _Start All Start all torrents diff --git a/gtk/ui/gtk3/MainWindow.ui b/gtk/ui/gtk3/MainWindow.ui index 51d6976bc..b8dc0213d 100644 --- a/gtk/ui/gtk3/MainWindow.ui +++ b/gtk/ui/gtk3/MainWindow.ui @@ -20,7 +20,7 @@ False Open a torrent True - win.open-torrent + win.open_torrent _Open True document-open @@ -35,7 +35,7 @@ True False Start torrent - win.torrent-start + win.torrent_start _Start True media-playback-start @@ -50,7 +50,7 @@ True False Pause torrent - win.torrent-stop + win.torrent_stop _Pause True media-playback-pause @@ -65,7 +65,7 @@ True False Remove torrent - win.remove-torrent + win.remove_torrent Remove torrent True list-remove @@ -91,7 +91,7 @@ False Torrent properties True - win.show-torrent-properties + win.show_torrent_properties _Properties True document-properties diff --git a/gtk/ui/gtk3/MessageLogWindow.ui b/gtk/ui/gtk3/MessageLogWindow.ui index 1f3288730..d187df2e8 100644 --- a/gtk/ui/gtk3/MessageLogWindow.ui +++ b/gtk/ui/gtk3/MessageLogWindow.ui @@ -22,7 +22,7 @@ True False True - win.save-message-log + win.save_message_log Save _As True document-save-as @@ -37,7 +37,7 @@ True False True - win.clear-message-log + win.clear_message_log Clear True edit-clear @@ -62,7 +62,7 @@ True False True - win.pause-message-log + win.pause_message_log P_ause True media-playback-pause diff --git a/gtk/ui/gtk4/MainWindow.ui b/gtk/ui/gtk4/MainWindow.ui index a125a90ab..8f90fa61b 100644 --- a/gtk/ui/gtk4/MainWindow.ui +++ b/gtk/ui/gtk4/MainWindow.ui @@ -14,7 +14,7 @@ horizontal]]> 1 Open a torrent - win.open-torrent + win.open_torrent center @@ -40,7 +40,7 @@ horizontal]]> 1 Start torrent - win.torrent-start + win.torrent_start _Start 1 media-playback-start @@ -50,7 +50,7 @@ horizontal]]> 1 Pause torrent - win.torrent-stop + win.torrent_stop _Pause 1 media-playback-pause @@ -60,7 +60,7 @@ horizontal]]> 1 Remove torrent - win.remove-torrent + win.remove_torrent Remove torrent 1 list-remove @@ -76,7 +76,7 @@ horizontal]]> 1 Torrent properties - win.show-torrent-properties + win.show_torrent_properties center diff --git a/gtk/ui/gtk4/MessageLogWindow.ui b/gtk/ui/gtk4/MessageLogWindow.ui index 36d7d9c36..1af7abe8f 100644 --- a/gtk/ui/gtk4/MessageLogWindow.ui +++ b/gtk/ui/gtk4/MessageLogWindow.ui @@ -15,7 +15,7 @@ horizontal]]> - win.save-message-log + win.save_message_log center @@ -39,7 +39,7 @@ horizontal]]> - win.clear-message-log + win.clear_message_log center @@ -68,7 +68,7 @@ horizontal]]> - win.pause-message-log + win.pause_message_log center