| 406 gtk_container_add(GTK_CONTAINER(frame), table); |
406 gtk_container_add(GTK_CONTAINER(frame), table); |
| 407 gtk_table_set_col_spacings(GTK_TABLE(table), 12); |
407 gtk_table_set_col_spacings(GTK_TABLE(table), 12); |
| 408 gtk_widget_show(table); |
408 gtk_widget_show(table); |
| 409 |
409 |
| 410 dialog->signon = |
410 dialog->signon = |
| 411 gtk_check_button_new_with_label(_("Sign on")); |
411 gtk_check_button_new_with_mnemonic(_("_Sign on")); |
| 412 dialog->signoff = |
412 dialog->signoff = |
| 413 gtk_check_button_new_with_label(_("Sign off")); |
413 gtk_check_button_new_with_mnemonic(_("Sign _off")); |
| 414 dialog->away = |
414 dialog->away = |
| 415 gtk_check_button_new_with_label(_("Away")); |
415 gtk_check_button_new_with_mnemonic(_("A_way")); |
| 416 dialog->away_return = |
416 dialog->away_return = |
| 417 gtk_check_button_new_with_label(_("Return from away")); |
417 gtk_check_button_new_with_mnemonic(_("Re_turn from away")); |
| 418 dialog->idle = |
418 dialog->idle = |
| 419 gtk_check_button_new_with_label(_("Idle")); |
419 gtk_check_button_new_with_mnemonic(_("_Idle")); |
| 420 dialog->idle_return = |
420 dialog->idle_return = |
| 421 gtk_check_button_new_with_label(_("Return from idle")); |
421 gtk_check_button_new_with_mnemonic(_("Retur_n from idle")); |
| 422 dialog->typing = |
422 dialog->typing = |
| 423 gtk_check_button_new_with_label(_("Buddy starts typing")); |
423 gtk_check_button_new_with_mnemonic(_("Buddy starts _typing")); |
| 424 dialog->stop_typing = |
424 dialog->stop_typing = |
| 425 gtk_check_button_new_with_label(_("Buddy stops typing")); |
425 gtk_check_button_new_with_mnemonic(_("Buddy stops t_yping")); |
| 426 |
426 |
| 427 gtk_table_attach(GTK_TABLE(table), dialog->signon, 0, 1, 0, 1, |
427 gtk_table_attach(GTK_TABLE(table), dialog->signon, 0, 1, 0, 1, |
| 428 GTK_FILL, 0, 0, 0); |
428 GTK_FILL, 0, 0, 0); |
| 429 gtk_table_attach(GTK_TABLE(table), dialog->signoff, 1, 2, 0, 1, |
429 gtk_table_attach(GTK_TABLE(table), dialog->signoff, 1, 2, 0, 1, |
| 430 GTK_FILL, 0, 0, 0); |
430 GTK_FILL, 0, 0, 0); |
| 456 table = gtk_table_new(3, 5, FALSE); |
456 table = gtk_table_new(3, 5, FALSE); |
| 457 gtk_container_add(GTK_CONTAINER(frame), table); |
457 gtk_container_add(GTK_CONTAINER(frame), table); |
| 458 gtk_table_set_col_spacings(GTK_TABLE(table), 12); |
458 gtk_table_set_col_spacings(GTK_TABLE(table), 12); |
| 459 gtk_widget_show(table); |
459 gtk_widget_show(table); |
| 460 |
460 |
| 461 dialog->open_win = gtk_check_button_new_with_label(_("Open an IM window")); |
461 dialog->open_win = gtk_check_button_new_with_mnemonic(_("Op_en an IM window")); |
| 462 dialog->popup = gtk_check_button_new_with_label(_("Popup notification")); |
462 dialog->popup = gtk_check_button_new_with_mnemonic(_("_Popup notification")); |
| 463 dialog->send_msg = gtk_check_button_new_with_label(_("Send a message")); |
463 dialog->send_msg = gtk_check_button_new_with_mnemonic(_("Send a _message")); |
| 464 dialog->exec_cmd = gtk_check_button_new_with_label(_("Execute a command")); |
464 dialog->exec_cmd = gtk_check_button_new_with_mnemonic(_("E_xecute a command")); |
| 465 dialog->play_sound = gtk_check_button_new_with_label(_("Play a sound")); |
465 dialog->play_sound = gtk_check_button_new_with_mnemonic(_("P_lay a sound")); |
| 466 |
466 |
| 467 dialog->send_msg_entry = gtk_entry_new(); |
467 dialog->send_msg_entry = gtk_entry_new(); |
| 468 dialog->exec_cmd_entry = gtk_entry_new(); |
468 dialog->exec_cmd_entry = gtk_entry_new(); |
| 469 dialog->exec_cmd_browse = gtk_button_new_with_label(_("Browse")); |
469 dialog->exec_cmd_browse = gtk_button_new_with_mnemonic(_("B_rowse...")); |
| 470 dialog->play_sound_entry = gtk_entry_new(); |
470 dialog->play_sound_entry = gtk_entry_new(); |
| 471 dialog->play_sound_browse = gtk_button_new_with_label(_("Browse")); |
471 dialog->play_sound_browse = gtk_button_new_with_mnemonic(_("Bro_wse...")); |
| 472 dialog->play_sound_test = gtk_button_new_with_label(_("Test")); |
472 dialog->play_sound_test = gtk_button_new_with_mnemonic(_("Pre_view")); |
| 473 |
473 |
| 474 gtk_widget_set_sensitive(dialog->send_msg_entry, FALSE); |
474 gtk_widget_set_sensitive(dialog->send_msg_entry, FALSE); |
| 475 gtk_widget_set_sensitive(dialog->exec_cmd_entry, FALSE); |
475 gtk_widget_set_sensitive(dialog->exec_cmd_entry, FALSE); |
| 476 gtk_widget_set_sensitive(dialog->exec_cmd_browse, FALSE); |
476 gtk_widget_set_sensitive(dialog->exec_cmd_browse, FALSE); |
| 477 gtk_widget_set_sensitive(dialog->play_sound_entry, FALSE); |
477 gtk_widget_set_sensitive(dialog->play_sound_entry, FALSE); |
| 550 g_signal_connect(G_OBJECT(dialog->play_sound_entry), "activate", |
550 g_signal_connect(G_OBJECT(dialog->play_sound_entry), "activate", |
| 551 G_CALLBACK(save_pounce_cb), dialog); |
551 G_CALLBACK(save_pounce_cb), dialog); |
| 552 |
552 |
| 553 /* Now the last part, where we have the Save checkbox */ |
553 /* Now the last part, where we have the Save checkbox */ |
| 554 dialog->save_pounce = gtk_check_button_new_with_mnemonic( |
554 dialog->save_pounce = gtk_check_button_new_with_mnemonic( |
| 555 _("_Save this pounce after activation")); |
555 _("Sav_e this pounce after activation")); |
| 556 |
556 |
| 557 gtk_box_pack_start(GTK_BOX(vbox2), dialog->save_pounce, FALSE, FALSE, 0); |
557 gtk_box_pack_start(GTK_BOX(vbox2), dialog->save_pounce, FALSE, FALSE, 0); |
| 558 |
558 |
| 559 /* Separator... */ |
559 /* Separator... */ |
| 560 sep = gtk_hseparator_new(); |
560 sep = gtk_hseparator_new(); |