unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#65534: [FR] icon for w32 notification message
@ 2023-08-25 12:57 Shynur Xie
  2023-08-25 14:13 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Shynur Xie @ 2023-08-25 12:57 UTC (permalink / raw)
  To: 65534

I use this form to send message to the desktop:

    (w32-notification-close
     (w32-notification-notify
      :body "Body."))

But it doesn't display an Emacs icon like this:

    +------------------------+
    |[ICON] GNU.Emacs   ... X|
    |                        |
    |Body.                   |
    +------------------------+

How about adding an icon for this message, like most apps do?

MS-Windows 11
system-configuration: x86_64-w64-mingw32




^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#65534: [FR] icon for w32 notification message
  2023-08-25 12:57 bug#65534: [FR] icon for w32 notification message Shynur Xie
@ 2023-08-25 14:13 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2023-08-25 14:13 UTC (permalink / raw)
  To: Shynur Xie; +Cc: 65534

> From: Shynur Xie <one.last.kiss@outlook.com>
> Date: Fri, 25 Aug 2023 12:57:57 +0000
> msip_labels: 
> 
> I use this form to send message to the desktop:
> 
>     (w32-notification-close
>      (w32-notification-notify
>       :body "Body."))
> 
> But it doesn't display an Emacs icon like this:
> 
>     +------------------------+
>     |[ICON] GNU.Emacs   ... X|
>     |                        |
>     |Body.                   |
>     +------------------------+

The :icon parameter (and its default, if :icon is not specified)
defines the icon shown in the system tray, not the icon shown on the
notification "balloon".

You can have a limited fixed set of icons expressing the severity of
the notification displayed, like this:

(w32-notification-notify
  :body "Text notify"
  :level 'error
  :title "Title")

> How about adding an icon for this message, like most apps do?

Feel free to submit patches that allow that.  I'm not sure I see how
to do that using the Shell_NotifyIconW API, but maybe I'm missing
something.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-25 14:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-25 12:57 bug#65534: [FR] icon for w32 notification message Shynur Xie
2023-08-25 14:13 ` Eli Zaretskii

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).