diff src/gtkstatusbox.c @ 13175:488619ad7ed5

[gaim-migrate @ 15538] If you're not using a saved status and you select "New..." in the gtkstatusbox then the new status dialog will be seeded with your current message and stuff. rlaager told me to do this. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 08 Feb 2006 05:36:13 +0000
parents a0cdde3b06cf
children 1841236cb091
line wrap: on
line diff
--- a/src/gtkstatusbox.c	Wed Feb 08 05:07:43 2006 +0000
+++ b/src/gtkstatusbox.c	Wed Feb 08 05:36:13 2006 +0000
@@ -1400,7 +1400,11 @@
 
 		if (type == GTK_GAIM_STATUS_BOX_TYPE_CUSTOM)
 		{
-			gaim_gtk_status_editor_show(NULL);
+			GaimSavedStatus *saved_status;
+			saved_status = gaim_savedstatus_get_current();
+			gaim_gtk_status_editor_show(FALSE,
+				gaim_savedstatus_is_transient(saved_status)
+					? saved_status : NULL);
 			status_menu_refresh_iter(status_box);
 			return;
 		}