[gnome-builder/wip/gtk4-port: 47/736] code: use g_timeout_add()




commit 3905046f58ab3f4263853b1b0149354d6a143220
Author: Christian Hergert <chergert redhat com>
Date:   Thu Sep 23 16:33:53 2021 -0700

    code: use g_timeout_add()
    
    The GDK API has been removed in 4.x

 src/libide/code/ide-buffer.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/code/ide-buffer.c b/src/libide/code/ide-buffer.c
index 8a7843009..13faaae75 100644
--- a/src/libide/code/ide-buffer.c
+++ b/src/libide/code/ide-buffer.c
@@ -2463,9 +2463,9 @@ ide_buffer_delay_settling (IdeBuffer *self)
   g_assert (IDE_IS_BUFFER (self));
 
   g_clear_handle_id (&self->settling_source, g_source_remove);
-  self->settling_source = gdk_threads_add_timeout (SETTLING_DELAY_MSEC,
-                                                   ide_buffer_settled_cb,
-                                                   self);
+  self->settling_source = g_timeout_add (SETTLING_DELAY_MSEC,
+                                         ide_buffer_settled_cb,
+                                         self);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]