mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
This reverts commit a0305a3a12.
This commit is contained in:
@@ -62,39 +62,36 @@ std::array<std::string_view, 6> const pref_toggle_entries = {
|
|||||||
"show-toolbar"sv, //
|
"show-toolbar"sv, //
|
||||||
};
|
};
|
||||||
|
|
||||||
std::array<std::string_view, 12> const window_entries = {
|
std::array<std::string_view, 29> const entries = {
|
||||||
"open-torrent-from-url"sv, //
|
|
||||||
"open-torrent"sv, //
|
|
||||||
"show-stats"sv, //
|
|
||||||
"donate"sv, //
|
|
||||||
"pause-all-torrents"sv, //
|
|
||||||
"start-all-torrents"sv, //
|
|
||||||
"new-torrent"sv, //
|
|
||||||
"quit"sv, //
|
|
||||||
"edit-preferences"sv, //
|
|
||||||
"show-about-dialog"sv, //
|
|
||||||
"help"sv, //
|
|
||||||
"present-main-window"sv, //
|
|
||||||
};
|
|
||||||
|
|
||||||
std::array<std::string_view, 17> const torrent_entries = {
|
|
||||||
"copy-magnet-link-to-clipboard"sv,
|
"copy-magnet-link-to-clipboard"sv,
|
||||||
|
"open-torrent-from-url"sv,
|
||||||
|
"open-torrent"sv,
|
||||||
"torrent-start"sv,
|
"torrent-start"sv,
|
||||||
"torrent-start-now"sv,
|
"torrent-start-now"sv,
|
||||||
|
"show-stats"sv,
|
||||||
|
"donate"sv,
|
||||||
"torrent-verify"sv,
|
"torrent-verify"sv,
|
||||||
"torrent-stop"sv,
|
"torrent-stop"sv,
|
||||||
|
"pause-all-torrents"sv,
|
||||||
|
"start-all-torrents"sv,
|
||||||
"relocate-torrent"sv,
|
"relocate-torrent"sv,
|
||||||
"remove-torrent"sv,
|
"remove-torrent"sv,
|
||||||
"delete-torrent"sv,
|
"delete-torrent"sv,
|
||||||
|
"new-torrent"sv,
|
||||||
|
"quit"sv,
|
||||||
"select-all"sv,
|
"select-all"sv,
|
||||||
"deselect-all"sv,
|
"deselect-all"sv,
|
||||||
|
"edit-preferences"sv,
|
||||||
"show-torrent-properties"sv,
|
"show-torrent-properties"sv,
|
||||||
"open-torrent-folder"sv,
|
"open-torrent-folder"sv,
|
||||||
|
"show-about-dialog"sv,
|
||||||
|
"help"sv,
|
||||||
"torrent-reannounce"sv,
|
"torrent-reannounce"sv,
|
||||||
"queue-move-top"sv,
|
"queue-move-top"sv,
|
||||||
"queue-move-up"sv,
|
"queue-move-up"sv,
|
||||||
"queue-move-down"sv,
|
"queue-move-down"sv,
|
||||||
"queue-move-bottom"sv,
|
"queue-move-bottom"sv,
|
||||||
|
"present-main-window"sv,
|
||||||
};
|
};
|
||||||
|
|
||||||
Gtk::Builder* myBuilder = nullptr;
|
Gtk::Builder* myBuilder = nullptr;
|
||||||
@@ -108,9 +105,7 @@ void gtr_actions_set_core(Glib::RefPtr<Session> const& core)
|
|||||||
myCore = gtr_get_ptr(core);
|
myCore = gtr_get_ptr(core);
|
||||||
}
|
}
|
||||||
|
|
||||||
Glib::RefPtr<Gio::SimpleActionGroup> gtr_actions_init_window(
|
Glib::RefPtr<Gio::SimpleActionGroup> gtr_actions_init(Glib::RefPtr<Gtk::Builder> const& builder, gpointer callback_user_data)
|
||||||
Glib::RefPtr<Gtk::Builder> const& builder,
|
|
||||||
gpointer callback_user_data)
|
|
||||||
{
|
{
|
||||||
myBuilder = gtr_get_ptr(builder);
|
myBuilder = gtr_get_ptr(builder);
|
||||||
|
|
||||||
@@ -147,24 +142,7 @@ Glib::RefPtr<Gio::SimpleActionGroup> gtr_actions_init_window(
|
|||||||
key_to_action.try_emplace(action_name, action);
|
key_to_action.try_emplace(action_name, action);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto const& action_name_view : window_entries)
|
for (auto const& action_name_view : entries)
|
||||||
{
|
|
||||||
auto const action_name = Glib::ustring(std::string(action_name_view));
|
|
||||||
auto const action = Gio::SimpleAction::create(action_name);
|
|
||||||
action->signal_activate().connect([a = gtr_get_ptr(action), callback_user_data](auto const& /*value*/)
|
|
||||||
{ action_cb(*a, callback_user_data); });
|
|
||||||
action_group->add_action(action);
|
|
||||||
key_to_action.try_emplace(action_name, action);
|
|
||||||
}
|
|
||||||
|
|
||||||
return action_group;
|
|
||||||
}
|
|
||||||
|
|
||||||
Glib::RefPtr<Gio::SimpleActionGroup> gtr_actions_init_torrent(gpointer callback_user_data)
|
|
||||||
{
|
|
||||||
auto const action_group = Gio::SimpleActionGroup::create();
|
|
||||||
|
|
||||||
for (auto const& action_name_view : torrent_entries)
|
|
||||||
{
|
{
|
||||||
auto const action_name = Glib::ustring(std::string(action_name_view));
|
auto const action_name = Glib::ustring(std::string(action_name_view));
|
||||||
auto const action = Gio::SimpleAction::create(action_name);
|
auto const action = Gio::SimpleAction::create(action_name);
|
||||||
|
|||||||
@@ -11,10 +11,7 @@
|
|||||||
|
|
||||||
class Session;
|
class Session;
|
||||||
|
|
||||||
Glib::RefPtr<Gio::SimpleActionGroup> gtr_actions_init_window(
|
Glib::RefPtr<Gio::SimpleActionGroup> gtr_actions_init(Glib::RefPtr<Gtk::Builder> const& builder, gpointer callback_user_data);
|
||||||
Glib::RefPtr<Gtk::Builder> const& builder,
|
|
||||||
gpointer callback_user_data);
|
|
||||||
Glib::RefPtr<Gio::SimpleActionGroup> gtr_actions_init_torrent(gpointer callback_user_data);
|
|
||||||
void gtr_actions_set_core(Glib::RefPtr<Session> const& core);
|
void gtr_actions_set_core(Glib::RefPtr<Session> const& core);
|
||||||
void gtr_actions_handler(Glib::ustring const& action_name, gpointer user_data);
|
void gtr_actions_handler(Glib::ustring const& action_name, gpointer user_data);
|
||||||
|
|
||||||
|
|||||||
@@ -562,13 +562,12 @@ void Application::Impl::on_startup()
|
|||||||
|
|
||||||
/* init the ui manager */
|
/* init the ui manager */
|
||||||
ui_builder_ = Gtk::Builder::create_from_resource(gtr_get_full_resource_path("transmission-ui.xml"s));
|
ui_builder_ = Gtk::Builder::create_from_resource(gtr_get_full_resource_path("transmission-ui.xml"s));
|
||||||
auto const actions_window = gtr_actions_init_window(ui_builder_, this);
|
auto const actions = gtr_actions_init(ui_builder_, this);
|
||||||
auto const actions_torrent = gtr_actions_init_torrent(this);
|
|
||||||
|
|
||||||
app_.set_menubar(gtr_action_get_object<Gio::Menu>("main-window-menu"));
|
app_.set_menubar(gtr_action_get_object<Gio::Menu>("main-window-menu"));
|
||||||
|
|
||||||
/* create main window now to be a parent to any error dialogs */
|
/* create main window now to be a parent to any error dialogs */
|
||||||
wind_ = MainWindow::create(app_, actions_window, actions_torrent, core_);
|
wind_ = MainWindow::create(app_, actions, core_);
|
||||||
wind_->signal_size_allocate().connect(sigc::mem_fun(*this, &Impl::on_main_window_size_allocated));
|
wind_->signal_size_allocate().connect(sigc::mem_fun(*this, &Impl::on_main_window_size_allocated));
|
||||||
app_.hold();
|
app_.hold();
|
||||||
app_setup();
|
app_setup();
|
||||||
|
|||||||
@@ -24,11 +24,7 @@
|
|||||||
class MainWindow::Impl
|
class MainWindow::Impl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Impl(
|
Impl(MainWindow& window, Glib::RefPtr<Gio::ActionGroup> const& actions, Glib::RefPtr<Session> const& core);
|
||||||
MainWindow& window,
|
|
||||||
Glib::RefPtr<Gio::ActionGroup> const& actions_window,
|
|
||||||
Glib::RefPtr<Gio::ActionGroup> const& actions_torrent,
|
|
||||||
Glib::RefPtr<Session> const& core);
|
|
||||||
~Impl();
|
~Impl();
|
||||||
|
|
||||||
TR_DISABLE_COPY_MOVE(Impl)
|
TR_DISABLE_COPY_MOVE(Impl)
|
||||||
@@ -40,7 +36,7 @@ public:
|
|||||||
void prefsChanged(tr_quark key);
|
void prefsChanged(tr_quark key);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::TreeView* makeview(Glib::RefPtr<Gtk::TreeModel> const& model, Glib::RefPtr<Gio::ActionGroup> const& actions_torrent);
|
Gtk::TreeView* makeview(Glib::RefPtr<Gtk::TreeModel> const& model);
|
||||||
|
|
||||||
Gtk::Menu* createOptionsMenu();
|
Gtk::Menu* createOptionsMenu();
|
||||||
Gtk::Menu* createSpeedMenu(tr_direction dir);
|
Gtk::Menu* createSpeedMenu(tr_direction dir);
|
||||||
@@ -122,9 +118,7 @@ bool tree_view_search_equal_func(
|
|||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
Gtk::TreeView* MainWindow::Impl::makeview(
|
Gtk::TreeView* MainWindow::Impl::makeview(Glib::RefPtr<Gtk::TreeModel> const& model)
|
||||||
Glib::RefPtr<Gtk::TreeModel> const& model,
|
|
||||||
Glib::RefPtr<Gio::ActionGroup> const& actions_torrent)
|
|
||||||
{
|
{
|
||||||
auto* view = Gtk::make_managed<Gtk::TreeView>();
|
auto* view = Gtk::make_managed<Gtk::TreeView>();
|
||||||
view->set_search_column(torrent_cols.name_collated);
|
view->set_search_column(torrent_cols.name_collated);
|
||||||
@@ -160,16 +154,6 @@ Gtk::TreeView* MainWindow::Impl::makeview(
|
|||||||
{ return on_tree_view_button_released(view, event); });
|
{ return on_tree_view_button_released(view, event); });
|
||||||
view->signal_row_activated().connect([](auto const& /*path*/, auto* /*column*/)
|
view->signal_row_activated().connect([](auto const& /*path*/, auto* /*column*/)
|
||||||
{ gtr_action_activate("show-torrent-properties"); });
|
{ gtr_action_activate("show-torrent-properties"); });
|
||||||
view->signal_state_flags_changed().connect(
|
|
||||||
[this, view, actions_torrent](Gtk::StateFlags previous)
|
|
||||||
{
|
|
||||||
Gtk::StateFlags changed = previous ^ view->get_state_flags();
|
|
||||||
if (changed & Gtk::StateFlags::STATE_FLAG_FOCUSED)
|
|
||||||
{
|
|
||||||
view->has_focus() ? window_.insert_action_group("torrent", actions_torrent) :
|
|
||||||
window_.remove_action_group("torrent");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
view->set_model(model);
|
view->set_model(model);
|
||||||
|
|
||||||
@@ -408,31 +392,22 @@ void MainWindow::Impl::onOptionsClicked(Gtk::Button* button)
|
|||||||
|
|
||||||
std::unique_ptr<MainWindow> MainWindow::create(
|
std::unique_ptr<MainWindow> MainWindow::create(
|
||||||
Gtk::Application& app,
|
Gtk::Application& app,
|
||||||
Glib::RefPtr<Gio::ActionGroup> const& actions_window,
|
Glib::RefPtr<Gio::ActionGroup> const& actions,
|
||||||
Glib::RefPtr<Gio::ActionGroup> const& actions_torrent,
|
|
||||||
Glib::RefPtr<Session> const& core)
|
Glib::RefPtr<Session> const& core)
|
||||||
{
|
{
|
||||||
return std::unique_ptr<MainWindow>(new MainWindow(app, actions_window, actions_torrent, core));
|
return std::unique_ptr<MainWindow>(new MainWindow(app, actions, core));
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::MainWindow(
|
MainWindow::MainWindow(Gtk::Application& app, Glib::RefPtr<Gio::ActionGroup> const& actions, Glib::RefPtr<Session> const& core)
|
||||||
Gtk::Application& app,
|
|
||||||
Glib::RefPtr<Gio::ActionGroup> const& actions_window,
|
|
||||||
Glib::RefPtr<Gio::ActionGroup> const& actions_torrent,
|
|
||||||
Glib::RefPtr<Session> const& core)
|
|
||||||
: Gtk::ApplicationWindow()
|
: Gtk::ApplicationWindow()
|
||||||
, impl_(std::make_unique<Impl>(*this, actions_window, actions_torrent, core))
|
, impl_(std::make_unique<Impl>(*this, actions, core))
|
||||||
{
|
{
|
||||||
app.add_window(*this);
|
app.add_window(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow() = default;
|
MainWindow::~MainWindow() = default;
|
||||||
|
|
||||||
MainWindow::Impl::Impl(
|
MainWindow::Impl::Impl(MainWindow& window, Glib::RefPtr<Gio::ActionGroup> const& actions, Glib::RefPtr<Session> const& core)
|
||||||
MainWindow& window,
|
|
||||||
Glib::RefPtr<Gio::ActionGroup> const& actions_window,
|
|
||||||
Glib::RefPtr<Gio::ActionGroup> const& actions_torrent,
|
|
||||||
Glib::RefPtr<Session> const& core)
|
|
||||||
: window_(window)
|
: window_(window)
|
||||||
, core_(core)
|
, core_(core)
|
||||||
{
|
{
|
||||||
@@ -458,8 +433,7 @@ MainWindow::Impl::Impl(
|
|||||||
window.maximize();
|
window.maximize();
|
||||||
}
|
}
|
||||||
|
|
||||||
window.insert_action_group("win", actions_window);
|
window.insert_action_group("win", actions);
|
||||||
window.insert_action_group("torrent", actions_torrent);
|
|
||||||
/* Add style provider to the window. */
|
/* Add style provider to the window. */
|
||||||
/* Please move it to separate .css file if you’re adding more styles here. */
|
/* Please move it to separate .css file if you’re adding more styles here. */
|
||||||
auto const* style = ".tr-workarea.frame {border-left-width: 0; border-right-width: 0; border-radius: 0;}";
|
auto const* style = ".tr-workarea.frame {border-left-width: 0; border-right-width: 0; border-radius: 0;}";
|
||||||
@@ -555,7 +529,7 @@ MainWindow::Impl::Impl(
|
|||||||
*** Workarea
|
*** Workarea
|
||||||
**/
|
**/
|
||||||
|
|
||||||
view_ = makeview(filter_->get_filter_model(), actions_torrent);
|
view_ = makeview(filter_->get_filter_model());
|
||||||
scroll_ = Gtk::make_managed<Gtk::ScrolledWindow>();
|
scroll_ = Gtk::make_managed<Gtk::ScrolledWindow>();
|
||||||
scroll_->set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
|
scroll_->set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
|
||||||
scroll_->set_shadow_type(Gtk::SHADOW_OUT);
|
scroll_->set_shadow_type(Gtk::SHADOW_OUT);
|
||||||
|
|||||||
@@ -22,8 +22,7 @@ public:
|
|||||||
|
|
||||||
static std::unique_ptr<MainWindow> create(
|
static std::unique_ptr<MainWindow> create(
|
||||||
Gtk::Application& app,
|
Gtk::Application& app,
|
||||||
Glib::RefPtr<Gio::ActionGroup> const& actions_window,
|
Glib::RefPtr<Gio::ActionGroup> const& actions,
|
||||||
Glib::RefPtr<Gio::ActionGroup> const& actions_torrent,
|
|
||||||
Glib::RefPtr<Session> const& core);
|
Glib::RefPtr<Session> const& core);
|
||||||
|
|
||||||
Glib::RefPtr<Gtk::TreeSelection> get_selection() const;
|
Glib::RefPtr<Gtk::TreeSelection> get_selection() const;
|
||||||
@@ -32,11 +31,7 @@ public:
|
|||||||
void refresh();
|
void refresh();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
MainWindow(
|
MainWindow(Gtk::Application& app, Glib::RefPtr<Gio::ActionGroup> const& actions, Glib::RefPtr<Session> const& core);
|
||||||
Gtk::Application& app,
|
|
||||||
Glib::RefPtr<Gio::ActionGroup> const& actions_window,
|
|
||||||
Glib::RefPtr<Gio::ActionGroup> const& actions_torrent,
|
|
||||||
Glib::RefPtr<Session> const& core);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
class Impl;
|
class Impl;
|
||||||
|
|||||||
@@ -54,13 +54,13 @@
|
|||||||
<attribute name="label" translatable="true">_Edit</attribute>
|
<attribute name="label" translatable="true">_Edit</attribute>
|
||||||
<section>
|
<section>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.select-all</attribute>
|
<attribute name="action">win.select-all</attribute>
|
||||||
<attribute name="icon">edit-select-all</attribute>
|
<attribute name="icon">edit-select-all</attribute>
|
||||||
<attribute name="label" translatable="yes">Select _All</attribute>
|
<attribute name="label" translatable="yes">Select _All</attribute>
|
||||||
<attribute name="accel"><control>A</attribute>
|
<attribute name="accel"><control>A</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.deselect-all</attribute>
|
<attribute name="action">win.deselect-all</attribute>
|
||||||
<attribute name="label" translatable="yes">Dese_lect All</attribute>
|
<attribute name="label" translatable="yes">Dese_lect All</attribute>
|
||||||
<attribute name="accel"><shift><control>A</attribute>
|
<attribute name="accel"><shift><control>A</attribute>
|
||||||
</item>
|
</item>
|
||||||
@@ -77,14 +77,14 @@
|
|||||||
<attribute name="label" translatable="true">_Torrent</attribute>
|
<attribute name="label" translatable="true">_Torrent</attribute>
|
||||||
<section>
|
<section>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.show-torrent-properties</attribute>
|
<attribute name="action">win.show-torrent-properties</attribute>
|
||||||
<attribute name="icon">document-properties</attribute>
|
<attribute name="icon">document-properties</attribute>
|
||||||
<attribute name="label" translatable="yes">_Properties</attribute>
|
<attribute name="label" translatable="yes">_Properties</attribute>
|
||||||
<attribute name="accel"><alt>Return</attribute>
|
<attribute name="accel"><alt>Return</attribute>
|
||||||
<attribute name="tooltip" translatable="yes">Torrent properties</attribute>
|
<attribute name="tooltip" translatable="yes">Torrent properties</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.open-torrent-folder</attribute>
|
<attribute name="action">win.open-torrent-folder</attribute>
|
||||||
<attribute name="icon">document-open</attribute>
|
<attribute name="icon">document-open</attribute>
|
||||||
<attribute name="label" translatable="yes">Open Fold_er</attribute>
|
<attribute name="label" translatable="yes">Open Fold_er</attribute>
|
||||||
<attribute name="accel"><control>E</attribute>
|
<attribute name="accel"><control>E</attribute>
|
||||||
@@ -92,21 +92,21 @@
|
|||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.torrent-start</attribute>
|
<attribute name="action">win.torrent-start</attribute>
|
||||||
<attribute name="icon">media-playback-start</attribute>
|
<attribute name="icon">media-playback-start</attribute>
|
||||||
<attribute name="label" translatable="yes">_Start</attribute>
|
<attribute name="label" translatable="yes">_Start</attribute>
|
||||||
<attribute name="accel"><control>S</attribute>
|
<attribute name="accel"><control>S</attribute>
|
||||||
<attribute name="tooltop" translatable="yes">Start torrent</attribute>
|
<attribute name="tooltop" translatable="yes">Start torrent</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.torrent-start-now</attribute>
|
<attribute name="action">win.torrent-start-now</attribute>
|
||||||
<attribute name="icon">media-playback-start</attribute>
|
<attribute name="icon">media-playback-start</attribute>
|
||||||
<attribute name="label" translatable="yes">Start _Now</attribute>
|
<attribute name="label" translatable="yes">Start _Now</attribute>
|
||||||
<attribute name="accel"><shift><control>S</attribute>
|
<attribute name="accel"><shift><control>S</attribute>
|
||||||
<attribute name="tooltop" translatable="yes">Start torrent now</attribute>
|
<attribute name="tooltop" translatable="yes">Start torrent now</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.torrent-reannounce</attribute>
|
<attribute name="action">win.torrent-reannounce</attribute>
|
||||||
<attribute name="icon">network-workgroup</attribute>
|
<attribute name="icon">network-workgroup</attribute>
|
||||||
<attribute name="label" translatable="yes">Ask Tracker for _More Peers</attribute>
|
<attribute name="label" translatable="yes">Ask Tracker for _More Peers</attribute>
|
||||||
</item>
|
</item>
|
||||||
@@ -114,29 +114,29 @@
|
|||||||
<attribute name="label" translatable="true">_Queue</attribute>
|
<attribute name="label" translatable="true">_Queue</attribute>
|
||||||
<section>
|
<section>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.queue-move-top</attribute>
|
<attribute name="action">win.queue-move-top</attribute>
|
||||||
<attribute name="icon">go-top</attribute>
|
<attribute name="icon">go-top</attribute>
|
||||||
<attribute name="label" translatable="yes">Move to _Top</attribute>
|
<attribute name="label" translatable="yes">Move to _Top</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.queue-move-up</attribute>
|
<attribute name="action">win.queue-move-up</attribute>
|
||||||
<attribute name="icon">go-up</attribute>
|
<attribute name="icon">go-up</attribute>
|
||||||
<attribute name="label" translatable="yes">Move _Up</attribute>
|
<attribute name="label" translatable="yes">Move _Up</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.queue-move-down</attribute>
|
<attribute name="action">win.queue-move-down</attribute>
|
||||||
<attribute name="icon">go-down</attribute>
|
<attribute name="icon">go-down</attribute>
|
||||||
<attribute name="label" translatable="yes">Move _Down</attribute>
|
<attribute name="label" translatable="yes">Move _Down</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.queue-move-bottom</attribute>
|
<attribute name="action">win.queue-move-bottom</attribute>
|
||||||
<attribute name="icon">go-bottom</attribute>
|
<attribute name="icon">go-bottom</attribute>
|
||||||
<attribute name="label" translatable="yes">Move to _Bottom</attribute>
|
<attribute name="label" translatable="yes">Move to _Bottom</attribute>
|
||||||
</item>
|
</item>
|
||||||
</section>
|
</section>
|
||||||
</submenu>
|
</submenu>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.torrent-stop</attribute>
|
<attribute name="action">win.torrent-stop</attribute>
|
||||||
<attribute name="icon">media-playback-pause</attribute>
|
<attribute name="icon">media-playback-pause</attribute>
|
||||||
<attribute name="label" translatable="yes">_Pause</attribute>
|
<attribute name="label" translatable="yes">_Pause</attribute>
|
||||||
<attribute name="accel"><control>P</attribute>
|
<attribute name="accel"><control>P</attribute>
|
||||||
@@ -145,29 +145,29 @@
|
|||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.relocate-torrent</attribute>
|
<attribute name="action">win.relocate-torrent</attribute>
|
||||||
<attribute name="label" translatable="yes">Set _Location…</attribute>
|
<attribute name="label" translatable="yes">Set _Location…</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.torrent-verify</attribute>
|
<attribute name="action">win.torrent-verify</attribute>
|
||||||
<attribute name="label" translatable="yes">_Verify Local Data</attribute>
|
<attribute name="label" translatable="yes">_Verify Local Data</attribute>
|
||||||
<attribute name="accel"><control>V</attribute>
|
<attribute name="accel"><control>V</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.copy-magnet-link-to-clipboard</attribute>
|
<attribute name="action">win.copy-magnet-link-to-clipboard</attribute>
|
||||||
<attribute name="icon">edit-copy</attribute>
|
<attribute name="icon">edit-copy</attribute>
|
||||||
<attribute name="label" translatable="yes">Copy _Magnet Link to Clipboard</attribute>
|
<attribute name="label" translatable="yes">Copy _Magnet Link to Clipboard</attribute>
|
||||||
</item>
|
</item>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.remove-torrent</attribute>
|
<attribute name="action">win.remove-torrent</attribute>
|
||||||
<attribute name="icon">list-remove</attribute>
|
<attribute name="icon">list-remove</attribute>
|
||||||
<attribute name="label" translatable="yes">Remove torrent</attribute>
|
<attribute name="label" translatable="yes">Remove torrent</attribute>
|
||||||
<attribute name="accel">Delete</attribute>
|
<attribute name="accel">Delete</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.delete-torrent</attribute>
|
<attribute name="action">win.delete-torrent</attribute>
|
||||||
<attribute name="icon">edit-delete</attribute>
|
<attribute name="icon">edit-delete</attribute>
|
||||||
<attribute name="label" translatable="yes">_Delete Files and Remove</attribute>
|
<attribute name="label" translatable="yes">_Delete Files and Remove</attribute>
|
||||||
<attribute name="accel"><shift>Delete</attribute>
|
<attribute name="accel"><shift>Delete</attribute>
|
||||||
@@ -309,7 +309,7 @@
|
|||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can-focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="tooltip-text" translatable="yes">Start torrent</property>
|
<property name="tooltip-text" translatable="yes">Start torrent</property>
|
||||||
<property name="action-name">torrent.torrent-start</property>
|
<property name="action-name">win.torrent-start</property>
|
||||||
<property name="label" translatable="yes">_Start</property>
|
<property name="label" translatable="yes">_Start</property>
|
||||||
<property name="use-underline">True</property>
|
<property name="use-underline">True</property>
|
||||||
<property name="icon-name">media-playback-start</property>
|
<property name="icon-name">media-playback-start</property>
|
||||||
@@ -324,7 +324,7 @@
|
|||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can-focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="tooltip-text" translatable="yes">Pause torrent</property>
|
<property name="tooltip-text" translatable="yes">Pause torrent</property>
|
||||||
<property name="action-name">torrent.torrent-stop</property>
|
<property name="action-name">win.torrent-stop</property>
|
||||||
<property name="label" translatable="yes">_Pause</property>
|
<property name="label" translatable="yes">_Pause</property>
|
||||||
<property name="use-underline">True</property>
|
<property name="use-underline">True</property>
|
||||||
<property name="icon-name">media-playback-pause</property>
|
<property name="icon-name">media-playback-pause</property>
|
||||||
@@ -338,7 +338,7 @@
|
|||||||
<object class="GtkToolButton">
|
<object class="GtkToolButton">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can-focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="action-name">torrent.remove-torrent</property>
|
<property name="action-name">win.remove-torrent</property>
|
||||||
<property name="label" translatable="yes">Remove torrent</property>
|
<property name="label" translatable="yes">Remove torrent</property>
|
||||||
<property name="use-underline">True</property>
|
<property name="use-underline">True</property>
|
||||||
<property name="icon-name">list-remove</property>
|
<property name="icon-name">list-remove</property>
|
||||||
@@ -364,7 +364,7 @@
|
|||||||
<property name="can-focus">False</property>
|
<property name="can-focus">False</property>
|
||||||
<property name="tooltip-text" translatable="yes">Torrent properties</property>
|
<property name="tooltip-text" translatable="yes">Torrent properties</property>
|
||||||
<property name="is-important">True</property>
|
<property name="is-important">True</property>
|
||||||
<property name="action-name">torrent.show-torrent-properties</property>
|
<property name="action-name">win.show-torrent-properties</property>
|
||||||
<property name="label" translatable="yes">_Properties</property>
|
<property name="label" translatable="yes">_Properties</property>
|
||||||
<property name="use-underline">True</property>
|
<property name="use-underline">True</property>
|
||||||
<property name="icon-name">document-properties</property>
|
<property name="icon-name">document-properties</property>
|
||||||
@@ -379,14 +379,14 @@
|
|||||||
<menu id="main-window-popup">
|
<menu id="main-window-popup">
|
||||||
<section>
|
<section>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.show-torrent-properties</attribute>
|
<attribute name="action">win.show-torrent-properties</attribute>
|
||||||
<attribute name="icon">document-properties</attribute>
|
<attribute name="icon">document-properties</attribute>
|
||||||
<attribute name="label" translatable="yes">_Properties</attribute>
|
<attribute name="label" translatable="yes">_Properties</attribute>
|
||||||
<attribute name="accel"><alt>Return</attribute>
|
<attribute name="accel"><alt>Return</attribute>
|
||||||
<attribute name="tooltip" translatable="yes">Torrent properties</attribute>
|
<attribute name="tooltip" translatable="yes">Torrent properties</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.open-torrent-folder</attribute>
|
<attribute name="action">win.open-torrent-folder</attribute>
|
||||||
<attribute name="icon">document-open</attribute>
|
<attribute name="icon">document-open</attribute>
|
||||||
<attribute name="label" translatable="yes">Open Fold_er</attribute>
|
<attribute name="label" translatable="yes">Open Fold_er</attribute>
|
||||||
<attribute name="accel"><control>E</attribute>
|
<attribute name="accel"><control>E</attribute>
|
||||||
@@ -452,21 +452,21 @@
|
|||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.torrent-start</attribute>
|
<attribute name="action">win.torrent-start</attribute>
|
||||||
<attribute name="icon">media-playback-start</attribute>
|
<attribute name="icon">media-playback-start</attribute>
|
||||||
<attribute name="label" translatable="yes">_Start</attribute>
|
<attribute name="label" translatable="yes">_Start</attribute>
|
||||||
<attribute name="accel"><control>S</attribute>
|
<attribute name="accel"><control>S</attribute>
|
||||||
<attribute name="tooltop" translatable="yes">Start torrent</attribute>
|
<attribute name="tooltop" translatable="yes">Start torrent</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.torrent-start-now</attribute>
|
<attribute name="action">win.torrent-start-now</attribute>
|
||||||
<attribute name="icon">media-playback-start</attribute>
|
<attribute name="icon">media-playback-start</attribute>
|
||||||
<attribute name="label" translatable="yes">Start _Now</attribute>
|
<attribute name="label" translatable="yes">Start _Now</attribute>
|
||||||
<attribute name="accel"><shift><control>S</attribute>
|
<attribute name="accel"><shift><control>S</attribute>
|
||||||
<attribute name="tooltop" translatable="yes">Start torrent now</attribute>
|
<attribute name="tooltop" translatable="yes">Start torrent now</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.torrent-reannounce</attribute>
|
<attribute name="action">win.torrent-reannounce</attribute>
|
||||||
<attribute name="icon">network-workgroup</attribute>
|
<attribute name="icon">network-workgroup</attribute>
|
||||||
<attribute name="label" translatable="yes">Ask Tracker for _More Peers</attribute>
|
<attribute name="label" translatable="yes">Ask Tracker for _More Peers</attribute>
|
||||||
</item>
|
</item>
|
||||||
@@ -474,29 +474,29 @@
|
|||||||
<attribute name="label" translatable="true">_Queue</attribute>
|
<attribute name="label" translatable="true">_Queue</attribute>
|
||||||
<section>
|
<section>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.queue-move-top</attribute>
|
<attribute name="action">win.queue-move-top</attribute>
|
||||||
<attribute name="icon">go-top</attribute>
|
<attribute name="icon">go-top</attribute>
|
||||||
<attribute name="label" translatable="yes">Move to _Top</attribute>
|
<attribute name="label" translatable="yes">Move to _Top</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.queue-move-up</attribute>
|
<attribute name="action">win.queue-move-up</attribute>
|
||||||
<attribute name="icon">go-up</attribute>
|
<attribute name="icon">go-up</attribute>
|
||||||
<attribute name="label" translatable="yes">Move _Up</attribute>
|
<attribute name="label" translatable="yes">Move _Up</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.queue-move-down</attribute>
|
<attribute name="action">win.queue-move-down</attribute>
|
||||||
<attribute name="icon">go-down</attribute>
|
<attribute name="icon">go-down</attribute>
|
||||||
<attribute name="label" translatable="yes">Move _Down</attribute>
|
<attribute name="label" translatable="yes">Move _Down</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.queue-move-bottom</attribute>
|
<attribute name="action">win.queue-move-bottom</attribute>
|
||||||
<attribute name="icon">go-bottom</attribute>
|
<attribute name="icon">go-bottom</attribute>
|
||||||
<attribute name="label" translatable="yes">Move to _Bottom</attribute>
|
<attribute name="label" translatable="yes">Move to _Bottom</attribute>
|
||||||
</item>
|
</item>
|
||||||
</section>
|
</section>
|
||||||
</submenu>
|
</submenu>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.torrent-stop</attribute>
|
<attribute name="action">win.torrent-stop</attribute>
|
||||||
<attribute name="icon">media-playback-pause</attribute>
|
<attribute name="icon">media-playback-pause</attribute>
|
||||||
<attribute name="label" translatable="yes">_Pause</attribute>
|
<attribute name="label" translatable="yes">_Pause</attribute>
|
||||||
<attribute name="accel"><control>P</attribute>
|
<attribute name="accel"><control>P</attribute>
|
||||||
@@ -505,29 +505,29 @@
|
|||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.relocate-torrent</attribute>
|
<attribute name="action">win.relocate-torrent</attribute>
|
||||||
<attribute name="label" translatable="yes">Set _Location…</attribute>
|
<attribute name="label" translatable="yes">Set _Location…</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.torrent-verify</attribute>
|
<attribute name="action">win.torrent-verify</attribute>
|
||||||
<attribute name="label" translatable="yes">_Verify Local Data</attribute>
|
<attribute name="label" translatable="yes">_Verify Local Data</attribute>
|
||||||
<attribute name="accel"><control>V</attribute>
|
<attribute name="accel"><control>V</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.copy-magnet-link-to-clipboard</attribute>
|
<attribute name="action">win.copy-magnet-link-to-clipboard</attribute>
|
||||||
<attribute name="icon">edit-copy</attribute>
|
<attribute name="icon">edit-copy</attribute>
|
||||||
<attribute name="label" translatable="yes">Copy _Magnet Link to Clipboard</attribute>
|
<attribute name="label" translatable="yes">Copy _Magnet Link to Clipboard</attribute>
|
||||||
</item>
|
</item>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.remove-torrent</attribute>
|
<attribute name="action">win.remove-torrent</attribute>
|
||||||
<attribute name="icon">list-remove</attribute>
|
<attribute name="icon">list-remove</attribute>
|
||||||
<attribute name="label" translatable="yes">Remove torrent</attribute>
|
<attribute name="label" translatable="yes">Remove torrent</attribute>
|
||||||
<attribute name="accel">Delete</attribute>
|
<attribute name="accel">Delete</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="action">torrent.delete-torrent</attribute>
|
<attribute name="action">win.delete-torrent</attribute>
|
||||||
<attribute name="icon">edit-delete</attribute>
|
<attribute name="icon">edit-delete</attribute>
|
||||||
<attribute name="label" translatable="yes">_Delete Files and Remove</attribute>
|
<attribute name="label" translatable="yes">_Delete Files and Remove</attribute>
|
||||||
<attribute name="accel"><shift>Delete</attribute>
|
<attribute name="accel"><shift>Delete</attribute>
|
||||||
|
|||||||
Reference in New Issue
Block a user