[Xfce4-commits] <midori:master> Fix tooltip on preferred language entry

Christian Dywan noreply at xfce.org
Mon Sep 17 19:28:05 CEST 2012


Updating branch refs/heads/master
         to 7d5fd0d319f497ccb29bec1cf657dabf3345586c (commit)
       from 5f18e3922140c92dbf668f84ed84da3fe1e4154f (commit)

commit 7d5fd0d319f497ccb29bec1cf657dabf3345586c
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Sep 17 01:00:49 2012 +0200

    Fix tooltip on preferred language entry

 midori/midori-preferences.c |    7 +++++--
 midori/midori-websettings.c |    6 +++---
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/midori/midori-preferences.c b/midori/midori-preferences.c
index 8b1acac..cbdf69b 100644
--- a/midori/midori-preferences.c
+++ b/midori/midori-preferences.c
@@ -353,7 +353,8 @@ midori_preferences_set_settings (MidoriPreferences* preferences,
     button = katze_property_proxy (settings, "enforce-font-family", NULL);
     INDENTED_ADD (button);
     #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);
     button = katze_property_proxy (settings, "preferred-encoding", "custom-default-encoding");
     SPANNED_ADD (button);
@@ -421,9 +422,11 @@ midori_preferences_set_settings (MidoriPreferences* preferences,
     #endif
 
     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);
     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);
     label = gtk_label_new (_("Save downloaded files to:"));
     gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c
index 331de5b..e0549b6 100644
--- a/midori/midori-websettings.c
+++ b/midori/midori-websettings.c
@@ -295,7 +295,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      PROP_PREFERRED_ENCODING,
                                      g_param_spec_enum (
                                      "preferred-encoding",
-                                     _("Preferred Encoding"),
+                                     "Preferred Encoding",
                                      "The preferred character encoding",
                                      MIDORI_TYPE_PREFERRED_ENCODING,
                                      MIDORI_ENCODING_WESTERN,
@@ -419,8 +419,8 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      PROP_PREFERRED_LANGUAGES,
                                      g_param_spec_string (
                                      "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\""),
+                                     "Preferred languages",
+                                     "A comma separated list of languages",
                                      NULL,
                                      flags));
 


More information about the Xfce4-commits mailing list