changeset 2567:f0e8cf09d8a3

[gaim-migrate @ 2580] Ho Hum committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Sun, 21 Oct 2001 19:38:13 +0000
parents 6d00c0f8bfc5
children c2abbf94b93d
files ChangeLog src/applet.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Oct 21 19:01:03 2001 +0000
+++ b/ChangeLog	Sun Oct 21 19:38:13 2001 +0000
@@ -12,6 +12,7 @@
 	  selects "on away" or "on idle", if the user is away
 	  or idle.
 	* Add Opera to the available browsers (thanks Brian Enigma)
+	* The applet no longer crashes when you remove it while signed on
 
 version 0.46 (10/18/2001):
 	* New applet icons (courtesy David Raeman)
--- a/src/applet.c	Sun Oct 21 19:01:03 2001 +0000
+++ b/src/applet.c	Sun Oct 21 19:38:13 2001 +0000
@@ -60,6 +60,9 @@
 	double affine[6];
 	int r,g,b,i;
 
+	if (!applet)
+		return NULL;
+
 	cache = gdk_pixmap_new(applet->window, sizehint, sizehint,
 			gtk_widget_get_visual(applet)->depth); 
 	gc = gdk_gc_new(cache);