[Webkit-unassigned] [Bug 175937] [GTK] gtk_builder_get_type_from_name doesn't work with WebKitWebView

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 25 01:07:31 PDT 2017


--- Comment #6 from Debarshi Ray <rishi.is at lostca.se> ---
(In reply to Michael Catanzaro from comment #2)
> The problem is it is looking for the symbol web_kit_web_view_get_type, when
> it needs to look for webkit_web_view_get_type.

Oh, yes, of course! :)

(In reply to Michael Catanzaro from comment #4)
> (In reply to Michael Catanzaro from comment #2)
>> Workaround: manually register the type before creating the GtkBuilder.
>> Something like g_object_unref (g_object_ref_sink (webkit_web_view_new ()))
>> should work.
> I guess that's overkill. Just calling webkit_web_view_get_type() would be
> the usual workaround. I'm sure similar workarounds exist elsewhere in GNOME.

The "recommended workaround" would be:
  g_type_ensure (WEBKIT_TYPE_WEB_VIEW)

(In reply to Christian Hergert from comment #5)
> With "Kit" being more and more common, maybe it makes sense to teach
> GtkBuilder that words followed by "Kit" should be joined?

Or, I wonder if webkitgtk should have a compatibility shim called web_kit_web_view_get_type that just calls webkit_web_view_get_type?

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170825/2de438c5/attachment.html>

More information about the webkit-unassigned mailing list