# HG changeset patch # User Eric Warmenhoven # Date 1007581206 0 # Node ID 6eb5bf5089f0a65bd847afe98b17868ad9138d15 # Parent cbe6a1e63a72fb3f4bf2827401f936f4b8ddd0ca [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 diff -r cbe6a1e63a72 -r 6eb5bf5089f0 src/dialogs.c --- 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));