Summary: | Implement Icon for Gtk | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Christian Dywan <christian> | ||||||||
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Major | Keywords: | Gtk | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Other | ||||||||||
OS: | Linux | ||||||||||
Attachments: |
|
Description
Christian Dywan
2007-12-10 03:52:37 PST
Created attachment 17818 [details]
Implement Icon for Gtk
This implementation creates a GdkPixbuf for the icon and probes the icon theme for an appropriate icon according to the icon naming specification or to gnome's icon names respectively.
Comment on attachment 17818 [details]
Implement Icon for Gtk
I didn't check the icon name code yet, but the drawing should almost certainly be done with cairo and gdk_cairo_set_source_pixbuf() rather than gdk_draw_pixbuf() so that the drawing operation will integrate with the rest of the graphics backend.
A ChangeLog, particularly to explain lookupIconName() (which was non-obvious to me) would be helpful.
Thanks!
Created attachment 17843 [details]
Use cairo, with Changelog and explanation
What site or test case can this patch be checked against? Created attachment 17962 [details]
Updated patch
You can test the code by navigating to any website containing a "file" control. As soon as a file is chosen, an icon is displayed near the filename.
Comment on attachment 17962 [details]
Updated patch
r=me
Will add the save/restore, m_icon initialization and style cleanups before landing.
|