After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 305086 - Make sure that all windows get a window icon
Make sure that all windows get a window icon
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: general
git master
Other Linux
: High normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks: 309342
 
 
Reported: 2005-05-22 12:59 UTC by Jaap A. Haitsma
Modified: 2005-07-27 10:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch fixing this (516 bytes, patch)
2005-05-22 12:59 UTC, Jaap A. Haitsma
none Details | Review
screenshot showing problem before the patch (38.96 KB, image/png)
2005-05-22 18:08 UTC, Jaap A. Haitsma
  Details
Better version (561 bytes, patch)
2005-07-03 13:45 UTC, Jaap A. Haitsma
none Details | Review

Description Jaap A. Haitsma 2005-05-22 12:59:13 UTC
Currently if you select for example Add in the tab Layout of the Keyboard
capplet you get a window without an icon.

Upcoming patch makes sure that all windows get an icon when the capplet_set_icon
function is used
Comment 1 Jaap A. Haitsma 2005-05-22 12:59:48 UTC
Created attachment 46744 [details] [review]
patch fixing this
Comment 2 Sebastien Bacher 2005-05-22 14:17:40 UTC
where do you have the window without an icon?
Comment 3 Jaap A. Haitsma 2005-05-22 17:04:20 UTC
Click for example on for  Add in the tab Layout of the Keyboard
capplet and you get a window without an icon.
Comment 4 Sebastien Bacher 2005-05-22 18:00:43 UTC
where do you want to get an icon? That's the same application as the keyboard
capplet for the window manager and the windows list applet so there is only one
entry which has an keyboard icon.
Can you make a screenshot of your issue?
Comment 5 Jaap A. Haitsma 2005-05-22 18:08:42 UTC
Created attachment 46756 [details]
screenshot showing problem before the patch

You see the window does not have a keyboard icon
Comment 6 Sebastien Bacher 2005-05-22 20:11:53 UTC
right, that's depending of the window manager theme.
Comment 7 Jaap A. Haitsma 2005-07-03 13:45:33 UTC
Created attachment 48587 [details] [review]
Better version

Old patch
* set the default icon

This patch
* set the icon of the window
* set the default icon

With the old patch the icon of the capplet will change if the programmer
decides to call gtk_window_set_default_icon after using capplet_set_icon.
That's probably confusing
Comment 8 Sebastien Bacher 2005-07-25 13:37:47 UTC
why setting a default instead of gtk_window_set_icon () with the appropriate
icon on every window? 
Comment 9 Jaap A. Haitsma 2005-07-25 17:28:25 UTC
My patch just adds a gtk_window_set_default_icon it keeps gtk_window_set_icon_name. 

The icon provided to gtk_window_set_default_icon is the icon which will be used
for any window created in the capplet on which the programmer does not call a
gtk_window_set_icon. Most programs just want one icon for all the windows. For
that gtk_window_set_default_icon is very handy. If you want to give specific
windows another icon you just call gtk_window_set_icon.

So in my opinion this patch is correct. Do you agree?
 
Comment 10 Sebastien Bacher 2005-07-27 10:00:18 UTC
I guess that's fine, I've pushed the change with  set_default before set_icon.
Any reason for to call set_icon before set_default_icon?

2005-07-27  Sebastien Bacher  <seb128@debian.org>

        * capplet-util.c: (capplet_set_icon): set a default icon for capplets,
        patch by Jaap A. Haitsma <jaap@haitsma.org> (Closes: #305086).

Comment 11 Jaap A. Haitsma 2005-07-27 10:06:43 UTC
Thanks!

The order of set_icon and set_default_icon does not matter in this case