[Webkit-unassigned] [Bug 162603] [GTK] Switch to use GMenu internally in the context menu implementation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 28 00:15:54 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=162603

--- Comment #3 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to comment #2)
> Comment on attachment 289933 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=289933&action=review
> 
> Thank you!
> 
> > Source/WebKit2/ChangeLog:8
> > +        Switch to use GAction instead of GtkAtion internally, but still keeping a GtkAction associated to the GAction,
> 
> GtkAtion -> GtkAction
> 
> > Source/WebKit2/Shared/gtk/WebContextMenuItemGtk.cpp:160
> > +    GUniquePtr<char> actionName(g_strdup_printf("action-%" G_GUINT64_FORMAT, ++actionID));
> 
> Nit: since it's a uint64_t rather than a guint64, I would print it with
> PRIu64
> 
> > Source/WebKit2/UIProcess/gtk/WebContextMenuProxyGtk.h:64
> > +    HashMap<unsigned long, void*> m_signalHandlers;
> 
> I don't understand, why use void* instead of GAction*? GAction* would
> obviously be safer.

To avoid casts between GAction - GSimpleAction. I don't think there any risk in using void*, g_signal_handler_disconnect expects a gpointer, and this is used privately only.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160928/7f6b59c6/attachment.html>


More information about the webkit-unassigned mailing list