unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Julien Cubizolles <j.cubizolles@free.fr>
To: Po Lu <luangruo@yahoo.com>
Cc: 55497@debbugs.gnu.org
Subject: bug#55497: 29.0.50; Emacs Windows unidentified in Wayland (correct bug-report)
Date: Thu, 19 May 2022 09:16:47 +0200	[thread overview]
Message-ID: <87y1yyouu8.fsf@free.fr> (raw)
In-Reply-To: <87pmkal4ty.fsf@yahoo.com> (Po Lu's message of "Thu, 19 May 2022 08:54:33 +0800")

Po Lu <luangruo@yahoo.com> writes:

> Julien Cubizolles <j.cubizolles@free.fr> writes:
>
>> I just realized that something wasn't clear in my bug-report. The frame
>> does have a name, that can be changed with emacs -Q -T "Hello" for
>> instance. This name is displayed by the windows manager when
>> browsing through all open windows with Alt-Tab.
>>
>> However its icon is the generic one used for unidentified applications,
>> even though there is a desktop file for Emacs windows which is used when
>> running older versions of Emacs.
>
> Hmm.  Could you put a breakpoint on `xg_set_icon_from_xpm_data' (the
> version in pgtkfns.c) and see if it's ever hit?

I have no experience in C programming. Don't know if I did the right
thing: I added a print and return in this function:

--8<---------------cut here---------------start------------->8---
xg_set_icon_from_xpm_data (struct frame *f, const char **data)
{
  GdkPixbuf *pixbuf = gdk_pixbuf_new_from_xpm_data (data);

  printf("Got into xg_set_icon_from_xpm_data.\n");
  return 1;
  if (!pixbuf)
    return false;
  
  if (!FRAME_GTK_OUTER_WIDGET (f))
    return false;
  
  gtk_window_set_icon (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), pixbuf);
  g_object_unref (pixbuf);
  return true;
}
--8<---------------cut here---------------end--------------->8---

and built emacs from git after ./configure --with-pgtk
. Emacs -Q didn't print the message nor dit it
break. It doesn't seem to get to this function.

-- 
Julien Cubizolles





  reply	other threads:[~2022-05-19  7:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-18  8:54 bug#55497: 29.0.50; Emacs Windows unidentified in Wayland (correct bug-report) Julien Cubizolles
2022-05-18  9:57 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-18 12:45   ` Julien Cubizolles
2022-05-19  0:54     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-19  7:16       ` Julien Cubizolles [this message]
2022-05-19  7:47         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y1yyouu8.fsf@free.fr \
    --to=j.cubizolles@free.fr \
    --cc=55497@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).