[ease] Use GTK double click settings in Clutter.



commit 86071ef4c6502a7ea8d232584fc517ee6e09e99f
Author: Nate Stedman <natesm gmail com>
Date:   Fri Jun 11 01:22:06 2010 -0400

    Use GTK double click settings in Clutter.

 src/Main.vala |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/Main.vala b/src/Main.vala
index 130bb37..cedade8 100644
--- a/src/Main.vala
+++ b/src/Main.vala
@@ -30,9 +30,6 @@ public static class Ease.Main : GLib.Object
 	private static Gee.ArrayList<EditorWindow> windows;
 	private static WelcomeWindow welcome;
 	
-	private const int DOUBLE_CLICK_TIME = 1000;
-	private const int DOUBLE_CLICK_DISTANCE = 5;
-	
 	// options
 	static string play_filename;
 	static string[] filenames;
@@ -91,8 +88,9 @@ public static class Ease.Main : GLib.Object
 		
 		// Clutter settings
 		var backend = Clutter.get_default_backend();
-		backend.set_double_click_time(DOUBLE_CLICK_TIME);
-		backend.set_double_click_distance(DOUBLE_CLICK_DISTANCE);
+		var settings = Gtk.Settings.get_default();
+		backend.set_double_click_time(settings.gtk_double_click_time);
+		backend.set_double_click_distance(settings.gtk_double_click_distance);
 	
 		// open editor windows for each argument specified
 		if (filenames != null)



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