From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: moving xwidget-webkit to WPE Date: Sat, 27 Jul 2024 22:09:38 +0200 Message-ID: <87a5i2ppfh.fsf@tanaka.verona.se> References: <87ikwqpq94.fsf@tanaka.verona.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8708"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Po Lu , =?iso-8859-1?Q?No=E9?= Lopez To: =?iso-8859-1?Q?No=E9?= Lopez via "Emacs development discussions." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 27 22:10:41 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sXnkW-00026v-Ed for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Jul 2024 22:10:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXnjh-0007Hs-4A; Sat, 27 Jul 2024 16:09:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXnje-0007Gh-MW for emacs-devel@gnu.org; Sat, 27 Jul 2024 16:09:46 -0400 Original-Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXnjb-0002Ms-LH for emacs-devel@gnu.org; Sat, 27 Jul 2024 16:09:45 -0400 Original-Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 3DC132D0E7 for ; Sat, 27 Jul 2024 22:09:40 +0200 (CEST) Original-Received: from s934.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 17BB32E58E; Sat, 27 Jul 2024 22:09:40 +0200 (CEST) Original-Received: from s474.loopia.se (unknown [172.22.191.6]) by s934.loopia.se (Postfix) with ESMTP id 15D017CEA5E; Sat, 27 Jul 2024 22:09:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se Authentication-Results: s474.loopia.se (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=verona.se Original-Received: from s980.loopia.se ([172.22.191.5]) by s474.loopia.se (s474.loopia.se [172.22.190.14]) (amavisd-new, port 10024) with LMTP id G8BknPuMJPTh; Sat, 27 Jul 2024 22:09:38 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: smtpuser@verona.se X-Loopia-Originating-IP: 193.234.148.196 Original-Received: from tanaka.verona.se (unknown [193.234.148.196]) (Authenticated sender: smtpuser@verona.se) by s980.loopia.se (Postfix) with ESMTPSA id B26582201621; Sat, 27 Jul 2024 22:09:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verona.se; s=loopiadkim1720028670; t=1722110978; bh=UOIlGqNzKpJ/vbawf6htajJV97w/9jRilOiBbXkQrSc=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=mbiEwwmGHWhXHIPr7Nf6cYXy14yKLAcjk05G5eKpP6UcE2wt8TFjQjuhBCJeNIYIz pvPUgfHVLbCaV3AVkIKV1ZM/Qnb+iK9aVZHZ9dJN/X8mkRPXTxBOPO+peojrpaR2vY nKpqeQ9b590GNyAAnPy0SARawz7o0enl6Sex8agPr4OHz/QD47ZH56NB+It+okeZ3P O/gU3LRJOWQoJRKDYoEd+HDpOHiabl4aq+f6q6TfHCuBqB6VjoWNCMJmgUucBTUNHx zqY6jzw3qfYfEIE8C9YuBjb89HN9a+VyTsSi/VnEfuWukQILi5Bw4r2iwQx5az8PgH CHBNqcNQdhLeQ== In-Reply-To: <87ikwqpq94.fsf@tanaka.verona.se> (joakim@verona.se's message of "Sat, 27 Jul 2024 21:51:51 +0200") Received-SPF: pass client-ip=93.188.3.37; envelope-from=joakim@verona.se; helo=smtp.outgoing.loopia.se X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322145 Archived-At: joakim@verona.se writes: > No=E9 Lopez via "Emacs development discussions." > writes: > >> Hi, >> >> I've been testing with having a simple GtkButton/GtkLabel as an xwidget, >> and it seems the event handling functions (for example >> window_coords_from_toplevel) are expecting xwidget->widget_osr to be a >> GdkWindow. >> >> This is weird to me, as I understand xwidget->widgetwindow_osr is >> already a GtkOffscreenWindow and contains xwidget->widget_osr. Why have >> a window in a window? >> >> For WPE I think I will use GtkDrawingArea which doesn't cause any issues >> so I shouldn't need to change anything on this end, but I wonder if it >> is a limitations of xwidgets or just something that you didn't need to >> implement because the GTK WebkitView is a window. >> >> All the best, >> No=E9 Lopez > > FWIW the original idea of xwidgets was to allow for different widget > types. > > Some rambling notes from way back about this are here: > https://github.com/jave/xwidget-aux > > There was some code to test xwidgets sliders, buttons etc, and also an > attempt at a generic gobject elisp bridge. > > That being said, the emacs maintainers have improved the code a lot > since then, so those notes are just a historical curiosity now. Also I found the old xwidget.c https://github.com/jave/xwidget-emacs/blob/xwidget/src/xwidget.c It has stuff for - Button - ToggleButton - slider - socket - socket-osr - cairo All of it obsolete and outdated, but anyway, FWIW, etc. Regards /Joakim > > Regards, > Joakim >> --=20 Joakim Verona joakim@verona.se