[gnome-boxes] Show VM toolbar with a bit more delay or when reaching top
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Show VM toolbar with a bit more delay or when reaching top
- Date: Fri, 18 Nov 2011 00:51:14 +0000 (UTC)
commit 53bdd79acd56c67185ce5612af3bfd1adb250e27
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Wed Nov 16 19:03:25 2011 +0100
Show VM toolbar with a bit more delay or when reaching top
https://bugzilla.gnome.org/show_bug.cgi?id=664213
src/display-page.vala | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/display-page.vala b/src/display-page.vala
index 9984b85..c7539f9 100644
--- a/src/display-page.vala
+++ b/src/display-page.vala
@@ -26,14 +26,17 @@ private class Boxes.DisplayPage: GLib.Object {
if (event.type == EventType.MOTION_NOTIFY) {
var y = event.motion.y;
- if (y <= 50 && toolbar_show_id == 0) {
+ if (y == 0) {
toolbar_event_stop ();
- toolbar_show_id = Timeout.add (app.duration, () => {
+ set_toolbar_visible (true);
+ } else if (!app.fullscreen && y <= 5 && toolbar_show_id == 0) {
+ toolbar_event_stop ();
+ toolbar_show_id = Timeout.add (1000, () => {
set_toolbar_visible (true);
toolbar_show_id = 0;
return false;
});
- } else if (y > 20) {
+ } else if (y > 5) {
toolbar_event_stop (true, false);
if (toolbar_hide_id == 0)
toolbar_hide_id = Timeout.add (app.duration, () => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]