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 661345 - PageUp and PageDown down scroll text from within the search window
PageUp and PageDown down scroll text from within the search window
Status: RESOLVED OBSOLETE
Product: anjuta
Classification: Applications
Component: plugins: search
git master
Other Linux
: Normal minor
: ---
Assigned To: Anjuta maintainers
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-09 21:51 UTC by Jason Siefken
Modified: 2020-11-06 20:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for PageUp and PageDown to work when search window is active (1.02 KB, patch)
2012-04-15 10:03 UTC, Sreepriya
reviewed Details | Review

Description Jason Siefken 2011-10-09 21:51:04 UTC
When using the search bar (ctrl+f) to search though code, PageUp and PageDown should scroll the current document.

Pressing up or down in the search box moves focus to the current document, so maybe PageUp and PageDown should have the same behavior.
Comment 1 Johannes Schmid 2011-10-09 23:44:36 UTC
If you want to give it a try, add PAGEUP/PAGEDOWN do the special casing here:
http://git.gnome.org/browse/anjuta/tree/plugins/document-manager/search-box.c#n207
Comment 2 Jason Siefken 2011-10-12 05:21:11 UTC
Thanks for the code point.  It is clear enough how to revert focus to the code window, but what I am not sure how to do is pass through the Page{Up,Down} event.  Do I need to re-emit this signal somehow?
Comment 3 Johannes Schmid 2011-10-12 14:28:42 UTC
AFAIK, we just have to ignore the signal in the entry. But I am not overall sure if we can do it with the signal. Normally you would overwrite the virtual function and just don't call the parent's one.

Anyway, I will have a look at it once I am back home in about two weeks.
Comment 4 Sreepriya 2012-04-15 10:03:50 UTC
Created attachment 212075 [details] [review]
Patch for PageUp and PageDown to work when search window is active

The patch adds two cases for page up and page down in document-manager/search-box.c enabling the Page-up and Page-down functions to work even when there is a search window.
Comment 5 Sébastien Granjoux 2012-04-15 11:00:42 UTC
Review of attachment 212075 [details] [review]:

Thanks for your patch, I have tried here and it's working. 

But I think that perhaps it could be a bit better to stay in the search entry widget. Currently when you press page up/page down you just exit from the search entry. The first page up/page down is ignored and you have to press Ctrl+F again to go back to the search entry.

So first, isn't it possible to redirect the first page up/page down event to the editor?
Then could you stay in the search entry widget after the move in the text editor?
Comment 6 Sreepriya 2012-04-15 12:26:07 UTC
Do you think editing on this part of the code can help?
 git.gnome.org/browse/anjuta/tree/plugins/sourceview/anjuta-view.c#n613 

And can you tell me what is assist_tip ?
Comment 7 Sébastien Granjoux 2012-04-15 13:33:50 UTC
(In reply to comment #6)
> Do you think editing on this part of the code can help?
>  git.gnome.org/browse/anjuta/tree/plugins/sourceview/anjuta-view.c#n613 

No, it should work whatever is the editor. So you should rather try to reemit the event to the editor widget.


> And can you tell me what is assist_tip ?

It's a small popup window which appears , by example, when you type a function name to list all possibilities or give you information about the function arguments. It's not related to this.
Comment 8 André Klapper 2020-11-06 20:22:52 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports in Bugzilla which have not seen updates for many years.

If you can still reproduce this issue in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/anjuta/-/issues/

Thank you for reporting this issue and we are sorry it could not be fixed.