[Webkit-unassigned] [Bug 17154] New: [GTK] Widget size negotiation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 2 11:40:15 PST 2008


           Summary: [GTK] Widget size negotiation
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Keywords: Gtk
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: alp at atoker.com

When not packed into a GtkScrolledWindow, WebKitWebView should request the full
size of its content and expand/shrink as needed. This is useful for integrating
bits of Web content into traditional GTK+ applications.

So, in this case, it should be made to behave like GtkTextView:

main (int argc, char *argv[])
    gtk_init (&argc, &argv);

    GtkWidget *web_view = WEBKIT_WEB_VIEW (webkit_web_view_new ());
    webkit_web_view_set_editable (web_view, TRUE);

    GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    gtk_window_set_title (window, "WebView");
    gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (web_view));

    gchar *uri = (gchar *) (argc > 1 ? argv[1] : "http://www.google.com/");
    webkit_web_view_open (web_view, uri);

    gtk_widget_show_all (window);

    gtk_main ();

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list