[lightsoff/arnaudb/wip/gtk4] Fixed compile errors
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lightsoff/arnaudb/wip/gtk4] Fixed compile errors
- Date: Fri, 15 Oct 2021 13:39:45 +0000 (UTC)
commit c179b83f7f189770547876e1d53b7a4f261872d9
Author: Robert Roth <robert roth off gmail com>
Date: Fri Oct 15 16:39:35 2021 +0300
Fixed compile errors
src/lightsoff-window.vala | 24 ++++++++++++++++--------
src/managed-window.vala | 4 ++--
src/notifications-revealer.vala | 7 +++++--
3 files changed, 23 insertions(+), 12 deletions(-)
---
diff --git a/src/lightsoff-window.vala b/src/lightsoff-window.vala
index a6c0ea9..6e80ebc 100644
--- a/src/lightsoff-window.vala
+++ b/src/lightsoff-window.vala
@@ -15,13 +15,20 @@ using Gtk;
[GtkTemplate (ui = "/org/gnome/LightsOff/ui/lightsoff.ui")]
private class LightsoffWindow : ManagedWindow
{
- [GtkChild] private MenuButton menu_button;
- [GtkChild] private Label level_label;
- [GtkChild] private GameButton game_button_1;
- [GtkChild] private GameButton game_button_2;
- [GtkChild] private AspectFrame aspect_frame;
- [GtkChild] private Revealer revealer;
- [GtkChild] private NotificationsRevealer notifications_revealer;
+ [GtkChild]
+ private unowned MenuButton menu_button;
+ [GtkChild]
+ private unowned Label level_label;
+ [GtkChild]
+ private unowned GameButton game_button_1;
+ [GtkChild]
+ private unowned GameButton game_button_2;
+ [GtkChild]
+ private unowned AspectFrame aspect_frame;
+ [GtkChild]
+ private unowned Revealer revealer;
+ [GtkChild]
+ private unowned NotificationsRevealer notifications_revealer;
private GLib.Settings settings;
private GameView game_view;
@@ -199,7 +206,8 @@ private class LightsoffWindow : ManagedWindow
[GtkTemplate (ui = "/org/gnome/LightsOff/ui/game-button.ui")]
private class GameButton : Widget
{
- [GtkChild] private MenuButton menu_button;
+ [GtkChild]
+ private unowned MenuButton menu_button;
construct
{
diff --git a/src/managed-window.vala b/src/managed-window.vala
index d91339a..1064e0a 100644
--- a/src/managed-window.vala
+++ b/src/managed-window.vala
@@ -41,7 +41,7 @@ private class ManagedWindow : ApplicationWindow
assert_not_reached ();
surface = (Gdk.Toplevel) (!) nullable_surface;
surface.notify ["state"].connect (on_window_state_event);
- surface.size_changed.connect (on_size_changed);
+ // surface.size_changed.connect (on_size_changed);
}
private Gdk.Toplevel surface;
@@ -69,7 +69,7 @@ private class ManagedWindow : ApplicationWindow
return;
int? _window_width = null;
int? _window_height = null;
- get_size (out _window_width, out _window_height);
+ // get_size (out _window_width, out _window_height);
if (_window_width == null || _window_height == null)
return;
window_width = (!) _window_width;
diff --git a/src/notifications-revealer.vala b/src/notifications-revealer.vala
index c002c62..7244382 100644
--- a/src/notifications-revealer.vala
+++ b/src/notifications-revealer.vala
@@ -20,8 +20,11 @@ using Gtk;
[GtkTemplate (ui = "/org/gnome/LightsOff/ui/notifications-revealer.ui")]
private class NotificationsRevealer : Widget
{
- [GtkChild] private Revealer revealer;
- [GtkChild] private Label notification_label;
+ [GtkChild]
+ private unowned Revealer revealer;
+
+ [GtkChild]
+ private unowned Label notification_label;
construct
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]