comparison src/gtkroomlist.c @ 9067:1f2bbb359adb

[gaim-migrate @ 9843] This fixes a bug where the account was always null until you actually clicked on the account selector, instead of being the first selected account. The only time this wouldn't happen was when the roomlist was invoked with /list. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Wed, 26 May 2004 01:13:10 +0000
parents b875f5d57b81
children 31be05742be9
comparison
equal deleted inserted replaced
9066:148198ce58bb 9067:1f2bbb359adb
354 gtk_widget_show(label); 354 gtk_widget_show(label);
355 355
356 dialog->account_widget = gaim_gtk_account_option_menu_new(dialog->account, FALSE, 356 dialog->account_widget = gaim_gtk_account_option_menu_new(dialog->account, FALSE,
357 G_CALLBACK(dialog_select_account_cb), account_filter_func, dialog); 357 G_CALLBACK(dialog_select_account_cb), account_filter_func, dialog);
358 358
359 if (!dialog->account) /* this is normally null, and we normally don't care what the first selected item is */
360 dialog->account = gaim_gtk_account_option_menu_get_selected(dialog->account_widget);
361
359 gtk_box_pack_start(GTK_BOX(account_hbox), dialog->account_widget, TRUE, TRUE, 0); 362 gtk_box_pack_start(GTK_BOX(account_hbox), dialog->account_widget, TRUE, TRUE, 0);
360 gtk_label_set_mnemonic_widget(GTK_LABEL(label), GTK_WIDGET(dialog->account_widget)); 363 gtk_label_set_mnemonic_widget(GTK_LABEL(label), GTK_WIDGET(dialog->account_widget));
361 gtk_widget_show(dialog->account_widget); 364 gtk_widget_show(dialog->account_widget);
362 365
363 /* scrolled window */ 366 /* scrolled window */