Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,17 @@ public class Application : Gtk.Application {
open_document_action.activate.connect (on_open_document);
this.add_action (open_document_action);

//TODO: Vala complains about the method not existing
/*SimpleAction saveas_action = new SimpleAction ("saveas", null);
set_accels_for_action ("app.saveas", {"<Control>s"});
add_action (saveas);
SimpleAction saveas_action = new SimpleAction ("saveas", null);
set_accels_for_action ("app.saveas", {"<Control><Shift>s"});
add_action (saveas_action);
saveas_action.activate.connect (() => {
this.get_active_window ().on_save_as ();
});*/
unowned var window = this.get_active_window () as AppWindow;
if (window == null) {
return;
}

window.on_save_as ();
});

SimpleAction quit_action = new SimpleAction ("quit", null);
set_accels_for_action ("app.quit", {"<Control>q"});
Expand Down
2 changes: 1 addition & 1 deletion src/Window.vala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class AppWindow : Gtk.Window {
};
var save_as_button = new Gtk.Button.from_icon_name ("document-save-as") {
tooltip_markup = Granite.markup_accel_tooltip (
{"<Control>s"},
{"<Control><Shift>s"},
_("Save as")
)
};
Expand Down