[gnome-boxes] Drop redundant 'static' from 'const' declarations



commit 10819e15ef36969941239e15de89cf9c11bb3117
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Jul 14 18:32:20 2016 +0100

    Drop redundant 'static' from 'const' declarations
    
    This makes latest valac happier.

 src/app-window.vala      |    2 +-
 src/app.vala             |    2 +-
 src/archive-reader.vala  |    2 +-
 src/libvirt-machine.vala |    2 +-
 src/machine.vala         |    4 ++--
 5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index 2e52a23..6b5eff0 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -120,7 +120,7 @@ private class Boxes.AppWindow: Gtk.ApplicationWindow, Boxes.UI {
     private Notificationbar _notificationbar;
 
     private uint configure_id;
-    public static const uint configure_id_timeout = 100;  // 100ms
+    public const uint configure_id_timeout = 100;  // 100ms
 
     private Gtk.WindowGroup group;
 
diff --git a/src/app.vala b/src/app.vala
index 8fbf455..f40a1ad 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -174,7 +174,7 @@ private class Boxes.App: Gtk.Application {
     static string opt_open_uuid;
     static string[] opt_uris;
     static string[] opt_search;
-    static const OptionEntry[] options = {
+    const OptionEntry[] options = {
         { "version", 0, 0, OptionArg.NONE, null, N_("Display version number"), null },
         { "help", 'h', OptionFlags.HIDDEN, OptionArg.NONE, ref opt_help, null, null },
         { "full-screen", 'f', 0, OptionArg.NONE, ref opt_fullscreen, N_("Open in full screen"), null },
diff --git a/src/archive-reader.vala b/src/archive-reader.vala
index 9464f9d..f90cfe5 100644
--- a/src/archive-reader.vala
+++ b/src/archive-reader.vala
@@ -2,7 +2,7 @@
 
 public class Boxes.ArchiveReader : GLib.Object {
     // This is the block size used by example code on the libarchive website
-    private static const int BLOCK_SIZE = 10240;
+    private const int BLOCK_SIZE = 10240;
 
     public Archive.Read archive;
 
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 3b13d1d..af907c5 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -122,7 +122,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
     private uint stats_update_timeout;
     private Cancellable stats_cancellable;
 
-    static const int STATS_SIZE = 20;
+    const int STATS_SIZE = 20;
     private MachineStat[] stats;
 
     private bool force_stopped;
diff --git a/src/machine.vala b/src/machine.vala
index 560f84c..a8e5a0f 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -75,8 +75,8 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
     private ulong ui_state_id;
     private ulong got_error_id;
     private uint screenshot_id;
-    public static const int SCREENSHOT_WIDTH = 180;
-    public static const int SCREENSHOT_HEIGHT = 134;
+    public const int SCREENSHOT_WIDTH = 180;
+    public const int SCREENSHOT_HEIGHT = 134;
     public const int CENTERED_EMBLEM_SIZE = 32;
     public const int EMBLEM_SIZE = 16;
     public const Gdk.RGBA FRAME_BORDER_COLOR = { 0x3b / 255.0, 0x3c / 255.0, 0x38 / 255.0, 1.0 };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]