diff src/applet.c @ 1591:5c74d8b6cb57

[gaim-migrate @ 1601] applet fixes for when it's "removed from panel" committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 16 Mar 2001 10:59:57 +0000
parents 6650776468b3
children 09017c023fcd
line wrap: on
line diff
--- a/src/applet.c	Fri Mar 16 09:37:44 2001 +0000
+++ b/src/applet.c	Fri Mar 16 10:59:57 2001 +0000
@@ -201,6 +201,9 @@
 	struct away_message *a;
 	char  *awayname;
 
+	if (!applet)
+		return;
+
 	applet_widget_unregister_callback(APPLET_WIDGET(applet), "away/new");
 
 	while (awy) {
@@ -398,6 +401,8 @@
 }
 
 void applet_set_tooltips(char *msg) {
+	if (!applet)
+		return;
 	applet_widget_set_tooltip(APPLET_WIDGET(applet), msg);
 }