Keyboard/scrollwheel scrolling in frames...
by Chris Young
....doesn't seem to be implemented. I guess for keyboard scrolling
the core should be dealing with this. However I've had a request to
make the mouse scrollwheel work in frames (it works on the main window
already). Is there any overarching function I can pass these events
to to make this work, or is there no API for scrolling frames from the
frontend?
I can see a potential problem in that the frontend won't know which
frame the mouse is over, so maybe all scroll events (except physically
dragging frontend scrollbars) need to be passed via the core?
Chris
11 years, 6 months
patch: adjust caret position when selected text got removed.
by m0n0
Hello,
Comment: fix positioning of the caret after selected text region got
deleted.
This patch just sets the caret position to selection_start when an
delete input comes in. (desktop/textarea.c)
Please commit or reject.
Thanks & Greets,
m
11 years, 6 months
Re: r13185 chris_y - in /trunk/netsurf/desktop: hotlist.c hotlist.h tree.c tree.h
by John-Mark Bell
On Sun, 2011-11-27 at 20:07 +0000, netsurf(a)semichrome.net wrote:
> - parent = tree_get_default_folder_node(hotlist_tree);
> + if (selected == true) {
> + parent = tree_get_selected_node(tree_get_root(hotlist_tree));
> + if (parent && (tree_node_is_folder == false)) {
tree_node_is_folder is a function. Comparing its address to false is
bogus (and generates compiler warnings here). Please make sure that when
committing changes to core code, they are warning-free. I would fix
this, but I've no understanding of what it is you're attempting to do
here.
> /**
> * Add an entry node.
> - */
> -void hotlist_add_entry(void)
> + *
> + * \param selected add the entry in the currently-selected node
> + */
> +void hotlist_add_entry(bool selected)
> {
> struct node *node, *parent;
> creating_node = true;
>
> - parent = tree_get_default_folder_node(hotlist_tree);
> + if (selected == true) {
> + parent = tree_get_selected_node(tree_get_root(hotlist_tree));
> + if (parent && (tree_node_is_folder == false)) {
Ditto.
J.
11 years, 6 months
Patch: add textarea_set_dimensions function
by m0n0
Hello,
this patch allows to resize the desktop textarea anytime, not just at
creation time.
Comment: added global textarea_set_dimensions function
Reject or commit. Thanks.
Greet,
m
11 years, 6 months