changeset 2851:6eb5bf5089f0

[gaim-migrate @ 2864] runnin' around robbin' banks all wacked out on scooby snacks! i actually don't like that song except for that one line. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 05 Dec 2001 19:40:06 +0000
parents cbe6a1e63a72
children 7a8fd0d5b9ed
files src/dialogs.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Wed Dec 05 10:59:52 2001 +0000
+++ b/src/dialogs.c	Wed Dec 05 19:40:06 2001 +0000
@@ -42,6 +42,9 @@
 #include "gaim.h"
 #include "gtkimhtml.h"
 #include "prpl.h"
+#ifdef USE_APPLET
+#include "applet.h"
+#endif
 
 #include "pixmaps/gnome_preferences.xpm"
 #include "pixmaps/cancel.xpm"
@@ -2912,8 +2915,14 @@
 
 	if (!ca->mess)
 		am = g_new0(struct away_message, 1);
-	else
+	else {
+#ifdef USE_APPLET
+		char *awayname = g_strdup_printf("away/%s", ca->mess->name);
+		applet_widget_unregister_callback(APPLET_WIDGET(applet), awayname);
+		g_free(awayname);
+#endif
 		am = ca->mess;
+	}
 
 	g_snprintf(am->name, sizeof(am->name), "%s", gtk_entry_get_text(GTK_ENTRY(ca->entry)));
 	text_len = gtk_text_get_length(GTK_TEXT(ca->text));