- table = gtk_table_new(5, 2, FALSE);
- gtk_widget_show(table);
- gtk_container_set_border_width(GTK_CONTAINER(table), 8);
- gtk_table_set_row_spacings(GTK_TABLE(table), 4);
- gtk_table_set_col_spacings(GTK_TABLE(table), 8);
-
- checkbtn_passphrase_grab = gtk_check_button_new_with_label(_("Grab input while entering a passphrase"));
- gtk_widget_show(checkbtn_passphrase_grab);
- gtk_table_attach(GTK_TABLE(table), checkbtn_passphrase_grab, 0, 1,
- 3, 4, (GtkAttachOptions) (GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (GTK_SHRINK), 0, 0);
-
- checkbtn_store_passphrase = gtk_check_button_new_with_label(_("Store passphrase in memory"));
- gtk_widget_show(checkbtn_store_passphrase);
- gtk_table_attach(GTK_TABLE(table), checkbtn_store_passphrase, 0, 1,
- 1, 2, (GtkAttachOptions) (GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (GTK_SHRINK), 0, 0);
-
- checkbtn_auto_check_signatures =
- gtk_check_button_new_with_label(_("Automatically check signatures"));
- gtk_widget_show(checkbtn_auto_check_signatures);
- gtk_table_attach(GTK_TABLE(table), checkbtn_auto_check_signatures,
- 0, 1, 0, 1,
- (GtkAttachOptions) (GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (GTK_SHRINK), 0, 0);
-
- checkbtn_gpg_warning = gtk_check_button_new_with_label(_
- ("Display warning on startup if GnuPG doesn't work"));
- gtk_widget_show(checkbtn_gpg_warning);
- gtk_table_attach(GTK_TABLE(table), checkbtn_gpg_warning, 0, 1, 4,
- 5, (GtkAttachOptions) (GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (GTK_SHRINK), 0, 0);
-
- hbox1 = gtk_hbox_new(FALSE, 8);
- gtk_widget_show(hbox1);
- gtk_table_attach(GTK_TABLE(table), hbox1, 0, 1, 2, 3,
- (GtkAttachOptions) (GTK_SHRINK | GTK_FILL),
- (GtkAttachOptions) (GTK_SHRINK), 0, 0);
-
- tmp = g_strdup_printf(" %s", _("Expire after"));
- label11 = gtk_label_new(tmp);
- g_free(tmp);
- gtk_widget_show(label11);
- gtk_box_pack_start(GTK_BOX(hbox1), label11, FALSE, FALSE, 0);
+ vbox1 = gtk_vbox_new (FALSE, VSPACING);
+ gtk_widget_show (vbox1);
+ gtk_container_set_border_width (GTK_CONTAINER (vbox1), VBOX_BORDER);
+
+ vbox2 = gtk_vbox_new (FALSE, 0);
+ gtk_widget_show (vbox2);
+ gtk_box_pack_start (GTK_BOX (vbox1), vbox2, FALSE, FALSE, 0);
+
+ PACK_CHECK_BUTTON (vbox2, checkbtn_auto_check_signatures,
+ _("Automatically check signatures"));
+
+ PACK_FRAME(vbox1, frame_passphrase, _("Passphrase"));
+
+ vbox2 = gtk_vbox_new (FALSE, VSPACING_NARROW);
+ gtk_widget_show (vbox2);
+ gtk_container_add (GTK_CONTAINER (frame_passphrase), vbox2);
+ gtk_container_set_border_width (GTK_CONTAINER (vbox2), 8);
+
+ PACK_CHECK_BUTTON (vbox2, checkbtn_store_passphrase,
+ _("Store passphrase in memory"));
+
+ hbox1 = gtk_hbox_new (FALSE, 8);
+ gtk_widget_show (hbox1);
+ gtk_box_pack_start (GTK_BOX (vbox2), hbox1, FALSE, FALSE, 0);
+
+ label_expire1 = gtk_label_new(_("Expire after"));
+ gtk_widget_show (label_expire1);
+ gtk_box_pack_start (GTK_BOX (hbox1), label_expire1, FALSE, FALSE, 0);