2005-12-05 [paul] 1.9.100cvs61
[claws.git] / src / plugins / dillo_viewer / dillo_prefs.c
index 4a7fec0efb80228bb975af1c05c2caef8dde6761..397e4deb52d1e3b9bc4b2c07e5449aad1ca6a9db 100644 (file)
@@ -14,7 +14,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 /*
@@ -30,9 +30,9 @@
 #include "defs.h"
 
 #include <glib.h>
+#include <glib/gi18n.h>
 #include <gtk/gtk.h>
 
-#include "intl.h"
 #include "utils.h"
 #include "prefs.h"
 #include "prefs_gtk.h"
@@ -69,13 +69,16 @@ static void save_dillo_prefs                (PrefsPage *page);
 void dillo_prefs_init(void)
 {
        static gchar *path[3];
+       gchar *rcpath;
 
-       path[0] = _("Message View");
+       path[0] = _("Plugins");
        path[1] = _("Dillo Browser");
        path[2] = NULL;
 
         prefs_set_default(param);
-        prefs_read_config(param, PREFS_BLOCK_NAME, COMMON_RC);
+       rcpath = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMON_RC, NULL);
+        prefs_read_config(param, PREFS_BLOCK_NAME, rcpath, NULL);
+       g_free(rcpath);
         
         prefs_page.page.path = path;
         prefs_page.page.create_widget = create_dillo_prefs_page;
@@ -104,7 +107,7 @@ static void create_dillo_prefs_page(PrefsPage *page,
        GtkTooltips *full_tooltip;
 
         vbox = gtk_vbox_new(FALSE, 3);
-        gtk_container_set_border_width(GTK_CONTAINER(vbox), 3);
+        gtk_container_set_border_width(GTK_CONTAINER(vbox), VBOX_BORDER);
         gtk_widget_show(vbox);
         
        local_tooltip = gtk_tooltips_new();
@@ -120,6 +123,8 @@ static void create_dillo_prefs_page(PrefsPage *page,
        label = gtk_label_new(_("You can still load remote links "
                              "by reloading the page"));
         gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
+       gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+       gtkut_widget_set_small_font_size (label);
         gtk_widget_show(label);
 
        full_tooltip = gtk_tooltips_new();