Mercurial > pidgin.yaz
comparison src/away.c @ 6727:34f87e4078fc
[gaim-migrate @ 7254]
Daniel Westermann-Clark (potpieman) noticed that:
" In 0.67, removing an away message does not prompt a
save of status.xml. This means that, unless a user
adds a different away message, away messages appear to
come back. This patch calls gaim_status_sync to
correctly save the away messages on removal."
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 03 Sep 2003 11:30:32 +0000 |
parents | 314111e7b601 |
children | 083d1e4a9c78 |
comparison
equal
deleted
inserted
replaced
6726:3c234b619685 | 6727:34f87e4078fc |
---|---|
23 #include "conversation.h" | 23 #include "conversation.h" |
24 #include "debug.h" | 24 #include "debug.h" |
25 #include "plugin.h" | 25 #include "plugin.h" |
26 #include "prefs.h" | 26 #include "prefs.h" |
27 #include "prpl.h" | 27 #include "prpl.h" |
28 #include "status.h" | |
28 #include "util.h" | 29 #include "util.h" |
29 | 30 |
30 /* XXX CORE/UI: Until we can get rid of the message queue stuff... */ | 31 /* XXX CORE/UI: Until we can get rid of the message queue stuff... */ |
31 #include "gaim.h" | 32 #include "gaim.h" |
32 #include "gtkinternal.h" | 33 #include "gtkinternal.h" |
296 default_away = away_messages->data; | 297 default_away = away_messages->data; |
297 | 298 |
298 away_messages = g_slist_remove(away_messages, a); | 299 away_messages = g_slist_remove(away_messages, a); |
299 g_free(a); | 300 g_free(a); |
300 do_away_menu(); | 301 do_away_menu(); |
302 gaim_status_sync(); | |
301 } | 303 } |
302 | 304 |
303 static void set_gc_away(GObject *obj, GaimConnection *gc) | 305 static void set_gc_away(GObject *obj, GaimConnection *gc) |
304 { | 306 { |
305 struct away_message *awy = g_object_get_data(obj, "away_message"); | 307 struct away_message *awy = g_object_get_data(obj, "away_message"); |