From 4a3f1fdfe1eb3743564adcee35d5513224339260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Fri, 25 Nov 2016 04:10:33 +0100 Subject: New upstream version 0.25.1 --- src/library/ImportQueuePage.vala | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'src/library/ImportQueuePage.vala') diff --git a/src/library/ImportQueuePage.vala b/src/library/ImportQueuePage.vala index b5a5eb6..a2f2290 100644 --- a/src/library/ImportQueuePage.vala +++ b/src/library/ImportQueuePage.vala @@ -30,7 +30,7 @@ public class ImportQueuePage : SinglePhotoPage { // Stop button Gtk.ToolButton stop_button = new Gtk.ToolButton(null, null); stop_button.set_icon_name("stop"); - stop_button.set_related_action(get_action("Stop")); + stop_button.set_action_name ("win.Stop"); toolbar.insert(stop_button, -1); @@ -58,17 +58,15 @@ public class ImportQueuePage : SinglePhotoPage { base.init_collect_ui_filenames(ui_filenames); } - - protected override Gtk.ActionEntry[] init_collect_action_entries() { - Gtk.ActionEntry[] actions = base.init_collect_action_entries(); - - Gtk.ActionEntry stop = { "Stop", Resources.STOP_LABEL, TRANSLATABLE, null, TRANSLATABLE, - on_stop }; - stop.label = _("_Stop Import"); - stop.tooltip = _("Stop importing photos"); - actions += stop; - return actions; + private const GLib.ActionEntry[] entries = { + {"Stop", on_stop } + }; + + protected override void add_actions () { + base.add_actions (); + + AppWindow.get_instance ().add_action_entries (entries, this); } public void enqueue_and_schedule(BatchImport batch_import, bool allow_user_cancel) { -- cgit v1.2.3