changeset 16690:7fad94837f9e

Make the icon show up when you change the global buddy icon pref, even if all the accounts have per-account icons.
author Kevin Stange <kevin@simguy.net>
date Mon, 30 Apr 2007 00:36:30 +0000
parents bb902111bd9c
children 4a020cf5942d
files pidgin/gtkstatusbox.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkstatusbox.c	Sun Apr 29 23:50:23 2007 +0000
+++ b/pidgin/gtkstatusbox.c	Mon Apr 30 00:36:30 2007 +0000
@@ -1452,6 +1452,17 @@
 				}
 			}
 		}
+
+		/* Even if no accounts were processed, load the icon that was set. */
+		if (filename != NULL)
+		{
+			gchar *contents;
+			gsize size;
+			if (g_file_get_contents(filename, &contents, &size, NULL))
+			{
+				img = purple_imgstore_add(contents, size, filename);
+			}
+		}
 	}
 
 	pidgin_status_box_set_buddy_icon(box, img);