[lightsoff/ricotz/vala] Reference of [GtkChild] fields is handled by GtkBuilder, type must be unowned
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lightsoff/ricotz/vala] Reference of [GtkChild] fields is handled by GtkBuilder, type must be unowned
- Date: Wed, 17 Mar 2021 11:11:28 +0000 (UTC)
commit fa339188724483dd176aa606c1c1f5f560baa28c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Mar 17 12:10:45 2021 +0100
Reference of [GtkChild] fields is handled by GtkBuilder, type must be unowned
src/lightsoff-window.vala | 16 ++++++++--------
src/notifications-revealer.vala | 2 +-
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/lightsoff-window.vala b/src/lightsoff-window.vala
index 06dea3b..7cf3d8c 100644
--- a/src/lightsoff-window.vala
+++ b/src/lightsoff-window.vala
@@ -15,14 +15,14 @@ using Gtk;
[GtkTemplate (ui = "/org/gnome/LightsOff/ui/lightsoff.ui")]
private class LightsoffWindow : ManagedWindow
{
- [GtkChild] private HeaderBar headerbar;
- [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 HeaderBar headerbar;
+ [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;
diff --git a/src/notifications-revealer.vala b/src/notifications-revealer.vala
index 305eea0..d4312bd 100644
--- a/src/notifications-revealer.vala
+++ b/src/notifications-revealer.vala
@@ -20,7 +20,7 @@ using Gtk;
[GtkTemplate (ui = "/org/gnome/LightsOff/ui/notifications-revealer.ui")]
private class NotificationsRevealer : Revealer
{
- [GtkChild] private Label notification_label;
+ [GtkChild] private unowned Label notification_label;
construct
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]