Commit 53403561 authored by Benoît Dupasquier's avatar Benoît Dupasquier

Prevent warnings when no font is set in gconf.

parent 45dc554e
......@@ -153,6 +153,7 @@ gnac_prefs_gconf_retrieve(void)
GtkFontButton *font_button;
GtkComboBox *combo;
GtkWidget *temp;
gchar *font_name;
gint folder_type;
check_button = GTK_TOGGLE_BUTTON(gtk_builder_get_object(gnac_prefs_builder,
......@@ -170,8 +171,12 @@ gnac_prefs_gconf_retrieve(void)
font_button = GTK_FONT_BUTTON(gtk_builder_get_object(gnac_prefs_builder,
"subtitles_font_button"));
gtk_font_button_set_font_name(font_button,
gnac_gconf_get_string(GNAC_GCONF_SUBTITLES_FONT));
font_name = gnac_gconf_get_string(GNAC_GCONF_SUBTITLES_FONT);
if (font_name)
{
gtk_font_button_set_font_name(font_button, font_name);
g_free(font_name);
}
folder_type = gnac_gconf_get_int(GNAC_GCONF_FOLDER_TYPE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment