[shotwell: 2/3] Renamed dialog function from six_alt_question to export_overwrite_or_replace_question
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell: 2/3] Renamed dialog function from six_alt_question to export_overwrite_or_replace_question
- Date: Sun, 31 Jul 2022 07:31:16 +0000 (UTC)
commit 0b541d074d3783264f9902b529a5f1d9469d3380
Author: maf <maf tkrat org>
Date: Sat Jul 30 22:22:14 2022 +0200
Renamed dialog function from six_alt_question to export_overwrite_or_replace_question
src/AppWindow.vala | 2 +-
src/Exporter.vala | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/AppWindow.vala b/src/AppWindow.vala
index 130f5e03..560e8c7d 100644
--- a/src/AppWindow.vala
+++ b/src/AppWindow.vala
@@ -541,7 +541,7 @@ public abstract class AppWindow : PageWindow {
return (Gtk.ResponseType) response;
}
- public static int six_alt_question(string message,
+ public static int export_overwrite_or_replace_question(string message,
string alt1, string alt2, string alt3, string alt4, string alt5, string alt6,
string? title = null, Gtk.Window? parent = null) {
Gtk.MessageDialog dialog = new Gtk.MessageDialog((parent != null) ? parent : get_instance(),
diff --git a/src/Exporter.vala b/src/Exporter.vala
index 6b47fe97..d20f2bbb 100644
--- a/src/Exporter.vala
+++ b/src/Exporter.vala
@@ -344,8 +344,8 @@ public class ExporterUI {
private Exporter.Overwrite on_export_overwrite(Exporter exporter, File file) {
progress_dialog.set_modal(false);
string question = _("File %s already exists. Replace?").printf(file.get_basename());
- int response = AppWindow.six_alt_question(question,
- _("_Skip"), _("Rename"), _("Rename All"),_("_Replace"),
_("Replace _All"), _("_Cancel"), _("Export"));
+ int response = AppWindow.export_overwrite_or_replace_question(question,
+ _("_Skip"), _("Rename"), _("Rename All"),_("_Replace"), _("Replace _All"), _("_Cancel"),
_("Export"));
progress_dialog.set_modal(true);
@@ -374,4 +374,4 @@ public class ExporterUI {
private bool on_export_failed(Exporter exporter, File file, int remaining, Error err) {
return export_error_dialog(file, remaining > 0) != Gtk.ResponseType.CANCEL;
}
-}
\ No newline at end of file
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]