Added fit-crop-to-screen Editor button, issue 2706
This commit is contained in:
@@ -707,7 +707,7 @@ void EditorPanel::displayError (Glib::ustring title, Glib::ustring descr) {
|
||||
GtkWidget* msgd = gtk_message_dialog_new_with_markup (NULL,
|
||||
GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||
GTK_MESSAGE_ERROR,
|
||||
GTK_BUTTONS_OK,
|
||||
GTK_BUTTONS_OK,
|
||||
"<b>%s</b>",
|
||||
descr.data());
|
||||
gtk_window_set_title((GtkWindow*)msgd, title.data());
|
||||
@@ -1043,6 +1043,9 @@ bool EditorPanel::handleShortcutKey (GdkEventKey* event) {
|
||||
history->addBookmarkPressed ();
|
||||
setProgressStr(M("PROGRESSBAR_SNAPSHOT_ADDED"));
|
||||
return true;
|
||||
case GDK_f:
|
||||
iareapanel->imageArea->zoomPanel->zoomFitCropClicked();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1296,7 +1299,7 @@ bool EditorPanel::idle_sendToGimp( ProgressConnector<rtengine::IImage16*> *pc, G
|
||||
rtengine::IImage16* img = pc->returnValue();
|
||||
delete pc;
|
||||
if (img) {
|
||||
// get file name base
|
||||
// get file name base
|
||||
Glib::ustring shortname = removeExtension (Glib::path_get_basename (fname));
|
||||
Glib::ustring dirname = Glib::get_tmp_dir ();
|
||||
Glib::ustring fname = Glib::build_filename (dirname, shortname);
|
||||
|
Reference in New Issue
Block a user