| 429 get_config_frame(PurplePlugin *plugin) |
429 get_config_frame(PurplePlugin *plugin) |
| 430 { |
430 { |
| 431 GtkWidget *ret = NULL, *frame = NULL; |
431 GtkWidget *ret = NULL, *frame = NULL; |
| 432 GtkWidget *vbox = NULL, *toggle = NULL; |
432 GtkWidget *vbox = NULL, *toggle = NULL; |
| 433 |
433 |
| 434 ret = gtk_box_new(GTK_ORIENTATION_VERTICAL, 18); |
434 ret = gtk_vbox_new(FALSE, 18); |
| 435 gtk_container_set_border_width(GTK_CONTAINER (ret), 12); |
435 gtk_container_set_border_width(GTK_CONTAINER (ret), 12); |
| 436 |
436 |
| 437 /* Alerts */ |
437 /* Alerts */ |
| 438 |
438 |
| 439 frame = pidgin_make_frame(ret, _("Chatroom alerts")); |
439 frame = pidgin_make_frame(ret, _("Chatroom alerts")); |
| 440 vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); |
440 vbox = gtk_vbox_new(FALSE, 5); |
| 441 gtk_container_add(GTK_CONTAINER(frame), vbox); |
441 gtk_container_add(GTK_CONTAINER(frame), vbox); |
| 442 |
442 |
| 443 toggle = gtk_check_button_new_with_mnemonic(_("Chatroom message alerts _only where someone says your username")); |
443 toggle = gtk_check_button_new_with_mnemonic(_("Chatroom message alerts _only where someone says your username")); |
| 444 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); |
444 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); |
| 445 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), |
445 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), |
| 448 G_CALLBACK(alert_config_cb), NULL); |
448 G_CALLBACK(alert_config_cb), NULL); |
| 449 |
449 |
| 450 /* Launcher integration */ |
450 /* Launcher integration */ |
| 451 |
451 |
| 452 frame = pidgin_make_frame(ret, _("Launcher Icon")); |
452 frame = pidgin_make_frame(ret, _("Launcher Icon")); |
| 453 vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); |
453 vbox = gtk_vbox_new(FALSE, 5); |
| 454 gtk_container_add(GTK_CONTAINER(frame), vbox); |
454 gtk_container_add(GTK_CONTAINER(frame), vbox); |
| 455 |
455 |
| 456 toggle = gtk_radio_button_new_with_mnemonic(NULL, _("_Disable launcher integration")); |
456 toggle = gtk_radio_button_new_with_mnemonic(NULL, _("_Disable launcher integration")); |
| 457 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); |
457 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); |
| 458 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), |
458 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), |
| 477 G_CALLBACK(launcher_config_cb), GUINT_TO_POINTER(LAUNCHER_COUNT_SOURCES)); |
477 G_CALLBACK(launcher_config_cb), GUINT_TO_POINTER(LAUNCHER_COUNT_SOURCES)); |
| 478 |
478 |
| 479 /* Messaging menu integration */ |
479 /* Messaging menu integration */ |
| 480 |
480 |
| 481 frame = pidgin_make_frame(ret, _("Messaging Menu")); |
481 frame = pidgin_make_frame(ret, _("Messaging Menu")); |
| 482 vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); |
482 vbox = gtk_vbox_new(FALSE, 5); |
| 483 gtk_container_add(GTK_CONTAINER(frame), vbox); |
483 gtk_container_add(GTK_CONTAINER(frame), vbox); |
| 484 |
484 |
| 485 toggle = gtk_radio_button_new_with_mnemonic(NULL, |
485 toggle = gtk_radio_button_new_with_mnemonic(NULL, |
| 486 _("Show number of _unread messages for conversations in messaging menu")); |
486 _("Show number of _unread messages for conversations in messaging menu")); |
| 487 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); |
487 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); |