io.elementary.photos: fix for vala 0.56
This commit is contained in:
parent
57c67a9788
commit
8ffcd4b133
|
@ -0,0 +1,51 @@
|
|||
From 6594f1323726fb0d38519a7bdafe16f9170353cb Mon Sep 17 00:00:00 2001
|
||||
From: Bobby Rong <rjl931189261@126.com>
|
||||
Date: Mon, 14 Mar 2022 19:50:16 +0800
|
||||
Subject: [PATCH] Fix build with vala 0.56 (#711)
|
||||
|
||||
---
|
||||
src/main.vala | 2 +-
|
||||
vapi/config.vapi | 14 +++++++-------
|
||||
2 files changed, 8 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/src/main.vala b/src/main.vala
|
||||
index 875d35ec7..57c88cf9c 100644
|
||||
--- a/src/main.vala
|
||||
+++ b/src/main.vala
|
||||
@@ -273,7 +273,7 @@ namespace CommandlineOptions {
|
||||
bool show_version = false;
|
||||
bool debug_enabled = false;
|
||||
|
||||
- public const OptionEntry[] APP_OPTIONS = {
|
||||
+ const OptionEntry[] APP_OPTIONS = {
|
||||
{ "datadir", 'd', 0, OptionArg.FILENAME, out data_dir, N_("Path to Photos' private data"), N_("DIRECTORY")},
|
||||
{ "no-runtime-monitoring", 0, 0, OptionArg.NONE, out no_runtime_monitoring, N_("Do not monitor library directory at runtime for changes"), null},
|
||||
{ "no-startup-progress", 0, 0, OptionArg.NONE, out no_startup_progress, N_("Don't display startup progress meter"), null},
|
||||
diff --git a/vapi/config.vapi b/vapi/config.vapi
|
||||
index 15c8d8b12..36f0acb78 100644
|
||||
--- a/vapi/config.vapi
|
||||
+++ b/vapi/config.vapi
|
||||
@@ -5,16 +5,16 @@
|
||||
*/
|
||||
|
||||
[CCode (cheader_filename="config.h")]
|
||||
-extern const string _PREFIX;
|
||||
+public const string _PREFIX;
|
||||
[CCode (cheader_filename="config.h")]
|
||||
-extern const string _VERSION;
|
||||
+public const string _VERSION;
|
||||
[CCode (cheader_filename="config.h")]
|
||||
-extern const string GETTEXT_PACKAGE;
|
||||
+public const string GETTEXT_PACKAGE;
|
||||
[CCode (cheader_filename="config.h")]
|
||||
-extern const string LOCALEDIR;
|
||||
+public const string LOCALEDIR;
|
||||
[CCode (cheader_filename="config.h")]
|
||||
-extern const string _LIB;
|
||||
+public const string _LIB;
|
||||
[CCode (cheader_filename="config.h")]
|
||||
-extern const string _LIBEXECDIR;
|
||||
+public const string _LIBEXECDIR;
|
||||
[CCode (cheader_filename="config.h")]
|
||||
-extern const string PROJECT_NAME;
|
||||
+public const string PROJECT_NAME;
|
Loading…
Reference in New Issue