mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-26 23:42:57 +02:00
granite: fix build with vala 0.42
This commit is contained in:
parent
a16dd0a62e
commit
67664856dd
1 changed files with 40 additions and 0 deletions
40
srcpkgs/granite/patches/fix-build-with-vala-0-42.patch
Normal file
40
srcpkgs/granite/patches/fix-build-with-vala-0-42.patch
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
--- lib/Widgets/SeekBar.vala
|
||||||
|
+++ lib/Widgets/SeekBar.vala
|
||||||
|
@@ -26,7 +26,7 @@
|
||||||
|
|
||||||
|
public class Granite.SeekBar : Gtk.Grid {
|
||||||
|
private double _playback_duration;
|
||||||
|
- private double _playback_progress;
|
||||||
|
+ private double _playback_progress = 0.0;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The time of the full duration of the playback.
|
||||||
|
@@ -68,7 +68,6 @@ public class Granite.SeekBar : Gtk.Grid {
|
||||||
|
scale.set_value (progress);
|
||||||
|
progression_label.label = DateTime.seconds_to_time ((int) (progress * playback_duration));
|
||||||
|
}
|
||||||
|
- default = 0.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
--- lib/Widgets/StorageBar.vala
|
||||||
|
+++ lib/Widgets/StorageBar.vala
|
||||||
|
@@ -83,7 +83,7 @@ public class Granite.Widgets.StorageBar : Gtk.Box {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
- private uint64 _total_usage;
|
||||||
|
+ private uint64 _total_usage = 0;
|
||||||
|
|
||||||
|
public uint64 total_usage {
|
||||||
|
get {
|
||||||
|
@@ -94,8 +94,6 @@ public class Granite.Widgets.StorageBar : Gtk.Box {
|
||||||
|
_total_usage = uint64.min (value, storage);
|
||||||
|
update_size_description ();
|
||||||
|
}
|
||||||
|
-
|
||||||
|
- default = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int inner_margin_sides {
|
||||||
|
|
Loading…
Add table
Reference in a new issue