[shotwell/shotwell-0.30] Replace deprecated string function
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/shotwell-0.30] Replace deprecated string function
- Date: Fri, 3 Jan 2020 18:06:45 +0000 (UTC)
commit abf9eb48f83e2f4a2191d61e66d8f6b12af803df
Author: Jens Georg <mail jensge org>
Date: Fri Dec 20 20:59:00 2019 +0100
Replace deprecated string function
src/dialogs/AdjustDateTimeDialog.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/dialogs/AdjustDateTimeDialog.vala b/src/dialogs/AdjustDateTimeDialog.vala
index 3834f99f..9ca41d60 100644
--- a/src/dialogs/AdjustDateTimeDialog.vala
+++ b/src/dialogs/AdjustDateTimeDialog.vala
@@ -123,7 +123,7 @@ public class AdjustDateTimeDialog : Gtk.Dialog {
for (int i = 0; i < 12; i++){
var dt = new DateTime.from_unix_utc(i * 2764800);
var month_string = dt.format("%OB");
- if (month_string.str("%OB") != null) {
+ if (month_string.index_of("%OB") != -1) {
month_string = dt.format("%B");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]