GNOME Bugzilla – Bug 82348
GtkMessageDialog Window Icon
Last modified: 2011-02-04 16:11:52 UTC
Package: gtk+ Severity: enhancement Version: 2.0 Synopsis: GtkMessageDialog Window Icon Bugzilla-Product: gtk+ Bugzilla-Component: gtk Description: For some future version, I think it'd be nice if the window icon were set == the dialog type icon. Here's a patch to gtkmessagedialog.c to do this: --- gtk/gtkmessagedialog.c Mon Jan 28 12:52:46 2002 +++ gtk/gtkmessagedialog.c Mon May 20 08:25:25 2002 @@ -188,6 +188,7 @@ { const gchar *stock_id = NULL; GtkStockItem item; + GdkPixbuf *pixbuf; switch (type) { @@ -221,6 +222,8 @@ GTK_ICON_SIZE_DIALOG); gtk_window_set_title (GTK_WINDOW (dialog), item.label); + pixbuf = gtk_widget_render_icon (dialog, stock_id, GTK_ICON_SIZE_DIALOG, NULL); + gtk_window_set_icon (GTK_WINDOW (dialog), pixbuf); } else g_warning ("Stock dialog ID doesn't exist?"); ------- Bug moved to this database by unknown@bugzilla.gnome.org 2002-05-20 09:32 ------- Reassigning to the default owner of the component, gtk-bugs@gtk.org.
Is it more useful to have this then to have it match the icon of the application?
*** This bug has been marked as a duplicate of 74310 ***