[nautilus/wip/antoniof/gtk4-preparation-drop-outgoing-api: 56/74] general: Replace uses of GDK thread API
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/gtk4-preparation-drop-outgoing-api: 56/74] general: Replace uses of GDK thread API
- Date: Sun, 17 Oct 2021 12:24:51 +0000 (UTC)
commit 309d67709344c43751bd352db0ff3cc4e3a968f7
Author: Ernestas Kulik <ernestask gnome org>
Date: Wed Jul 11 14:44:29 2018 +0300
general: Replace uses of GDK thread API
We are doing all GTK stuff from the main thread anyway. If we are not,
we are in big trouble anyway.
So, drop gdk_threads* API this in preparation for GTK4, where it won't
exist.
Rebased and ammended by António Fernandes <antoniof gnome org>
src/nautilus-canvas-dnd.c | 5 +----
src/nautilus-tree-view-drag-dest.c | 5 +----
src/nautilus-window-slot-dnd.c | 8 ++++----
3 files changed, 6 insertions(+), 12 deletions(-)
---
diff --git a/src/nautilus-canvas-dnd.c b/src/nautilus-canvas-dnd.c
index 1f86039c2..a5a6657a2 100644
--- a/src/nautilus-canvas-dnd.c
+++ b/src/nautilus-canvas-dnd.c
@@ -1516,10 +1516,7 @@ check_hover_timer (NautilusCanvasContainer *container,
if (uri != NULL)
{
dnd_info->target_uri = g_strdup (uri);
- dnd_info->hover_id =
- gdk_threads_add_timeout (timeout,
- hover_timer,
- container);
+ dnd_info->hover_id = g_timeout_add (timeout, hover_timer, container);
}
}
diff --git a/src/nautilus-tree-view-drag-dest.c b/src/nautilus-tree-view-drag-dest.c
index 379693ffd..01d080455 100644
--- a/src/nautilus-tree-view-drag-dest.c
+++ b/src/nautilus-tree-view-drag-dest.c
@@ -362,10 +362,7 @@ check_hover_timer (NautilusTreeViewDragDest *dest,
if (uri != NULL)
{
dest->details->target_uri = g_strdup (uri);
- dest->details->hover_id =
- gdk_threads_add_timeout (timeout,
- hover_timer,
- dest);
+ dest->details->hover_id = g_timeout_add (timeout, hover_timer, dest);
}
}
diff --git a/src/nautilus-window-slot-dnd.c b/src/nautilus-window-slot-dnd.c
index 96c5d9cc8..efd6df206 100644
--- a/src/nautilus-window-slot-dnd.c
+++ b/src/nautilus-window-slot-dnd.c
@@ -133,10 +133,10 @@ slot_proxy_check_switch_location_timer (NautilusDragSlotProxyInfo *drag_info,
settings = gtk_widget_get_settings (widget);
g_object_get (settings, "gtk-timeout-expand", &timeout, NULL);
- drag_info->switch_location_timer =
- gdk_threads_add_timeout (timeout,
- slot_proxy_switch_location_timer,
- drag_info);
+
+ drag_info->switch_location_timer = g_timeout_add (timeout,
+ slot_proxy_switch_location_timer,
+ drag_info);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]