GNOME Bugzilla – Bug 705607
Navigation buttons fail to reappear on mouse motion and when previewing the same photo
Last modified: 2013-08-08 22:53:02 UTC
* In overview mode, click on a picture to go in preview mode * In preview mode, click on the right arrow to switch to the next picture * Click on the gear button to open the menu and then re-click it to close the drop-down menu * Observe the navigation buttons disappear, as photos_preview_nav_buttons_auto_hide() gets called * Note that they won't reappear, no matter what you do From my understanding the issue is that photos-preview-nav-buttons.c relies on the GtkWidget::motion-notify-event event being triggered on the main GtkOverlay, but since this widget does not have the GDK_POINTER_MOTION_MASK|GDK_POINTER_MOTION_HINT_MASK set, the motion notification callback is never invoked. If that proves to be the case, inserting a GtkEventBox in the overlay or somewhere else may fix the problem.
Since this is a clone of gnome-documents' PreviewNavButtons, I was curious what might be causing this. It turns out that the EvView.View widget used by gnome-documents has GDK_POINTER_MOTION_MASK set on it, while our GeglGtkView doesn't have it. This is solved by setting the mask using gtk_widget_add_events. There is another issue here, where you won't find the buttons if you went back to the overview and tried previewing the same photo again. Patches coming up.
Updating the summary to reflect the 2nd issue.
Created attachment 251192 [details] [review] preview-view: Receive motion-notify-events I like this option because it reduces the delta with gnome-documents.
Created attachment 251193 [details] [review] preview-view: Always show the navigation buttons when a node is set