window icon resolution
When I call gdk_pixbuf_new_from_file() to set a window icon, the resulting image in the Gnome Shell ALT+TAB switcher is fuzzy and clearly low-resolution. The window icon is a 128x128 pixel 24-bit PNG file. When I have the file displayed in another viewer (eog) and ALT+TAB, the Gnome Shell image is smaller than the full image in eog, but clearly fuzzier and lower resolution. Other applications such as Pidgin, Firefox, or Geany display clear, high-resolution icons. What am I doing wrong that other applications are doing right? I checked the Geany source and saw it had inlined the GdkPixbuf image and loaded it that way. Why would that make a difference? Thanks, Michael ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: window icon resolution
Hi. When I call gdk_pixbuf_new_from_file() to set a window icon, the resulting image in the Gnome Shell ALT+TAB switcher is fuzzy and clearly low-resolution. The window icon is a 128x128 pixel 24-bit PNG file. When I have the file displayed in another viewer (eog) and ALT+TAB, the Gnome Shell image is smaller than the full image in eog, but clearly fuzzier and lower resolution. Other applications such as Pidgin, Firefox, or Geany display clear, high-resolution icons. What am I doing wrong that other applications are doing right? I checked the Geany source and saw it had inlined the GdkPixbuf image and loaded it that way. Why would that make a difference? Not an expert, but my guess would be that gnome-shell loads images on it's own based on what is defined in your .desktop file when this file is available. Do you install this file for your app? Cheers, Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: window icon resolution
Tadej Borovšak on 02/08/2012 11:48 AM wrote: Not an expert, but my guess would be that gnome-shell loads images on it's own based on what is defined in your .desktop file when this file is available. Do you install this file for your app? My .desktop file references the same file (and same path) that I'm loading within the app. Based on your idea, I noticed other apps only reference the basename of their icon and place the file in /usr/share/icons/hicolor/foo/basename.png. I tried this same behavior and what do you know... Gnome Shell shows my hi-res window icon. Is this behavior a possible bug (or enhancement) of Gnome Shell? Not that I'm real broke up about it, but it was annoying. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: window icon resolution
Michael Cronenworth wrote: Based on your idea, I noticed other apps only reference the basename of their icon and place the file in /usr/share/icons/hicolor/foo/basename.png. I tried this same behavior and what do you know... Gnome Shell shows my hi-res window icon. Even though this method works, it only works when you start the app directly from the .desktop file. If I execute the app from a terminal the Gnome Shell ALT+TAB icon is the old, fuzzy resolution. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list