gaim/gaim

d2f1a4872f05
Parents bb974c2185ae
Children 02b800747b63
"This patch just fixes up some stuff in the choice request stuff..
Basically, if there's more than 5 items which makes it display as an
option/dropdown menu, the menu wasn't being shown and the default was
never getting set. The reason it's so bulky it's to avoid the option
menu growing when the menu is displayed." --Gary Kramlich
--- a/ChangeLog Wed Dec 01 23:26:07 2004 -0500
+++ b/ChangeLog Thu Dec 02 07:57:40 2004 -0500
@@ -128,6 +128,7 @@
* All users are shown when joining a Yahoo! conference (Bleeter Yaluser)
* You now leave all Yahoo! conferences when you log out of Yahoo!
* Buddy Icon updating bug fixed (Felipe Contreras)
+ * Fix a bug in the request api (Gary Kramlich)
version 0.81 (08/05/2004):
New Features:
--- a/src/gtkrequest.c Wed Dec 01 23:26:07 2004 -0500
+++ b/src/gtkrequest.c Thu Dec 02 07:57:40 2004 -0500
@@ -870,17 +870,21 @@
menu = gtk_menu_new();
- gtk_option_menu_set_menu(GTK_OPTION_MENU(widget), menu);
-
for (l = labels; l != NULL; l = l->next)
{
const char *text = l->data;
item = gtk_menu_item_new_with_label(text);
+ gtk_widget_show(item);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
}
+ gtk_widget_show(menu);
+ gtk_option_menu_set_menu(GTK_OPTION_MENU(widget), menu);
+ gtk_option_menu_set_history(GTK_OPTION_MENU(widget),
+ gaim_request_field_choice_get_default_value(field));
+
g_signal_connect(G_OBJECT(widget), "changed",
G_CALLBACK(field_choice_menu_cb), field);
}