aboutsummaryrefslogtreecommitdiffstats
path: root/community/geary/fix-compiler-warnings.patch
blob: 12188d432dd04c0394f577a94c80b11f6d30ea55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
From f2d392bed5ea3cec6c097895ba54ba840e3e3480 Mon Sep 17 00:00:00 2001
From: Rico Tzschichholz <ricotz@ubuntu.com>
Date: Fri, 8 Jul 2016 09:56:42 +0200
Subject: Fix compile warnings with vala git

---
 src/client/application/geary-application.vala    | 4 ++--
 src/client/components/conversation-find-bar.vala | 2 +-
 src/client/dialogs/attachment-dialog.vala        | 4 ++--
 src/console/main.vala                            | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/client/application/geary-application.vala b/src/client/application/geary-application.vala
index 64038bb..da5ff3e 100644
--- a/src/client/application/geary-application.vala
+++ b/src/client/application/geary-application.vala
@@ -36,9 +36,9 @@ public class GearyApplication : Gtk.Application {
         null
     };
     
-    private static const string ACTION_ENTRY_COMPOSE = "compose";
+    private const string ACTION_ENTRY_COMPOSE = "compose";
     
-    public static const ActionEntry[] action_entries = {
+    public const ActionEntry[] action_entries = {
         {ACTION_ENTRY_COMPOSE, activate_compose, "s"},
     };
     
diff --git a/src/client/components/conversation-find-bar.vala b/src/client/components/conversation-find-bar.vala
index 008f4d3..a625896 100644
--- a/src/client/components/conversation-find-bar.vala
+++ b/src/client/components/conversation-find-bar.vala
@@ -5,7 +5,7 @@
  */
 
 public class ConversationFindBar : Gtk.Layout {
-    private static const string entry_not_found_style =
+    private const string entry_not_found_style =
 """
 .geary-not-found {
     color: white;
diff --git a/src/client/dialogs/attachment-dialog.vala b/src/client/dialogs/attachment-dialog.vala
index e391a35..fc29a3d 100644
--- a/src/client/dialogs/attachment-dialog.vala
+++ b/src/client/dialogs/attachment-dialog.vala
@@ -5,8 +5,8 @@
  */
 
 public class AttachmentDialog : Gtk.FileChooserDialog {
-    private static const int PREVIEW_SIZE = 180;
-    private static const int PREVIEW_PADDING = 3;
+    private const int PREVIEW_SIZE = 180;
+    private const int PREVIEW_PADDING = 3;
     
     private static string? current_folder = null;
     
diff --git a/src/console/main.vala b/src/console/main.vala
index 6ae3fff..7d0ba12 100644
--- a/src/console/main.vala
+++ b/src/console/main.vala
@@ -15,7 +15,7 @@ errordomain CommandException {
 class ImapConsole : Gtk.Window {
     public const string VERSION = _VERSION;
     
-    private static const int KEEPALIVE_SEC = 60 * 10;
+    private const int KEEPALIVE_SEC = 60 * 10;
     
     private Gtk.TextView console = new Gtk.TextView();
     private Gtk.Entry cmdline = new Gtk.Entry();
-- 
cgit v0.12