https://bugzilla.novell.com/show_bug.cgi?id=638090
https://bugzilla.novell.com/show_bug.cgi?id=638090#c3
--- Comment #3 from Vincent Untz
diff -ru libgnomesu-1.0.0/src/gnomesu-auth-dialog.c libgnomesu-1.0.0-rpmcruz//src/gnomesu-auth-dialog.c --- libgnomesu-1.0.0/src/gnomesu-auth-dialog.c 2005-05-17 16:23:20.000000000 +0100 +++ libgnomesu-1.0.0-rpmcruz//src/gnomesu-auth-dialog.c 2010-08-23 04:43:16.208000252 +0100 @@ -24,7 +24,6 @@ #include
#include "gnomesu-auth-dialog.h" -#include "auth-icon.csource" #include "utils.h"
Does that mean we can remove all the stuff generating auth-icon.csource?
- if (!pixbuf) - pixbuf = gdk_pixbuf_new_from_inline (sizeof (auth_icon), auth_icon, FALSE, NULL); - else - g_object_ref (pixbuf); - gtk_image_set_from_pixbuf (GTK_IMAGE (dialog->_priv->icon), pixbuf); - g_object_unref (pixbuf); + GtkImage *image = GTK_IMAGE (dialog->_priv->icon); + if (pixbuf) { + g_object_ref (G_OBJECT (pixbuf)); + gtk_image_set_from_pixbuf (image, pixbuf); + } + else { + gtk_image_set_from_stock (image, GTK_STOCK_DIALOG_AUTHENTICATION, GTK_ICON_SIZE_DIALOG); + + pixbuf = gtk_widget_render_icon (GTK_WIDGET (dialog), GTK_STOCK_DIALOG_AUTHENTICATION, GTK_ICON_SIZE_DIALOG, NULL);
I'd probably use the "dialog-password" icon name, which makes it possible to skip gtk_widget_render_icon() and call gtk_window_set_icon_name() for this case.
+ } + + gtk_window_set_icon (GTK_WINDOW (dialog), pixbuf); + g_object_unref (G_OBJECT (pixbuf)); }
In the case of -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.