* Feature request - dynamic icon pixmap
@ 2005-02-15 6:12 Sun Yijiang
2005-02-15 16:14 ` Jan D.
0 siblings, 1 reply; 5+ messages in thread
From: Sun Yijiang @ 2005-02-15 6:12 UTC (permalink / raw)
GNU Emacs' bitmapicon is a little ugly and not configurable -- that's
the truth. XEmacs' elisp function x-set-screen-icon-pixmap can change
program icon dynamically, this is very useful when you're working with
sevral frames with different major modes -- they can have their own
icons in the "taskbar". I wonder if this feature is in the TODO list
of GNU Emacs, If not, I suggest to have it added.
Sun Yijiang
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Feature request - dynamic icon pixmap
2005-02-15 6:12 Feature request - dynamic icon pixmap Sun Yijiang
@ 2005-02-15 16:14 ` Jan D.
2005-02-16 1:37 ` Sun Yijiang
0 siblings, 1 reply; 5+ messages in thread
From: Jan D. @ 2005-02-15 16:14 UTC (permalink / raw)
Cc: emacs-devel
Sun Yijiang wrote:
>GNU Emacs' bitmapicon is a little ugly and not configurable -- that's
>the truth. XEmacs' elisp function x-set-screen-icon-pixmap can change
>program icon dynamically, this is very useful when you're working with
>sevral frames with different major modes -- they can have their own
>icons in the "taskbar". I wonder if this feature is in the TODO list
>of GNU Emacs, If not, I suggest to have it added.
>
You can set the frame parameter icon-type to a icon file. For the GTK
version the format of the file can be any format supported by GdkPixbuf,
but for other ports of Emacs it must be a bitmap.
Jan D.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Feature request - dynamic icon pixmap
2005-02-15 16:14 ` Jan D.
@ 2005-02-16 1:37 ` Sun Yijiang
2005-02-16 2:00 ` Henrik Enberg
2005-02-16 13:22 ` Jan D.
0 siblings, 2 replies; 5+ messages in thread
From: Sun Yijiang @ 2005-02-16 1:37 UTC (permalink / raw)
Cc: emacs-devel
Yes, I can change the default icon when I create a new frame:
(make-frame '((name . "testf") (icon-type . "/path/test.png")))
But I cannot change a frame's icon by modifying its icon-type parameter:
(set-frame-parameter my-frame 'icon-type "/path/test2.png")
Nothing happens after this under GNOME or KDE
That's what I mean by "dynamic".
On Tue, 15 Feb 2005 17:14:17 +0100, Jan D. <jan.h.d@swipnet.se> wrote:
> Sun Yijiang wrote:
>
> >GNU Emacs' bitmapicon is a little ugly and not configurable -- that's
> >the truth. XEmacs' elisp function x-set-screen-icon-pixmap can change
> >program icon dynamically, this is very useful when you're working with
> >sevral frames with different major modes -- they can have their own
> >icons in the "taskbar". I wonder if this feature is in the TODO list
> >of GNU Emacs, If not, I suggest to have it added.
> >
>
> You can set the frame parameter icon-type to a icon file. For the GTK
> version the format of the file can be any format supported by GdkPixbuf,
> but for other ports of Emacs it must be a bitmap.
>
> Jan D.
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Feature request - dynamic icon pixmap
2005-02-16 1:37 ` Sun Yijiang
@ 2005-02-16 2:00 ` Henrik Enberg
2005-02-16 13:22 ` Jan D.
1 sibling, 0 replies; 5+ messages in thread
From: Henrik Enberg @ 2005-02-16 2:00 UTC (permalink / raw)
Cc: Jan D., emacs-devel
Sun Yijiang <sunyijiang@gmail.com> writes:
> Yes, I can change the default icon when I create a new frame:
> (make-frame '((name . "testf") (icon-type . "/path/test.png")))
>
> But I cannot change a frame's icon by modifying its icon-type parameter:
> (set-frame-parameter my-frame 'icon-type "/path/test2.png")
> Nothing happens after this under GNOME or KDE
>
> That's what I mean by "dynamic".
Doing:
(set-frame-parameter (selected-frame) 'icon-type "~/foo.png")
Works for me in the openbox window manager as well as in widgets from
the gnome libwnck[1] library.
[1] Part of metacity, the gnome window manager.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Feature request - dynamic icon pixmap
2005-02-16 1:37 ` Sun Yijiang
2005-02-16 2:00 ` Henrik Enberg
@ 2005-02-16 13:22 ` Jan D.
1 sibling, 0 replies; 5+ messages in thread
From: Jan D. @ 2005-02-16 13:22 UTC (permalink / raw)
Cc: emacs-devel
Sun Yijiang wrote:
>Yes, I can change the default icon when I create a new frame:
>(make-frame '((name . "testf") (icon-type . "/path/test.png")))
>
>But I cannot change a frame's icon by modifying its icon-type parameter:
>(set-frame-parameter my-frame 'icon-type "/path/test2.png")
>Nothing happens after this under GNOME or KDE
>
>That's what I mean by "dynamic"
>
Are you sure you've given the correct image file name? This works for
me with all window managers I've tried, including KDE 3.3 and Gnome 2.6
and 2.8.
Jan D.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-02-16 13:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-15 6:12 Feature request - dynamic icon pixmap Sun Yijiang
2005-02-15 16:14 ` Jan D.
2005-02-16 1:37 ` Sun Yijiang
2005-02-16 2:00 ` Henrik Enberg
2005-02-16 13:22 ` Jan D.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.