From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrew Tropin Newsgroups: gmane.emacs.bugs Subject: bug#62291: 30.0.50; PGTK copy + paste to other app problem Date: Wed, 22 Mar 2023 15:02:29 +0400 Message-ID: <878rfpujzu.fsf@trop.in> References: <877cvbiuf9.fsf@trop.in> <87edpj1y4r.fsf@yahoo.com> <871qljisd9.fsf@trop.in> <875yav1twf.fsf@yahoo.com> <878rfqxyff.fsf@trop.in> <87o7omz99g.fsf@yahoo.com> <877cvaw09c.fsf@trop.in> <87h6udzkjb.fsf@yahoo.com> <874jqdwg62.fsf@trop.in> <87cz51z568.fsf@yahoo.com> <87v8itutwi.fsf@trop.in> <878rfpyt1j.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16828"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62291@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 22 12:04:31 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pewGd-0004A7-GK for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Mar 2023 12:04:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pewFf-00082j-UD; Wed, 22 Mar 2023 07:03:33 -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 1pewFO-0007yP-GH for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2023 07:03:16 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pewFC-0004jP-Ik for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2023 07:03:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pewFC-0003aG-EN for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2023 07:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Mar 2023 11:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62291 X-GNU-PR-Package: emacs Original-Received: via spool by 62291-submit@debbugs.gnu.org id=B62291.167948296713756 (code B ref 62291); Wed, 22 Mar 2023 11:03:02 +0000 Original-Received: (at 62291) by debbugs.gnu.org; 22 Mar 2023 11:02:47 +0000 Original-Received: from localhost ([127.0.0.1]:33641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pewEw-0003Zn-Qb for submit@debbugs.gnu.org; Wed, 22 Mar 2023 07:02:47 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:36343) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pewEu-0003ZX-AL for 62291@debbugs.gnu.org; Wed, 22 Mar 2023 07:02:45 -0400 Original-Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 30AFF240004; Wed, 22 Mar 2023 11:02:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1679482958; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=icLMmGstMLQmxeBMzgSUVVdh/mTZPUWinJhMuWnOeHo=; b=pqDqB00d6QQDxso2nxM4s204C5a4H0SHwo+GR5NmE9De+ZESNwsaklTNoJiqJuYlynhB65 j7QH7NmQbr2soa72VyKH3c6VMXk8vaRbA8rxjlyJSMbL7wmLjFBhFk3RZ1utrGqX+tCnHz 9U30bXicDshXtzmgTevzFwJTTJI8obyWPApZBVYZ19euGLwh0ZizRIyFNjlc83S42bfBKO GnS7ofuQj4RhB7ILstRWfhWPUfUG/Valdse3IEd+oUzv+FBn6J3V4pgrKpCgPGh1quw8jL mAWzJA4G+ldMyyVbNIEWRcwtODJTytaOPcRtP+2/sSxFzosGKMOIoHlGlym8/g== In-Reply-To: <878rfpyt1j.fsf@yahoo.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258395 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2023-03-22 18:33, Po Lu wrote: > Andrew Tropin writes: > >> On 2023-03-22 14:11, Po Lu wrote: >> >>> Andrew Tropin writes: >>> >>>> On 2023-03-22 08:39, Po Lu wrote: >>>> >>>>> Andrew Tropin writes: >>>>> >>>>>> (gdb) frame 12 >>>>>> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=3Dwidget= @entry=3D0xfee500, event=3Devent@entry=3D0xfdb4a0) at gtkwidget.c:7808 >>>>>> 7808 in gtkwidget.c >>>>>> (gdb) p *event >>>>>> $3 =3D {type =3D GDK_FOCUS_CHANGE, any =3D {type =3D GDK_FOCUS_CHANG= E, window =3D 0xefc450, send_event =3D 0 '\000'}, expose =3D {type =3D GDK_= FOCUS_CHANGE, window =3D 0xefc450,=20 >>>>>> send_event =3D 0 '\000', area =3D {x =3D 0, y =3D 0, width =3D 0= , height =3D 0}, region =3D 0x0, count =3D 0}, visibility =3D {type =3D GDK= _FOCUS_CHANGE, window =3D 0xefc450,=20 >>>>>> send_event =3D 0 '\000', state =3D GDK_VISIBILITY_UNOBSCURED}, m= otion =3D {type =3D GDK_FOCUS_CHANGE, window =3D 0xefc450, send_event =3D 0= '\000', time =3D 0, x =3D 0, y =3D 0, axes =3D 0x0,=20 >>>>>> state =3D 0, is_hint =3D 0, device =3D 0x0, x_root =3D 0, y_root= =3D 0}, button =3D {type =3D GDK_FOCUS_CHANGE, window =3D 0xefc450, send_e= vent =3D 0 '\000', time =3D 0, x =3D 0, y =3D 0,=20 >>>>>> axes =3D 0x0, state =3D 0, button =3D 0, device =3D 0x0, x_root = =3D 0, y_root =3D 0}, touch =3D {type =3D GDK_FOCUS_CHANGE, window =3D 0xef= c450, send_event =3D 0 '\000', time =3D 0, x =3D 0,=20 >>>>>> y =3D 0, axes =3D 0x0, state =3D 0, sequence =3D 0x0, emulating_= pointer =3D 0, device =3D 0x0, x_root =3D 0, y_root =3D 0}, scroll =3D {typ= e =3D GDK_FOCUS_CHANGE, window =3D 0xefc450,=20 >>>>>> send_event =3D 0 '\000', time =3D 0, x =3D 0, y =3D 0, state =3D= 0, direction =3D GDK_SCROLL_UP, device =3D 0x0, x_root =3D 0, y_root =3D 0= , delta_x =3D 0, delta_y =3D 0, is_stop =3D 0}, key =3D { >>>>>> type =3D GDK_FOCUS_CHANGE, window =3D 0xefc450, send_event =3D 0= '\000', time =3D 0, state =3D 0, keyval =3D 0, length =3D 0, string =3D 0x= 0, hardware_keycode =3D 0, group =3D 0 '\000',=20 >>>>>> is_modifier =3D 0}, crossing =3D {type =3D GDK_FOCUS_CHANGE, win= dow =3D 0xefc450, send_event =3D 0 '\000', subwindow =3D 0x0, time =3D 0, x= =3D 0, y =3D 0, x_root =3D 0, y_root =3D 0,=20 >>>>>> mode =3D GDK_CROSSING_NORMAL, detail =3D GDK_NOTIFY_ANCESTOR, fo= cus =3D 0, state =3D 0}, focus_change =3D {type =3D GDK_FOCUS_CHANGE, windo= w =3D 0xefc450, send_event =3D 0 '\000', in =3D 1},=20 >>>>>> configure =3D {type =3D GDK_FOCUS_CHANGE, window =3D 0xefc450, sen= d_event =3D 0 '\000', x =3D 0, y =3D 0, width =3D 0, height =3D 0}, propert= y =3D {type =3D GDK_FOCUS_CHANGE, window =3D 0xefc450,=20 >>>>>> send_event =3D 0 '\000', atom =3D 0x0, time =3D 0, state =3D 0},= selection =3D {type =3D GDK_FOCUS_CHANGE, window =3D 0xefc450, send_event = =3D 0 '\000', selection =3D 0x0, target =3D 0x0,=20 >>>>>> property =3D 0x0, time =3D 0, requestor =3D 0x0}, owner_change = =3D {type =3D GDK_FOCUS_CHANGE, window =3D 0xefc450, send_event =3D 0 '\000= ', owner =3D 0x0,=20 >>>>>> reason =3D GDK_OWNER_CHANGE_NEW_OWNER, selection =3D 0x0, time = =3D 0, selection_time =3D 0}, proximity =3D {type =3D GDK_FOCUS_CHANGE, win= dow =3D 0xefc450, send_event =3D 0 '\000',=20 >>>>>> time =3D 0, device =3D 0x0}, dnd =3D {type =3D GDK_FOCUS_CHANGE,= window =3D 0xefc450, send_event =3D 0 '\000', context =3D 0x0, time =3D 0,= x_root =3D 0, y_root =3D 0}, window_state =3D { >>>>>> type =3D GDK_FOCUS_CHANGE, window =3D 0xefc450, send_event =3D 0= '\000', changed_mask =3D 0, new_window_state =3D 0}, setting =3D {type =3D= GDK_FOCUS_CHANGE, window =3D 0xefc450,=20 >>>>>> send_event =3D 0 '\000', action =3D GDK_SETTING_ACTION_NEW, name= =3D 0x0}, grab_broken =3D {type =3D GDK_FOCUS_CHANGE, window =3D 0xefc450,= send_event =3D 0 '\000', keyboard =3D 0,=20 >>>>>> implicit =3D 0, grab_window =3D 0x0}, touchpad_swipe =3D {type = =3D GDK_FOCUS_CHANGE, window =3D 0xefc450, send_event =3D 0 '\000', phase = =3D 0 '\000', n_fingers =3D 1 '\001', time =3D 0,=20 >>>>>> x =3D 0, y =3D 0, dx =3D 0, dy =3D 0, x_root =3D 0, y_root =3D 0= , state =3D 0}, touchpad_pinch =3D {type =3D GDK_FOCUS_CHANGE, window =3D 0= xefc450, send_event =3D 0 '\000', phase =3D 0 '\000',=20 >>>>>> n_fingers =3D 1 '\001', time =3D 0, x =3D 0, y =3D 0, dx =3D 0, = dy =3D 0, angle_delta =3D 0, scale =3D 0, x_root =3D 0, y_root =3D 0, state= =3D 0}, pad_button =3D {type =3D GDK_FOCUS_CHANGE,=20 >>>>>> window =3D 0xefc450, send_event =3D 0 '\000', time =3D 0, group = =3D 0, button =3D 0, mode =3D 0}, pad_axis =3D {type =3D GDK_FOCUS_CHANGE, = window =3D 0xefc450, send_event =3D 0 '\000',=20 >>>>>> time =3D 0, group =3D 0, index =3D 0, mode =3D 0, value =3D 0}, = pad_group_mode =3D {type =3D GDK_FOCUS_CHANGE, window =3D 0xefc450, send_ev= ent =3D 0 '\000', time =3D 0, group =3D 0, mode =3D 0}} >>>>>> >>>>>> Thank you for your patience :) >>>>> >>>>> OK, thanks. This is quite odd. If you type: >>>>> >>>>> (gdb) p G_OBJECT_TYPE_NAME (widget) >>>>> >>>>> what do you see? >>>> >>>> (gdb) p G_OBJECT_TYPE_NAME (widget) >>>> No symbol "G_OBJECT_TYPE_NAME" in current context. >>> >>> Hmm. Would you please try this instead? >>> >>> (gdb) p g_type_name (((GTypeInstance *) widget)->g_class->g_type) >> >> (gdb) p g_type_name (((GTypeInstance *) widget)->g_class->g_type) >> 'g_type_name' has unknown return type; cast the call to its declared ret= urn type > > Ah, I guess you have to cast it to (char *): > > (gdb) p (char *) g_type_name ... (gdb) p (char *) g_type_name (((GTypeInstance *) widget)->g_class->g_type) $1 =3D 0x7ffff7a6dda2 "GtkWindow" =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmQa4EUACgkQIgjSCVjB 3rDdAA/8Cd3w0BKMnAXFaftUqNpRrTSChn85owQgFME+P+CbLc8L+6d/WoHAkP6P RckfMhzMFmBuh0zf5ToXotj+FeDypAqP487V3R4UU1qq5owTdcXrlGRk3fkbqYFC BDxTBujIm76TGiOcyFITiJ79pcED1LgTo6shoiL0GRTxdYO/iTGs60eTN4iZyviD UQYpZFvklDqsDNMqxGLHumvgbnfO+MQj92M2I0a3fCYhBtaIQtR720OtAX+UwW3F tb6pExDaIltiQ9QPavg0rk/q0f5Wu6fKCORkZejZj6IwEkmAK2baaTy4PmxRJA+p h7G5nI+x8dH2QdCzlUr4vhBFPNn7qGjk/idqEf2MJUpqb9xkMgHAlLLAta8LvNrU dBposXdSbR+QdGARXYxpRftz7oh8LhHiKtWdb6MZHks5eReenO49Ffx0EiZjFKIL S+G7UR7p4e5G7jg/HzXNzjonSXNx2wXqLi5Q87nCYz/hJuGyahqN+BZ8PcfKt0LX pbyqflVTC9zAYUGvCjALSNhvnLNwZwTT9emu6nhlxa6pR6Ye8mBKMItuzduvLTDn 0Ec/tXitxz0O+t+g2gndS5BsVQVHuhtWT8uy17lK2G8Ic6dB8yiRkXqNQZ6lN6Z3 KTSCqTTIF91JPqVK8v7LnORbUZh+Joc9zXlO28avUOK79oIuAXo= =sDHa -----END PGP SIGNATURE----- --=-=-=--