summaryrefslogtreecommitdiff
path: root/capplets/appearance/appearance-font.c
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/appearance/appearance-font.c')
-rw-r--r--capplets/appearance/appearance-font.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/capplets/appearance/appearance-font.c b/capplets/appearance/appearance-font.c
index 0ae22153..99281f23 100644
--- a/capplets/appearance/appearance-font.c
+++ b/capplets/appearance/appearance-font.c
@@ -759,11 +759,15 @@ void font_init(AppearanceData* data)
G_SETTINGS_BIND_DEFAULT);
widget = appearance_capplet_get_widget (data, "desktop_font");
- g_settings_bind (data->caja_settings,
- DESKTOP_FONT_KEY,
- G_OBJECT (widget),
- "font-name",
- G_SETTINGS_BIND_DEFAULT);
+
+ if (data->caja_settings)
+ g_settings_bind (data->caja_settings,
+ DESKTOP_FONT_KEY,
+ G_OBJECT (widget),
+ "font-name",
+ G_SETTINGS_BIND_DEFAULT);
+ else
+ gtk_widget_set_sensitive (widget, FALSE);
widget = appearance_capplet_get_widget (data, "window_title_font");
g_settings_bind (data->marco_settings,