Fix tooltip on preferred language entry

This commit is contained in:
Christian Dywan 2012-09-17 01:00:49 +02:00
parent 5f18e39221
commit 7d5fd0d319
2 changed files with 8 additions and 5 deletions

View file

@ -353,7 +353,8 @@ midori_preferences_set_settings (MidoriPreferences* preferences,
button = katze_property_proxy (settings, "enforce-font-family", NULL); button = katze_property_proxy (settings, "enforce-font-family", NULL);
INDENTED_ADD (button); INDENTED_ADD (button);
#endif #endif
label = katze_property_label (settings, "preferred-encoding"); label = gtk_label_new (_("Preferred Encoding"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
INDENTED_ADD (label); INDENTED_ADD (label);
button = katze_property_proxy (settings, "preferred-encoding", "custom-default-encoding"); button = katze_property_proxy (settings, "preferred-encoding", "custom-default-encoding");
SPANNED_ADD (button); SPANNED_ADD (button);
@ -421,9 +422,11 @@ midori_preferences_set_settings (MidoriPreferences* preferences,
#endif #endif
FRAME_NEW (NULL); FRAME_NEW (NULL);
button = katze_property_label (settings, "preferred-languages"); button = gtk_label_new (_("Preferred languages"));
gtk_misc_set_alignment (GTK_MISC (button), 0.0, 0.5);
INDENTED_ADD (button); INDENTED_ADD (button);
entry = katze_property_proxy (settings, "preferred-languages", "languages"); entry = katze_property_proxy (settings, "preferred-languages", "languages");
gtk_widget_set_tooltip_text (entry, _("A comma separated list of languages preferred for rendering multilingual webpages, for example \"de\", \"ru,nl\" or \"en-us;q=1.0, fr-fr;q=0.667\""));
SPANNED_ADD (entry); SPANNED_ADD (entry);
label = gtk_label_new (_("Save downloaded files to:")); label = gtk_label_new (_("Save downloaded files to:"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);

View file

@ -295,7 +295,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
PROP_PREFERRED_ENCODING, PROP_PREFERRED_ENCODING,
g_param_spec_enum ( g_param_spec_enum (
"preferred-encoding", "preferred-encoding",
_("Preferred Encoding"), "Preferred Encoding",
"The preferred character encoding", "The preferred character encoding",
MIDORI_TYPE_PREFERRED_ENCODING, MIDORI_TYPE_PREFERRED_ENCODING,
MIDORI_ENCODING_WESTERN, MIDORI_ENCODING_WESTERN,
@ -419,8 +419,8 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
PROP_PREFERRED_LANGUAGES, PROP_PREFERRED_LANGUAGES,
g_param_spec_string ( g_param_spec_string (
"preferred-languages", "preferred-languages",
_("Preferred languages"), "Preferred languages",
_("A comma separated list of languages preferred for rendering multilingual webpages, for example \"de\", \"ru,nl\" or \"en-us;q=1.0, fr-fr;q=0.667\""), "A comma separated list of languages",
NULL, NULL,
flags)); flags));