Fix vala warnings

This commit is contained in:
Rico Tzschichholz 2017-03-01 14:47:45 +01:00
parent 42ebc4be39
commit f029e7333e
6 changed files with 9 additions and 9 deletions

View file

@ -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

View file

@ -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},

View file

@ -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,

View file

@ -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},

View file

@ -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
{

View file

@ -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)
{