changeset 13193:3426bc61bb8b

[gaim-migrate @ 15556] half of sf patch #1414103, from Sadrul Habib Chowdhury "This patch opens the saved-status dialog with the `Use different statuses' expanded when it has substatuses." committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 08 Feb 2006 23:53:26 +0000
parents ad7aa4aa753b
children 7099a443131d
files src/gtksavedstatuses.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtksavedstatuses.c	Wed Feb 08 23:33:39 2006 +0000
+++ b/src/gtksavedstatuses.c	Wed Feb 08 23:53:26 2006 +0000
@@ -1181,6 +1181,10 @@
 	/* Populate list */
 	status_editor_populate_list(dialog, saved_status);
 
+	/* Expand the treeview if we have substatuses */
+	gtk_expander_set_expanded(GTK_EXPANDER(expander),
+		(saved_status != NULL) && gaim_savedstatus_has_substatuses(saved_status));
+
 	/* Button box */
 	bbox = gtk_hbutton_box_new();
 	gtk_box_set_spacing(GTK_BOX(bbox), GAIM_HIG_BOX_SPACE);