{
GtkDialog parent_instance;
+ MidoriWebSettings* settings;
GtkWidget* notebook;
};
"Settings",
"Settings instance to provide properties",
MIDORI_TYPE_WEB_SETTINGS,
- G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}
static void
{
gchar* dialog_title;
+ preferences->settings = NULL;
preferences->notebook = NULL;
dialog_title = g_strdup_printf (_("Preferences for %s"),
switch (prop_id)
{
case PROP_SETTINGS:
- {
midori_preferences_set_settings (preferences,
g_value_get_object (value));
break;
- }
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
GValue* value,
GParamSpec* pspec)
{
+ MidoriPreferences* preferences = MIDORI_PREFERENCES (object);
+
switch (prop_id)
{
+ case PROP_SETTINGS:
+ g_value_set_object (value, preferences->settings);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
g_return_if_fail (!preferences->notebook);
+ katze_assign (preferences->settings, g_object_ref (settings));
+
g_object_get (preferences, "transient-for", &parent, NULL);
icon_name = parent ? gtk_window_get_icon_name (parent) : NULL;
if ((header = sokoke_xfce_header_new (icon_name,