changeset 12693:07d6cc1b5a98

[gaim-migrate @ 15036] Don't show Unset in the list of status types. This has been bugging me for a while. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 03 Jan 2006 09:05:14 +0000
parents 4da7062a06c2
children ebed1bbedb04
files src/gtksavedstatuses.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtksavedstatuses.c	Tue Jan 03 06:33:00 2006 +0000
+++ b/src/gtksavedstatuses.c	Tue Jan 03 09:05:14 2006 +0000
@@ -783,14 +783,14 @@
 	dropdown = gtk_option_menu_new();
 	menu = gtk_menu_new();
 
-	for (i = 0; i < GAIM_STATUS_NUM_PRIMITIVES; i++)
+	for (i = GAIM_STATUS_UNSET + 1; i < GAIM_STATUS_NUM_PRIMITIVES; i++)
 	{
 		item = gtk_menu_item_new_with_label(gaim_primitive_get_name_from_type(i));
 		gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
 		gtk_widget_show(item);
 	}
 
-	gtk_menu_set_active(GTK_MENU(menu), type);
+	gtk_menu_set_active(GTK_MENU(menu), type - (GAIM_STATUS_UNSET + 1));
 	gtk_option_menu_set_menu(GTK_OPTION_MENU(dropdown), menu);
 	gtk_widget_show(menu);