After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 691253 - prev/next page overlay buttons
prev/next page overlay buttons
Status: RESOLVED FIXED
Product: gnome-documents
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME documents maintainer(s)
GNOME documents maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-01-06 22:05 UTC by William Jon McCann
Modified: 2013-02-16 19:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add basic prev / next page overlay buttons (7.12 KB, patch)
2013-02-16 13:04 UTC, William Jon McCann
reviewed Details | Review
Add basic prev / next page overlay buttons (7.76 KB, patch)
2013-02-16 14:49 UTC, William Jon McCann
none Details | Review
Add basic prev / next page overlay buttons (7.82 KB, patch)
2013-02-16 14:53 UTC, William Jon McCann
committed Details | Review

Description William Jon McCann 2013-01-06 22:05:21 UTC
Now that we've switched away from using the continuous page view we need a better way of easily moving to the next/prev page.

I think we can have click targets overlaid on the view. Visible slightly when hovering.
Comment 2 William Jon McCann 2013-02-16 13:04:37 UTC
Created attachment 236361 [details] [review]
Add basic prev / next page overlay buttons
Comment 3 Cosimo Cecchi 2013-02-16 14:43:58 UTC
Review of attachment 236361 [details] [review]:

Thanks for the patch! Looks mostly good, with some comments:

::: src/preview.js
@@ +670,3 @@
+    },
+
+

This seems to be unused right now

@@ +680,3 @@
+    _queueAutoHide: function() {
+        if (this._autoHideId != 0)
+    },

You should call unqueueAutoHide() here probably.

@@ +718,3 @@
+    },
+
+    },

I'd rather this function and _hide() to be called something more descriptive, like _fadeInButton/_fadeOutButton, for clarity (as we have show/hide already).
Comment 4 William Jon McCann 2013-02-16 14:49:21 UTC
Created attachment 236366 [details] [review]
Add basic prev / next page overlay buttons

Don't hide buttons when hovering over them.
Comment 5 William Jon McCann 2013-02-16 14:53:54 UTC
Created attachment 236367 [details] [review]
Add basic prev / next page overlay buttons

address comments
Comment 6 Cosimo Cecchi 2013-02-16 16:28:57 UTC
Review of attachment 236367 [details] [review]:

Looks good to commit with these minor changes

::: src/preview.js
@@ +646,3 @@
+    _onEnterNotify: function() {
+        this._hover = true;
+        this.prev_widget.connect('clicked', Lang.bind(this, this._onPrevClicked));

Need to return false here, _onLeaveNotify() and _onMotion().

@@ +723,3 @@
+    setModel: function(model) {
+        if (this._pageChangedId != 0)
+        }

Should set this to zero, as we only reset pageChangedId when model != null below.
Comment 7 William Jon McCann 2013-02-16 19:11:38 UTC
Attachment 236367 [details] pushed as bcb39fa - Add basic prev / next page overlay buttons