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 154561 - GtkAboutDialog - API bug: load logo pixbuf from icon theme
GtkAboutDialog - API bug: load logo pixbuf from icon theme
Status: RESOLVED DUPLICATE of bug 154488
Product: gtk+
Classification: Platform
Component: Widget: Other
2.5.x
Other All
: High enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-10-05 13:55 UTC by Luca Ferretti
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luca Ferretti 2004-10-05 13:55:41 UTC
This feature request come from a thread on GNOME desktop devel mailing list.

See http://lists.gnome.org/archives/desktop-devel-list/2004-October/msg00134.html

and http://lists.gnome.org/archives/desktop-devel-list/2004-October/msg00135.html


Actually you can set the logo image for the about dialog loading an image as
GdkPixbuf.

The request is provide in GtkAboutDialog API a function like 

void gtk_about_dialog_set_icon_name (GtkAboutDialog *about,
				     const char     *icon_name);

----------------------------


First of all note that we can distinguish GNOME/GTK+ applications in:
	* applications that provide a cool/custom logo (gedit, rhythmbox, sound-juicer)
to use ONLY in about dialog
	* applications that use a named icon as logo in about window (gpdf,
gnome-dictionary, all panel applets...)


So, when the application don't provide a custom pixmap to use as logo, but it
uses a named icon, is reasonable make the logo themeable too.

By now you can do something like

	gtk_window_set_default_icon_name ("named-icon");
	
	....
	
	icon_theme = gtk_icon_theme_get_default();
	pixbuf = gtk_icon_theme_load_icon (
		icon_theme,"named-icon", 48, 0, NULL);

	about = gtk_about_dialog_new ();
	gtk_about_dialog_set_logo (about, pixbuf);

	....

and use a named icon as logo, but if you change the icon theme while the about
dialog is open, the logo is not updated.

We are asking for a function to manage the named icon directly in GtkAboutDialog
API, as gtk_window_set_(default_)icon_name do for GtkWindows.
Comment 1 Matthias Clasen 2004-10-05 14:00:26 UTC

*** This bug has been marked as a duplicate of 154488 ***