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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 24 08:52:34 PDT 2017


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

            Bug ID: 175937
           Summary: gtk_builder_get_type_from_name doesn't work with
                    WebKitWebView
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rishi.is at lostca.se
                CC: bugs-noreply at webkitgtk.org

Created attachment 318990

  --> https://bugs.webkit.org/attachment.cgi?id=318990&action=review

Test case

For any child widget inside a GTK+ widget template, GtkBuilder uses gtk_builder_get_type_from_name to get a GType corresponding to the class name. If a WebKitWebView is used it will use:
  type = gtk_builder_get_type_from_name (builder, "WebKitWebView");

GtkBuilder has some heuristics to get the *_get_type method corresponding to the class name so that it can register the type, if needed. See _gtk_builder_resolve_type_lazily in gtk/gtkbuilder.c.

This isn't working with WebKitWebView. However, it works with VteTerminal, which also offers a GtkWidget with a public C API that's internally implemented using C++.

-- 
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/20170824/effcdafe/attachment.html>


More information about the webkit-unassigned mailing list