2007-01-15 [paul] 2.7.0cvs30
[claws.git] / src / plugins / pgpcore / prefs_gpg.c
index bd08e5d665aa245a39a910dd484e9069fcf78e44..5743f2913d99c987caa66df380d8b4826e610a73 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2004 Hiroyuki Yamamoto & the Claws Mail team
+ * Copyright (C) 2004-2007 Hiroyuki Yamamoto & the Claws Mail team
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -23,6 +23,7 @@
 
 #include "defs.h"
 #include "utils.h"
+#include "gtk/gtkutils.h"
 #include "prefs.h"
 #include "prefs_gtk.h"
 #include "prefs_gpg.h"
@@ -94,12 +95,7 @@ static void prefs_gpg_create_widget_func(PrefsPage *_page,
        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);
+       vbox2 = gtkut_get_options_frame(vbox1, &frame_passphrase, _("Passphrase"));
 
        PACK_CHECK_BUTTON (vbox2, checkbtn_store_passphrase,
                        _("Store passphrase in memory"));
@@ -270,12 +266,7 @@ static void prefs_gpg_account_create_widget_func(PrefsPage *_page,
        gtk_container_set_border_width (GTK_CONTAINER (vbox), VBOX_BORDER);
        gtk_widget_show(vbox);
 
-       PACK_FRAME (vbox, frame1, _("Sign key"));
-
-       vbox2 = gtk_vbox_new (FALSE, VSPACING_NARROW);
-       gtk_container_set_border_width (GTK_CONTAINER (vbox2), VBOX_BORDER);
-       gtk_widget_show (vbox2);
-       gtk_container_add (GTK_CONTAINER (frame1), vbox2);
+       vbox2 = gtkut_get_options_frame(vbox, &frame1, _("Sign key"));
 
        hbox = gtk_hbox_new (FALSE, 5);
        gtk_widget_show (hbox);
@@ -284,7 +275,7 @@ static void prefs_gpg_account_create_widget_func(PrefsPage *_page,
 
        key_default = gtk_radio_button_new_with_label(key_group,
                        _("Use default GnuPG key"));
-       key_group = gtk_radio_button_group(GTK_RADIO_BUTTON(key_default));
+       key_group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(key_default));
        gtk_widget_show(key_default);
        gtk_box_pack_start(GTK_BOX(hbox), key_default, FALSE, FALSE, 0);
 
@@ -295,7 +286,7 @@ static void prefs_gpg_account_create_widget_func(PrefsPage *_page,
 
        key_by_from = gtk_radio_button_new_with_label(key_group,
                _("Select key by your email address"));
-       key_group = gtk_radio_button_group(GTK_RADIO_BUTTON(key_by_from));
+       key_group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(key_by_from));
        gtk_widget_show(key_by_from);
        gtk_box_pack_start(GTK_BOX(hbox), key_by_from, FALSE, FALSE, 0);
 
@@ -306,7 +297,7 @@ static void prefs_gpg_account_create_widget_func(PrefsPage *_page,
 
        key_custom = gtk_radio_button_new_with_label(key_group,
                _("Specify key manually"));
-       key_group = gtk_radio_button_group(GTK_RADIO_BUTTON(key_custom));
+       key_group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(key_custom));
        gtk_widget_show(key_custom);
        gtk_box_pack_start(GTK_BOX(hbox), key_custom, FALSE, FALSE, 0);