summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2021-05-04 09:50:04 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2021-05-04 09:50:04 +0200
commitd3c87232cb24ff3199f0dd459cf363a09db262a0 (patch)
treebe308717caeeb63258e4be7e7a73a6cf2335bbef
parentaed0918a8a0787ca2d2cbfb3c18739ead081a544 (diff)
downloadcheese-d3c87232cb24ff3199f0dd459cf363a09db262a0.tar.gz
Reference of [GtkChild] fields is handled by GtkBuilder, type must be unowned
-rw-r--r--src/cheese-preferences.vala22
-rw-r--r--src/cheese-window.vala20
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;