diff options
author | John Sullivan <sullivan@src.gnome.org> | 2000-06-24 01:33:29 +0000 |
---|---|---|
committer | John Sullivan <sullivan@src.gnome.org> | 2000-06-24 01:33:29 +0000 |
commit | 39103846fdd35a9a047236a93aae4d18162d9d21 (patch) | |
tree | a28eeba60a06a9d6e14bc1f25173fe058cc3c462 /libnautilus-private/nautilus-horizontal-splitter.c | |
parent | 7ed5a1ae8bc4a413eb56f5d6b7be49840a42ca04 (diff) | |
download | nautilus-39103846fdd35a9a047236a93aae4d18162d9d21.tar.gz |
Made #defines for a couple of constants.
* libnautilus-extensions/nautilus-horizontal-splitter.c:
(nautilus_horizontal_splitter_button_release):
Made #defines for a couple of constants.
Diffstat (limited to 'libnautilus-private/nautilus-horizontal-splitter.c')
-rw-r--r-- | libnautilus-private/nautilus-horizontal-splitter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-horizontal-splitter.c b/libnautilus-private/nautilus-horizontal-splitter.c index fa8015883..6d0424fea 100644 --- a/libnautilus-private/nautilus-horizontal-splitter.c +++ b/libnautilus-private/nautilus-horizontal-splitter.c @@ -38,6 +38,8 @@ struct _NautilusHorizontalSplitterDetail #define BAR_WIDTH 7 #define CLOSED_THRESHOLD 4 #define NOMINAL_SIZE 148 +#define SPLITTER_CLICK_SLOP 3 +#define SPLITTER_CLICK_TIMEOUT 1500 /* NautilusHorizontalSplitterClass methods */ static void nautilus_horizontal_splitter_initialize_class (NautilusHorizontalSplitterClass *horizontal_splitter_class); @@ -318,7 +320,7 @@ static gboolean nautilus_horizontal_splitter_button_release (GtkWidget *widget, delta = abs (event->x - splitter->details->down_position); delta_time = abs (splitter->details->down_time - event->time); - if (delta < 3 && delta_time < 1500) { + if (delta < SPLITTER_CLICK_SLOP && delta_time < SPLITTER_CLICK_TIMEOUT) { toggle_splitter_position(splitter); } } |