[cheese/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: [cheese/ricotz/vala] Reference of [GtkChild] fields is handled by GtkBuilder, type must be unowned
- Date: Tue, 4 May 2021 07:50:53 +0000 (UTC)
commit d3c87232cb24ff3199f0dd459cf363a09db262a0
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue May 4 09:50:04 2021 +0200
Reference of [GtkChild] fields is handled by GtkBuilder, type must be unowned
src/cheese-preferences.vala | 22 +++++++++++-----------
src/cheese-window.vala | 20 ++++++++++----------
2 files changed, 21 insertions(+), 21 deletions(-)
---
diff --git a/src/cheese-preferences.vala b/src/cheese-preferences.vala
index 80a92431..8acc4e2c 100644
--- a/src/cheese-preferences.vala
+++ b/src/cheese-preferences.vala
@@ -29,32 +29,32 @@ public class Cheese.PreferencesDialog : Gtk.Dialog
private GLib.Settings settings;
[GtkChild]
- private Gtk.ComboBox photo_resolution_combo;
+ private unowned Gtk.ComboBox photo_resolution_combo;
[GtkChild]
- private Gtk.ComboBox video_resolution_combo;
+ private unowned Gtk.ComboBox video_resolution_combo;
[GtkChild]
- private Gtk.ComboBox source_combo;
+ private unowned Gtk.ComboBox source_combo;
private Gtk.ListStore camera_model;
[GtkChild]
- private Gtk.Adjustment brightness_adjustment;
+ private unowned Gtk.Adjustment brightness_adjustment;
[GtkChild]
- private Gtk.Adjustment contrast_adjustment;
+ private unowned Gtk.Adjustment contrast_adjustment;
[GtkChild]
- private Gtk.Adjustment hue_adjustment;
+ private unowned Gtk.Adjustment hue_adjustment;
[GtkChild]
- private Gtk.Adjustment saturation_adjustment;
+ private unowned Gtk.Adjustment saturation_adjustment;
[GtkChild]
- private Gtk.SpinButton burst_repeat_spin;
+ private unowned Gtk.SpinButton burst_repeat_spin;
[GtkChild]
- private Gtk.SpinButton burst_delay_spin;
+ private unowned Gtk.SpinButton burst_delay_spin;
[GtkChild]
- private Gtk.CheckButton countdown_check;
+ private unowned Gtk.CheckButton countdown_check;
[GtkChild]
- private Gtk.CheckButton flash_check;
+ private unowned Gtk.CheckButton flash_check;
private MediaMode current_mode;
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index cc119b68..bded2b54 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -54,27 +54,27 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
private GLib.Settings settings;
[GtkChild]
- private GtkClutter.Embed viewport_widget;
+ private unowned GtkClutter.Embed viewport_widget;
[GtkChild]
- private Gtk.Widget main_vbox;
+ private unowned Gtk.Widget main_vbox;
private Eog.ThumbNav thumb_nav;
private Cheese.ThumbView thumb_view;
[GtkChild]
- private Gtk.Box thumbnails_right;
+ private unowned Gtk.Box thumbnails_right;
[GtkChild]
- private Gtk.Box thumbnails_bottom;
+ private unowned Gtk.Box thumbnails_bottom;
[GtkChild]
- private Gtk.Widget leave_fullscreen_button_box;
+ private unowned Gtk.Widget leave_fullscreen_button_box;
[GtkChild]
- private Gtk.Button take_action_button;
+ private unowned Gtk.Button take_action_button;
[GtkChild]
- private Gtk.Image take_action_button_image;
+ private unowned Gtk.Image take_action_button_image;
[GtkChild]
- private Gtk.ToggleButton effects_toggle_button;
+ private unowned Gtk.ToggleButton effects_toggle_button;
[GtkChild]
- private Gtk.Widget buttons_area;
+ private unowned Gtk.Widget buttons_area;
[GtkChild]
- private Gtk.Button switch_camera_button;
+ private unowned Gtk.Button switch_camera_button;
private Gtk.Menu thumbnail_popup;
private Clutter.Stage viewport;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]