GNOME Bugzilla – Bug 355986
Win-Gimp: Alignment tool button icons missing
Last modified: 2008-01-15 14:08:36 UTC
Please describe the problem: In the Windows version of Gimp the icons of the alignment tool buttons are missing. In the Linux version (tested with v2.3.10 - own build under Ubuntu 6.06) everything is fine. Screenshots: Windows: http://www.cross-soft.de/misc/Alignment1.png Linux: http://www.cross-soft.de/misc/Alignment2.png Steps to reproduce: Right after starting the program - select the alignment tool and see yourself Actual results: Expected results: Does this happen every time? yes Other information: Tested with Gimp 2.3.11-devel / GTK+ 2.8.18 under Windows XP Professional SP2 German
The buttons must not be created using gtk_button_new_from_stock(). The stock icon needs to be added explicitely. Whether stock buttons have icons or not is controlled by the theme and defaults to off on the Win32 platform. Bill, can you fix this, please.
No. I would be happy to, but I have no idea what "add explicitly" means. If you can point me to an explanation, I'll try to figure it out.
Create a GtkImage with the icon and add it to the button. That's what adding it explicitely means.
The levels tool used to have the same problem in a previous version, IIRC it has been corrected in gimp_levels_tool_color_picker_new() in gimplevelstool.c. Unless it's still borken there, this could be used as an example.
2006-09-18 Sven Neumann <sven@gimp.org> * app/tools/gimpaligntool.c: rewrote the UI without tables and separators (eek). Also fixes bug #355986.