[gitg] Fix vala warnings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Fix vala warnings
- Date: Wed, 1 Mar 2017 14:02:57 +0000 (UTC)
commit f029e7333eae49a51da5e59ed5bc4ccf560232e2
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Mar 1 14:47:45 2017 +0100
Fix vala warnings
gitg/gitg-application.vala | 6 +++---
gitg/gitg-window.vala | 2 +-
gitg/history/gitg-history-command-line.vala | 2 +-
libgitg/gitg-color.vala | 2 +-
libgitg/gitg-diff-image-side-by-side.vala | 2 +-
libgitg/gitg-label-renderer.vala | 4 ++--
6 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/gitg/gitg-application.vala b/gitg/gitg-application.vala
index ada8c7b..9487dc1 100644
--- a/gitg/gitg-application.vala
+++ b/gitg/gitg-application.vala
@@ -51,7 +51,7 @@ public class Application : Gtk.Application
return true;
}
- public static const OptionEntry[] entries = {
+ public const OptionEntry[] entries = {
{"version", 'v', OptionFlags.NO_ARG, OptionArg.CALLBACK,
(void *)show_version_and_quit, N_("Show the application's version"), null},
@@ -306,7 +306,7 @@ public class Application : Gtk.Application
AuthorDetailsDialog.show_global(window);
}
- private static const ActionEntry[] app_entries = {
+ private const ActionEntry[] app_entries = {
{"new", on_app_new_window_activated},
{"about", on_app_about_activated},
{"quit", on_app_quit_activated},
@@ -315,7 +315,7 @@ public class Application : Gtk.Application
};
#if GTK_SHORTCUTS_WINDOW
- private static const ActionEntry[] shortcut_window_entries = {
+ private const ActionEntry[] shortcut_window_entries = {
{"shortcuts", on_shortcuts_activated}
};
#endif
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index ffc9696..58904c7 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -149,7 +149,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
return true;
}
- private static const ActionEntry[] win_entries = {
+ private const ActionEntry[] win_entries = {
{"search", on_search_activated, null, "false", null},
{"gear-menu", on_gear_menu_activated, null, "false", null},
{"close", on_close_activated},
diff --git a/gitg/history/gitg-history-command-line.vala b/gitg/history/gitg-history-command-line.vala
index 0375585..6ff602d 100644
--- a/gitg/history/gitg-history-command-line.vala
+++ b/gitg/history/gitg-history-command-line.vala
@@ -37,7 +37,7 @@ class CommandLine : Object, GitgExt.CommandLine
private bool d_all_remotes;
private bool d_all_tags;
- private static const OptionEntry[] s_entries = {
+ private const OptionEntry[] s_entries = {
{ "all", 'a', OptionFlags.IN_MAIN, OptionArg.NONE, ref s_all_commits,
N_("Select all commits by default in the history activity"), null },
{ "branches", 'b', OptionFlags.IN_MAIN, OptionArg.NONE, ref s_all_branches,
diff --git a/libgitg/gitg-color.vala b/libgitg/gitg-color.vala
index dd9a443..7766e22 100644
--- a/libgitg/gitg-color.vala
+++ b/libgitg/gitg-color.vala
@@ -29,7 +29,7 @@ public class Color : Object
ushort b;
}
- private static const Rgb[] palette = {
+ private const Rgb[] palette = {
{196, 160, 0},
{78, 154, 6},
{206, 92, 0},
diff --git a/libgitg/gitg-diff-image-side-by-side.vala b/libgitg/gitg-diff-image-side-by-side.vala
index 254b25e..cc856b6 100644
--- a/libgitg/gitg-diff-image-side-by-side.vala
+++ b/libgitg/gitg-diff-image-side-by-side.vala
@@ -22,7 +22,7 @@ class Gitg.DiffImageSideBySide : Gtk.DrawingArea
private Pango.Layout d_old_size_layout;
private Pango.Layout d_new_size_layout;
- private static const int TEXT_SPACING = 6;
+ private const int TEXT_SPACING = 6;
private Pango.Layout? old_size_layout
{
diff --git a/libgitg/gitg-label-renderer.vala b/libgitg/gitg-label-renderer.vala
index 1f67d68..f89e9f6 100644
--- a/libgitg/gitg-label-renderer.vala
+++ b/libgitg/gitg-label-renderer.vala
@@ -21,8 +21,8 @@ namespace Gitg
{
public class LabelRenderer
{
- private static const int margin = 2;
- private static const int padding = 6;
+ private const int margin = 2;
+ private const int padding = 6;
private static string label_text(Ref r)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]