]> spindle.queued.net Git - midori/commitdiff
Fix tooltip on preferred language entry
authorChristian Dywan <christian@twotoasts.de>
Sun, 16 Sep 2012 23:00:49 +0000 (01:00 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 17 Sep 2012 17:26:55 +0000 (19:26 +0200)
midori/midori-preferences.c
midori/midori-websettings.c

index 8b1acacc4f0f749b18f6880609d291e0833cefc0..cbdf69bb4dd9c6c96020f32649bf4a6ddbf40442 100644 (file)
@@ -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);
index 331de5b0ac3feff8fa52a877394c8b37d7d677b7..e0549b611ff6d30a779fb929984ce8e18c70d4f4 100644 (file)
@@ -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));