e theme conf config - fix casting char fileds to int ptrs
we're casting ptrs to char fields to int * which is actually wrong as we break alignment guarantees. fix.
This commit is contained in:
parent
39752e55ec
commit
48a92ee067
|
@ -50,7 +50,7 @@ struct _CFText_Class
|
||||||
const char *font;
|
const char *font;
|
||||||
const char *style;
|
const char *style;
|
||||||
Evas_Font_Size size;
|
Evas_Font_Size size;
|
||||||
unsigned char enabled;
|
int enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
const E_Text_Class_Pair text_class_predefined_names[] = {
|
const E_Text_Class_Pair text_class_predefined_names[] = {
|
||||||
|
@ -815,7 +815,7 @@ _adv_class_cb_change(void *data, Evas_Object *obj EINA_UNUSED)
|
||||||
}
|
}
|
||||||
tc = e_widget_ilist_selected_data_get(cfdata->gui.class_list);
|
tc = e_widget_ilist_selected_data_get(cfdata->gui.class_list);
|
||||||
if (!tc) return;
|
if (!tc) return;
|
||||||
e_widget_check_valptr_set(cfdata->gui.enabled, (int*)&tc->enabled);
|
e_widget_check_valptr_set(cfdata->gui.enabled, &tc->enabled);
|
||||||
|
|
||||||
cfdata->cur_class = tc;
|
cfdata->cur_class = tc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue