| 671 { |
672 { |
| 672 GtkWidget *ret = NULL, *frame = NULL; |
673 GtkWidget *ret = NULL, *frame = NULL; |
| 673 GtkWidget *vbox = NULL, *hbox = NULL; |
674 GtkWidget *vbox = NULL, *hbox = NULL; |
| 674 GtkWidget *toggle = NULL, *entry = NULL, *ref; |
675 GtkWidget *toggle = NULL, *entry = NULL, *ref; |
| 675 |
676 |
| 676 ret = gtk_vbox_new(FALSE, 18); |
677 ret = gtk_box_new(GTK_ORIENTATION_VERTICAL, 18); |
| 677 gtk_container_set_border_width(GTK_CONTAINER (ret), 12); |
678 gtk_container_set_border_width(GTK_CONTAINER (ret), 12); |
| 678 |
679 |
| 679 /*---------- "Notify For" ----------*/ |
680 /*---------- "Notify For" ----------*/ |
| 680 frame = pidgin_make_frame(ret, _("Notify For")); |
681 frame = pidgin_make_frame(ret, _("Notify For")); |
| 681 vbox = gtk_vbox_new(FALSE, 5); |
682 vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); |
| 682 gtk_container_add(GTK_CONTAINER(frame), vbox); |
683 gtk_container_add(GTK_CONTAINER(frame), vbox); |
| 683 |
684 |
| 684 toggle = gtk_check_button_new_with_mnemonic(_("_IM windows")); |
685 toggle = gtk_check_button_new_with_mnemonic(_("_IM windows")); |
| 685 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); |
686 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); |
| 686 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), |
687 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), |
| 713 g_signal_connect(G_OBJECT(toggle), "toggled", |
714 g_signal_connect(G_OBJECT(toggle), "toggled", |
| 714 G_CALLBACK(type_toggle_cb), "type_focused"); |
715 G_CALLBACK(type_toggle_cb), "type_focused"); |
| 715 |
716 |
| 716 /*---------- "Notification Methods" ----------*/ |
717 /*---------- "Notification Methods" ----------*/ |
| 717 frame = pidgin_make_frame(ret, _("Notification Methods")); |
718 frame = pidgin_make_frame(ret, _("Notification Methods")); |
| 718 vbox = gtk_vbox_new(FALSE, 5); |
719 vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); |
| 719 gtk_container_add(GTK_CONTAINER(frame), vbox); |
720 gtk_container_add(GTK_CONTAINER(frame), vbox); |
| 720 |
721 |
| 721 /* String method button */ |
722 /* String method button */ |
| 722 hbox = gtk_hbox_new(FALSE, 18); |
723 hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 18); |
| 723 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
724 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
| 724 toggle = gtk_check_button_new_with_mnemonic(_("Prepend _string into window title:")); |
725 toggle = gtk_check_button_new_with_mnemonic(_("Prepend _string into window title:")); |
| 725 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), |
726 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), |
| 726 purple_prefs_get_bool("/plugins/gtk/X11/notify/method_string")); |
727 purple_prefs_get_bool("/plugins/gtk/X11/notify/method_string")); |
| 727 gtk_box_pack_start(GTK_BOX(hbox), toggle, FALSE, FALSE, 0); |
728 gtk_box_pack_start(GTK_BOX(hbox), toggle, FALSE, FALSE, 0); |
| 783 g_signal_connect(G_OBJECT(toggle), "toggled", |
784 g_signal_connect(G_OBJECT(toggle), "toggled", |
| 784 G_CALLBACK(method_toggle_cb), "method_present"); |
785 G_CALLBACK(method_toggle_cb), "method_present"); |
| 785 |
786 |
| 786 /*---------- "Notification Removals" ----------*/ |
787 /*---------- "Notification Removals" ----------*/ |
| 787 frame = pidgin_make_frame(ret, _("Notification Removal")); |
788 frame = pidgin_make_frame(ret, _("Notification Removal")); |
| 788 vbox = gtk_vbox_new(FALSE, 5); |
789 vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); |
| 789 gtk_container_add(GTK_CONTAINER(frame), vbox); |
790 gtk_container_add(GTK_CONTAINER(frame), vbox); |
| 790 |
791 |
| 791 /* Remove on focus button */ |
792 /* Remove on focus button */ |
| 792 toggle = gtk_check_button_new_with_mnemonic(_("Remove when conversation window _gains focus")); |
793 toggle = gtk_check_button_new_with_mnemonic(_("Remove when conversation window _gains focus")); |
| 793 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); |
794 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); |