diff src/gtkutils.c @ 8155:77d1252b3803

[gaim-migrate @ 8867] Patch by Etan Reisner. The tabs now stay green when they are supposed to, and the offline accounts in account drop-down lists are now greyed, like in the accounts window. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 21 Jan 2004 03:22:52 +0000
parents 8633dc570442
children 83830cb8467e
line wrap: on
line diff
--- a/src/gtkutils.c	Tue Jan 20 20:03:24 2004 +0000
+++ b/src/gtkutils.c	Wed Jan 21 03:22:52 2004 +0000
@@ -823,14 +823,18 @@
 			g_snprintf(buf, sizeof(buf), "%s.png", proto_name);
 
 			filename = g_build_filename(DATADIR, "pixmaps", "gaim", "status",
-										"default", buf, NULL);
+			                            "default", buf, NULL);
 			pixbuf = gdk_pixbuf_new_from_file(filename, NULL);
 			g_free(filename);
 
 			if (pixbuf != NULL) {
 				/* Scale and insert the image */
 				scale = gdk_pixbuf_scale_simple(pixbuf, 16, 16,
-												GDK_INTERP_BILINEAR);
+				                                GDK_INTERP_BILINEAR);
+
+				if (!gaim_account_is_connected(account))
+					gdk_pixbuf_saturate_and_pixelate(scale, scale, 0.0, FALSE);
+
 				image = gtk_image_new_from_pixbuf(scale);
 
 				g_object_unref(G_OBJECT(pixbuf));