Mercurial > pidgin.yaz
comparison src/gtkutils.c @ 5688:e43e1b8dca8b
[gaim-migrate @ 6109]
Updating the protocol type now updates the fields in the modify account
dialog. Also, fixed a bug that caused an infinite loop.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 03 Jun 2003 05:33:46 +0000 |
parents | dae79aefac8d |
children | 1d140b31d4b3 |
comparison
equal
deleted
inserted
replaced
5687:ae626f0b68ef | 5688:e43e1b8dca8b |
---|---|
569 g_object_set_data(G_OBJECT(optmenu), "user_data", user_data); | 569 g_object_set_data(G_OBJECT(optmenu), "user_data", user_data); |
570 | 570 |
571 menu = gtk_menu_new(); | 571 menu = gtk_menu_new(); |
572 gtk_widget_show(menu); | 572 gtk_widget_show(menu); |
573 | 573 |
574 g_signal_connect(G_OBJECT(optmenu), "changed", | |
575 G_CALLBACK(__protocol_menu_cb), cb); | |
576 | |
577 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); | 574 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); |
578 | 575 |
579 for (p = gaim_plugins_get_protocols(), i = 0; | 576 for (p = gaim_plugins_get_protocols(), i = 0; |
580 p != NULL; | 577 p != NULL; |
581 p = p->next, i++) { | 578 p = p->next, i++) { |
637 gtk_option_menu_set_menu(GTK_OPTION_MENU(optmenu), menu); | 634 gtk_option_menu_set_menu(GTK_OPTION_MENU(optmenu), menu); |
638 | 635 |
639 if (selected_index != -1) | 636 if (selected_index != -1) |
640 gtk_option_menu_set_history(GTK_OPTION_MENU(optmenu), selected_index); | 637 gtk_option_menu_set_history(GTK_OPTION_MENU(optmenu), selected_index); |
641 | 638 |
639 g_signal_connect(G_OBJECT(optmenu), "changed", | |
640 G_CALLBACK(__protocol_menu_cb), cb); | |
641 | |
642 g_object_unref(sg); | 642 g_object_unref(sg); |
643 | 643 |
644 return optmenu; | 644 return optmenu; |
645 } | 645 } |