summaryrefslogtreecommitdiff
path: root/src/Dialogs.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-10-01 07:17:16 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-10-01 07:17:16 +0200
commit71137cc5832110d91599d68790402cf196762ed3 (patch)
treee7985bbfb6ca50ea738b38a9f852ee51431d48a7 /src/Dialogs.vala
parent8ae550d463720d5d1c0e253af29843ff15de1a54 (diff)
parent1e92964463e564bb3359a7110342182fcfdc67f2 (diff)
Merge branch 'release/debian/0.30.1-1'debian/0.30.1-1
Diffstat (limited to 'src/Dialogs.vala')
-rw-r--r--src/Dialogs.vala17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/Dialogs.vala b/src/Dialogs.vala
index 2ca2678..d99ac9f 100644
--- a/src/Dialogs.vala
+++ b/src/Dialogs.vala
@@ -46,6 +46,21 @@ public bool confirm_warn_developer_changed(int number) {
return response == Gtk.ResponseType.YES;
}
+#if ENABLE_FACES
+
+public bool confirm_delete_face(Face face) {
+ int count = face.get_sources_count();
+ string msg = ngettext(
+ "This will remove the face “%s” from one photo. Continue?",
+ "This will remove the face “%s” from %d photos. Continue?",
+ count).printf(face.get_name(), count);
+
+ return AppWindow.negate_affirm_question(msg, _("_Cancel"), _("_Delete"),
+ Resources.DELETE_FACE_TITLE);
+}
+
+#endif
+
}
namespace ExportUI {
@@ -133,7 +148,6 @@ public Gtk.ResponseType export_error_dialog(File dest, bool photos_remaining) {
return response;
}
-
namespace ImportUI {
private const int REPORT_FAILURE_COUNT = 4;
internal const string SAVE_RESULTS_BUTTON_NAME = _("Save Details…");
@@ -644,7 +658,6 @@ public string build_alert_body_text(string? primary_text, string? secondary_text
guarded_markup_escape_text(primary_text), secondary_text);
}
-
public class EventRenameDialog : TextEntryDialogMediator {
public EventRenameDialog(string? event_name) {
base (_("Rename Event"), _("Name:"), event_name);