commit 625ab59ec875afa457538fab386bf6614b3309f8
parent 78397e7176f2b6bca264f82e4c4a6ba551f7d8f9
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date: Sun, 20 Feb 2011 14:44:44 +0800
Fix compilation errors with Vala 0.11
Diffstat:
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/spek-message-bar.vala b/src/spek-message-bar.vala
@@ -55,7 +55,7 @@ namespace Spek {
}
private bool changing_style = false;
- private override void style_set (Style? previous_style) {
+ protected override void style_set (Style? previous_style) {
if (changing_style) {
return;
}
@@ -66,7 +66,7 @@ namespace Spek {
changing_style = false;
}
- private override bool expose_event (Gdk.EventExpose event) {
+ protected override bool expose_event (Gdk.EventExpose event) {
if (!is_drawable ()) {
return false;
}
@@ -79,4 +79,4 @@ namespace Spek {
return base.expose_event (event);
}
}
-}
-\ No newline at end of file
+}
diff --git a/src/spek-spectrogram.vala b/src/spek-spectrogram.vala
@@ -95,7 +95,7 @@ namespace Spek {
}
private int prev_width = -1;
- private override void size_allocate (Gdk.Rectangle allocation) {
+ protected override void size_allocate (Gdk.Rectangle allocation) {
base.size_allocate (allocation);
bool width_changed = prev_width != allocation.width;
@@ -116,7 +116,7 @@ namespace Spek {
Idle.add (() => { queue_draw (); return false; });
}
- private override bool expose_event (EventExpose event) {
+ protected override bool expose_event (EventExpose event) {
var cr = cairo_create (this.window);
// Clip to the exposed area.