[gnome-shell/wip/carlosg/cleanup-gtk-usage: 2/7] dnd: Use StSettings instead of GtkSettings
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/cleanup-gtk-usage: 2/7] dnd: Use StSettings instead of GtkSettings
- Date: Wed, 30 Jan 2019 22:19:45 +0000 (UTC)
commit 81c4c23016d2fa309d4e5efac5b3f8cd551cae50
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Nov 27 14:42:43 2018 +0100
dnd: Use StSettings instead of GtkSettings
Cut a middle man by listening to dconf settings directly, and stop relying
on XSettings for it.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/317
js/ui/dnd.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/js/ui/dnd.js b/js/ui/dnd.js
index 07c19202a..c5a1c0517 100644
--- a/js/ui/dnd.js
+++ b/js/ui/dnd.js
@@ -2,7 +2,6 @@
const Clutter = imports.gi.Clutter;
const GLib = imports.gi.GLib;
-const Gtk = imports.gi.Gtk;
const St = imports.gi.St;
const Meta = imports.gi.Meta;
const Shell = imports.gi.Shell;
@@ -442,7 +441,7 @@ var _Draggable = class _Draggable {
let [stageX, stageY] = event.get_coords();
// See if the user has moved the mouse enough to trigger a drag
- let threshold = Gtk.Settings.get_default().gtk_dnd_drag_threshold;
+ let threshold = St.Settings.get().drag_threshold;
if (!currentDraggable &&
(Math.abs(stageX - this._dragStartX) > threshold ||
Math.abs(stageY - this._dragStartY) > threshold)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]