Commit 332adc21 authored by Rico Tzschichholz's avatar Rico Tzschichholz

Drop default value of non-automatic property for newer vala

parent 7d83be9b
Pipeline #9604 passed with stage
in 3 minutes and 15 seconds
......@@ -128,14 +128,13 @@ public void foreach_item (CollectionForeachFunc foreach_func) {
}
}
private unowned Boxes.CollectionFilterFunc _filter_func;
private unowned Boxes.CollectionFilterFunc _filter_func = null;
public unowned Boxes.CollectionFilterFunc filter_func {
get { return _filter_func; }
set {
_filter_func = value;
filter_func_changed ();
}
default = null;
}
public bool filter (CollectionItem item) {
......
......@@ -4,7 +4,7 @@
[GtkTemplate (ui = "/org/gnome/Boxes/ui/icon-view-child.ui")]
private class Boxes.IconViewChild : Gtk.Box {
public bool _selection_mode;
public bool _selection_mode = false;
public bool selection_mode {
get { return _selection_mode; }
set {
......@@ -15,14 +15,12 @@
if (!_selection_mode)
selected = false;
}
default = false ;
}
public bool _selected;
public bool _selected = false;
public bool selected {
get { return _selected; }
set { _selected = selection_mode && value; }
default = false;
}
public CollectionItem item { get; private set; }
......
......@@ -10,7 +10,7 @@
public const Gdk.RGBA FRAME_BORDER_COLOR = { 0x81 / 255.0, 0x85 / 255.0, 0x84 / 255.0, 1.0 };
public const Gdk.RGBA FRAME_BACKGROUND_COLOR = { 0x4b / 255.0, 0x50 / 255.0, 0x50 / 255.0, 1.0 };
public bool _selection_mode;
public bool _selection_mode = false;
public bool selection_mode {
get { return _selection_mode; }
set {
......@@ -21,14 +21,12 @@
if (!_selection_mode)
selected = false;
}
default = false ;
}
public bool _selected;
public bool _selected = false;
public bool selected {
get { return _selected; }
set { _selected = selection_mode && value; }
default = false;
}
public CollectionItem item { get; private set; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment