diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-08-27 09:50:33 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-08-27 09:50:33 +0300 |
commit | 87025d7a02d5ad83b4c5eb421ba8c49234e11a4f (patch) | |
tree | 7fc3a5263427b2b204585aa296d716721055c05d /utils/togglerecord/examples | |
parent | 0f895762352a80dd938a8ec46d5104765da815f8 (diff) |
Use glib::timeout_add_local() instead of removed gtk::timeout_add()
Diffstat (limited to 'utils/togglerecord/examples')
-rw-r--r-- | utils/togglerecord/examples/gtk_recording.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/togglerecord/examples/gtk_recording.rs b/utils/togglerecord/examples/gtk_recording.rs index 78107106..78ab9f45 100644 --- a/utils/togglerecord/examples/gtk_recording.rs +++ b/utils/togglerecord/examples/gtk_recording.rs @@ -232,7 +232,7 @@ fn create_ui(app: >k::Application) { let video_sink_weak = video_sink.downgrade(); let togglerecord_weak = togglerecord.downgrade(); - let timeout_id = gtk::timeout_add(100, move || { + let timeout_id = glib::timeout_add_local(100, move || { let video_sink = match video_sink_weak.upgrade() { Some(video_sink) => video_sink, None => return glib::Continue(true), |