*
* 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.
*/
/*
GtkWidget *hbox1;
GtkWidget *misspelled_btn;
GtkTooltips *tooltips;
+ PangoFontDescription *font_desc;
+ gint size;
tooltips = gtk_tooltips_new ();
table = gtk_table_new(8, 3, FALSE);
gtk_widget_show(table);
- gtk_container_set_border_width(GTK_CONTAINER(table), 8);
+ gtk_container_set_border_width(GTK_CONTAINER(table), VBOX_BORDER);
gtk_table_set_row_spacings(GTK_TABLE(table), 4);
gtk_table_set_col_spacings(GTK_TABLE(table), 8);
gtk_label_set_justify(GTK_LABEL(label5), GTK_JUSTIFY_RIGHT);
gtk_misc_set_alignment(GTK_MISC(label5), 1, 0.5);
- btn_aspell_path = gtk_button_new_with_label(_(" ... "));
+ btn_aspell_path = gtkut_get_browse_directory_btn(_("_Browse"));
gtk_widget_show(btn_aspell_path);
gtk_table_attach(GTK_TABLE(table), btn_aspell_path, 2, 3, 4, 5,
(GtkAttachOptions) (GTK_FILL),
gtk_box_pack_start(GTK_BOX(hbox1), misspelled_btn, FALSE, FALSE,
0);
gtk_widget_set_size_request(misspelled_btn, 30, 20);
+ label5 = gtk_label_new(_("Use black to underline"));
+ gtkut_widget_set_small_font_size (label5);
+ gtk_widget_show(label5);
+ gtk_box_pack_start(GTK_BOX(hbox1), label5, FALSE, FALSE,
+ 4);
/* END GLADE CODE */
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbtn_enable_aspell),
{
SpellingPage *page;
static gchar *path[3];
-
+ const gchar* language = NULL;
+
path[0] = _("Compose");
- path[1] = _("Spell Checker");
+ path[1] = _("Spell Checking");
path[2] = NULL;
page = g_new0(SpellingPage, 1);
page->page.create_widget = prefs_spelling_create_widget;
page->page.destroy_widget = prefs_spelling_destroy_widget;
page->page.save_page = prefs_spelling_save;
- page->page.weight = 50.0;
+ page->page.weight = 180.0;
prefs_gtk_register_page((PrefsPage *) page);
prefs_spelling = page;
+ language = g_getenv("LANG");
+ if (language == NULL)
+ language = "en";
+ else if (!strcmp(language, "POSIX") || !strcmp(language, "C"))
+ language = "en";
+
if (!prefs_common.dictionary)
prefs_common.dictionary = g_strdup_printf("%s%s",
prefs_common.aspell_path,
- g_getenv("LANG"));
+ language);
if (!strlen(prefs_common.dictionary)
|| !strcmp(prefs_common.dictionary,"(None"))
prefs_common.dictionary = g_strdup_printf("%s%s",
prefs_common.aspell_path,
- g_getenv("LANG"));
+ language);
if (strcasestr(prefs_common.dictionary,".utf"))
*(strcasestr(prefs_common.dictionary,".utf")) = '\0';
if (strstr(prefs_common.dictionary,"@"))