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 82348 - GtkMessageDialog Window Icon
GtkMessageDialog Window Icon
Status: RESOLVED DUPLICATE of bug 74310
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other other
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-05-20 13:32 UTC by James Cape
Modified: 2011-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description James Cape 2002-05-20 13:32:13 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.

Comment 1 Owen Taylor 2002-05-20 15:29:32 UTC
Is it more useful to have this then to have it match the
icon of the application?
Comment 2 Matthias Clasen 2002-07-15 08:38:50 UTC

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