[Webkit-unassigned] [Bug 159630] New: [GTK] Add webkit_context_menu_find API from Epiphany
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 11 10:08:32 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=159630
Bug ID: 159630
Summary: [GTK] Add webkit_context_menu_find API from Epiphany
Classification: Unclassified
Product: WebKit
Version: Other
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Gtk
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at igalia.com
CC: bugs-noreply at webkitgtk.org
We have this code in ephy-window.c; it should probably be upstreamed into WebKitContextMenu.
/* FIXME: Add webkit_context_menu_find() ? */
static WebKitContextMenuItem *
find_item_in_context_menu (WebKitContextMenu *context_menu,
WebKitContextMenuAction action)
{
GList *items, *iter;
items = webkit_context_menu_get_items (context_menu);
for (iter = items; iter; iter = g_list_next (iter)) {
WebKitContextMenuItem *item = (WebKitContextMenuItem *)iter->data;
if (webkit_context_menu_item_get_stock_action (item) == action)
return g_object_ref (item);
}
return NULL;
}
--
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/20160711/76af2136/attachment.html>
More information about the webkit-unassigned
mailing list