diff pidgin/gtknotify.c @ 15435:9c0cf4db1f4d

Dialog icon changes
author Sean Egan <seanegan@gmail.com>
date Sat, 27 Jan 2007 11:11:26 +0000
parents 29e443e0613f
children d75099d2567e
line wrap: on
line diff
--- a/pidgin/gtknotify.c	Sat Jan 27 10:15:07 2007 +0000
+++ b/pidgin/gtknotify.c	Sat Jan 27 11:11:26 2007 +0000
@@ -213,15 +213,15 @@
 	switch (type)
 	{
 		case GAIM_NOTIFY_MSG_ERROR:
-			icon_name = GAIM_STOCK_DIALOG_ERROR;
+			icon_name = PIDGIN_STOCK_DIALOG_ERROR;
 			break;
 
 		case GAIM_NOTIFY_MSG_WARNING:
-			icon_name = GAIM_STOCK_DIALOG_WARNING;
+			icon_name = PIDGIN_STOCK_DIALOG_WARNING;
 			break;
 
 		case GAIM_NOTIFY_MSG_INFO:
-			icon_name = GAIM_STOCK_DIALOG_INFO;
+			icon_name = PIDGIN_STOCK_DIALOG_INFO;
 			break;
 
 		default:
@@ -231,7 +231,7 @@
 
 	if (icon_name != NULL)
 	{
-		img = gtk_image_new_from_stock(icon_name, GTK_ICON_SIZE_DIALOG);
+		img = gtk_image_new_from_stock(icon_name, gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_HUGE));
 		gtk_misc_set_alignment(GTK_MISC(img), 0, 0);
 	}
 
@@ -506,8 +506,8 @@
 	}
 
 	if (!GTK_WIDGET_VISIBLE(dialog)) {
-		GdkPixbuf *pixbuf = gtk_widget_render_icon(dialog, GAIM_STOCK_ICON_ONLINE_MSG,
-							   GTK_ICON_SIZE_BUTTON, NULL);
+		GdkPixbuf *pixbuf = gtk_widget_render_icon(dialog, PIDGIN_STOCK_DIALOG_MAIL,
+							   gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL), NULL);
 		char *label_text = g_strdup_printf(ngettext("<b>You have %d new e-mail.</b>",
 							    "<b>You have %d new e-mails.</b>",
 							    mail_dialog->total_count), mail_dialog->total_count);