From d5b402f7761b772e9c58cb9071c6ca4e40162132 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 2 Feb 2011 05:44:11 +0000 Subject: [PATCH] Nicer layout for the preferences window --- po/de.po | 4 ++-- po/es.po | 4 ++-- po/fr.po | 4 ++-- po/it.po | 4 ++-- src/editor.c | 6 ++++-- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/po/de.po b/po/de.po index 648fc5f..4e93a50 100644 --- a/po/de.po +++ b/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Editor 0.1.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-02-02 06:40+0100\n" +"POT-Creation-Date: 2011-02-02 06:43+0100\n" "PO-Revision-Date: 2010-04-07 22:05+0200\n" "Last-Translator: Pierre Pronchery \n" "Language-Team: German\n" @@ -221,7 +221,7 @@ msgstr "Text Editor Einstellungen" msgid "Font:" msgstr "" -#: ../src/editor.c:878 +#: ../src/editor.c:879 msgid "Wrap mode:" msgstr "" diff --git a/po/es.po b/po/es.po index 65bd5b1..ead89d9 100644 --- a/po/es.po +++ b/po/es.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Editor 0.1.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-02-02 06:40+0100\n" +"POT-Creation-Date: 2011-02-02 06:43+0100\n" "PO-Revision-Date: 2010-04-07 22:07+0200\n" "Last-Translator: Pierre Pronchery \n" "Language-Team: Spanish\n" @@ -221,7 +221,7 @@ msgstr "" msgid "Font:" msgstr "" -#: ../src/editor.c:878 +#: ../src/editor.c:879 msgid "Wrap mode:" msgstr "" diff --git a/po/fr.po b/po/fr.po index 59105d5..4b830e3 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Editor 0.1.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-02-02 06:40+0100\n" +"POT-Creation-Date: 2011-02-02 06:43+0100\n" "PO-Revision-Date: 2010-04-11 12:32+0200\n" "Last-Translator: Calimero \n" "Language-Team: French\n" @@ -225,7 +225,7 @@ msgstr "Préférences de l'éditeur de texte" msgid "Font:" msgstr "Police :" -#: ../src/editor.c:878 +#: ../src/editor.c:879 msgid "Wrap mode:" msgstr "Retour à la ligne :" diff --git a/po/it.po b/po/it.po index 2379f23..4c1d5d0 100644 --- a/po/it.po +++ b/po/it.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Editor 0.1.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-02-02 06:40+0100\n" +"POT-Creation-Date: 2011-02-02 06:43+0100\n" "PO-Revision-Date: 2010-04-09 16:43+0200\n" "Last-Translator: Pierre Pronchery \n" "Language-Team: Italian\n" @@ -222,7 +222,7 @@ msgstr "" msgid "Font:" msgstr "" -#: ../src/editor.c:878 +#: ../src/editor.c:879 msgid "Wrap mode:" msgstr "" diff --git a/src/editor.c b/src/editor.c index 53971f3..b9ed228 100644 --- a/src/editor.c +++ b/src/editor.c @@ -867,21 +867,23 @@ void editor_show_preferences(Editor * editor, gboolean show) /* font */ hbox = gtk_hbox_new(FALSE, 4); widget = gtk_label_new(_("Font:")); + gtk_misc_set_alignment(GTK_MISC(widget), 0.0, 0.5); + gtk_size_group_add_widget(group, widget); gtk_box_pack_start(GTK_BOX(hbox), widget, FALSE, TRUE, 0); editor->pr_font = gtk_font_button_new(); gtk_font_button_set_use_font(GTK_FONT_BUTTON(editor->pr_font), TRUE); - gtk_size_group_add_widget(group, editor->pr_font); gtk_box_pack_start(GTK_BOX(hbox), editor->pr_font, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); /* wrap mode */ hbox = gtk_hbox_new(FALSE, 4); widget = gtk_label_new(_("Wrap mode:")); + gtk_misc_set_alignment(GTK_MISC(widget), 0.0, 0.5); + gtk_size_group_add_widget(group, widget); gtk_box_pack_start(GTK_BOX(hbox), widget, FALSE, TRUE, 0); editor->pr_wrap = gtk_combo_box_new_text(); for(i = 0; i < sizeof(_editor_wrap) / sizeof(*_editor_wrap); i++) gtk_combo_box_append_text(GTK_COMBO_BOX(editor->pr_wrap), _(_editor_wrap[i].name)); - gtk_size_group_add_widget(group, editor->pr_wrap); gtk_box_pack_start(GTK_BOX(hbox), editor->pr_wrap, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); _preferences_on_cancel(editor);