Fixed armhf compiler issues
This commit is contained in:
parent
1a5245d5ec
commit
367492e0dc
|
@ -25,24 +25,24 @@
|
||||||
|
|
||||||
double getDefaultFontSize()
|
double getDefaultFontSize()
|
||||||
{
|
{
|
||||||
GSettingsSchemaSource *schema_source = NULL;
|
// GSettingsSchemaSource *schema_source = NULL;
|
||||||
GSettingsSchema *schema = NULL;
|
// GSettingsSchema *schema = NULL;
|
||||||
|
|
||||||
schema_source = g_settings_schema_source_get_default();
|
// schema_source = g_settings_schema_source_get_default();
|
||||||
if(schema_source){
|
// if(schema_source){
|
||||||
schema = g_settings_schema_source_lookup (schema_source,KEY_SYSTEM_FONT_SIZE,TRUE);
|
// schema = g_settings_schema_source_lookup (schema_source,KEY_SYSTEM_FONT_SIZE,TRUE);
|
||||||
if(schema){
|
// if(schema){
|
||||||
GVariant *size;
|
// GVariant *size;
|
||||||
unsigned long length;
|
// unsigned long length;
|
||||||
GSettings *gs;
|
// GSettings *gs;
|
||||||
|
|
||||||
gs = g_settings_new(STYLE_TYPE_SCHEMA);
|
// gs = g_settings_new(STYLE_TYPE_SCHEMA);
|
||||||
size = g_settings_get_default_value(gs, KEY_SYSTEM_FONT_SIZE);
|
// size = g_settings_get_default_value(gs, KEY_SYSTEM_FONT_SIZE);
|
||||||
QString fontsize(g_variant_get_string(size,&length));
|
// QString fontsize(g_variant_get_string(size,&length));
|
||||||
g_object_unref(gs);
|
// g_object_unref(gs);
|
||||||
|
|
||||||
return fontsize.toDouble();
|
// return fontsize.toDouble();
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
return DEFAULT_FONT_SIZE;
|
return DEFAULT_FONT_SIZE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue