return FALSE;
}
+static void
+midori_preferences_notify_preferred_encoding_cb (MidoriWebSettings* settings,
+ GParamSpec* pspec,
+ GtkWidget* entry)
+{
+ MidoriPreferredEncoding preferred_encoding;
+
+ preferred_encoding = katze_object_get_enum (settings, "preferred-encoding");
+ gtk_widget_set_sensitive (entry, preferred_encoding == MIDORI_ENCODING_CUSTOM);
+}
+
static void
midori_preferences_notify_identify_as_cb (MidoriWebSettings* settings,
GParamSpec* pspec,
/* Page "Appearance" */
PAGE_NEW (GTK_STOCK_SELECT_FONT, _("Appearance"));
FRAME_NEW (_("Font settings"));
- TABLE_NEW (5, 2);
+ TABLE_NEW (6, 2);
label = gtk_label_new (_("Default Font Family"));
INDENTED_ADD (label, 0, 1, 0, 1);
hbox = gtk_hbox_new (FALSE, 4);
INDENTED_ADD (label, 0, 1, 2, 3);
button = katze_property_proxy (settings, "preferred-encoding", NULL);
FILLED_ADD (button, 1, 2, 2, 3);
+ label = katze_property_label (settings, "default-encoding");
+ gtk_label_set_label (GTK_LABEL (label), _("Encoding"));
+ INDENTED_ADD (label, 0, 1, 3, 4);
+ entry = katze_property_proxy (settings, "default-encoding", NULL);
+ gtk_widget_set_tooltip_text (entry, _("The character encoding to use by default"));
+ g_signal_connect (settings, "notify::preferred-encoding",
+ G_CALLBACK (midori_preferences_notify_preferred_encoding_cb), entry);
+ midori_preferences_notify_preferred_encoding_cb (settings, NULL, entry);
+ FILLED_ADD (entry, 1, 2, 3, 4);
/* Page "Behavior" */
PAGE_NEW (GTK_STOCK_SELECT_COLOR, _("Behavior"));