<div dir="ltr"><div>Thanks Tomaž, yep I missed the GDK_CROSS on the gtk3 reference page <span class="gmail-im"><a href="https://developer.gnome.org/gdk3/stable/gdk3-Cursors.html" rel="noreferrer" target="_blank">https://developer.gnome.org/<wbr>gdk3/stable/gdk3-Cursors.html</a></span><br><br></div><div>I am implementing <b>PointerStyle::FatCross</b> to be used to diplay a 'fat cross' mouse cursor when hovering the spreadsheet grid. Up to this point, I am only concerned with the GTK3 backend. So far I have done:<br><br>1. Expanded the <b>enum class PointerStyle </b>to include <b>FatCross          = 96, </b>in file /libreoffice/include/vcl/ptrstyle.hxx;<br><br></div><div>2. Changed line 53 of 'fudraw.cxx' from   <b>aNewPointer ( PointerStyle::Arrow ),</b> to <b>aNewPointer ( PointerStyle::FatCross ), <br><br></b></div><div>3. Added line <b>MAP_BUILTIN( PointerStyle::FatCross, GDK_CROSS );</b> to <b>GdkCursor *GtkSalDisplay::getCursor( PointerStyle ePointerStyle )</b> on files <b>gtkdata.cxx</b> and <b>gtk3gtkdata.cxx. </b>This should do the mapping of <b>FatCross</b> from vcl to gtk3.<b><br><br></b></div><div>This changes will compile successfully. However, when I start LO-Calc and hover over the cell grid area, the program crashes and displays an 'unexpected error'. My guess is that the <b>FatCross          = 96, </b>member of <b>enum class PointerStyle</b> is not defined correctly. Any idea on what is needed to define <b>FatCross</b>? How can I make the <b>FatCross</b> work in GTK3?<br><br></div><div>ps: As I said in the email I set earlier:<br><br>Basically the idea is to change the 'arrow' mouse icon into a 'fat cross' when hovering over calc spreadsheet cell grid. <br><br>Preliminar investigation reveals that this behaviour can be well approximated if line 53 of file fudraw.cxx is changed from <br>"  aNewPointer ( PointerStyle::Arrow )," change into "   aNewPointer ( PointerStyle::Cross ),"<br><br>However,
the resulting cross looks a litle bit too thin and cannot be used because it is the same mouse cursor used to drag equations around. This is why I created a new PointerStyle::FatCross, so it is different from PointerStyle::Cross, which is currently used to drag equations.<br></div><div><br> </div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-02-06 9:42 GMT+00:00 Tomaž Vajngerl <span dir="ltr"><<a href="mailto:quikee@gmail.com" target="_blank">quikee@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
On Fri, Feb 3, 2017 at 10:12 AM, Nuno Ferreira <<a href="mailto:nuno360@gmail.com">nuno360@gmail.com</a>> wrote:<br>
> Another issue is the fact that GTK3+ does not seem to offer the fat cross<br>
> anymore, only the crosshair....<br>
> <a href="https://developer.gnome.org/gdk3/stable/gdk3-Cursors.html" rel="noreferrer" target="_blank">https://developer.gnome.org/<wbr>gdk3/stable/gdk3-Cursors.html</a>. If this is true<br>
> maybe we could use the crosshair when hovering over the grid of the<br>
> spreadsheet? Send a request to GTK team to include a fat cross on their icon<br>
> set?<br>
<br>
</span>There is still GDK_CROSS and GDK_CROSSHAIR in the GdkCursorType enum<br>
(on that same gtk3 reference page). Maybe you missed that? I guess you<br>
can't create the cursor with gdk_cursor_new_from_name and have to use<br>
gdk_cursor_new which accepts a GdkCursorType enum.<br>
<br>
Anyway gtk3 is only one of the back-ends :)<br>
<br>
> Thanks,<br>
> Nuno<br>
<br>
Regards, Tomaž<br>
</blockquote></div><br></div>