do not use ecore-x functions in scale config while running in wayland
This commit is contained in:
parent
28b022d033
commit
07b778a396
|
@ -226,7 +226,8 @@ _basic_create(E_Config_Dialog *cfd EINA_UNUSED, Evas *evas, E_Config_Dialog_Data
|
||||||
o = e_widget_table_add(e_win_evas_win_get(evas), 1);
|
o = e_widget_table_add(e_win_evas_win_get(evas), 1);
|
||||||
|
|
||||||
#ifndef HAVE_WAYLAND_ONLY
|
#ifndef HAVE_WAYLAND_ONLY
|
||||||
dpi = ecore_x_dpi_get();
|
if (e_comp->comp_type == E_PIXMAP_TYPE_X)
|
||||||
|
dpi = ecore_x_dpi_get();
|
||||||
#endif
|
#endif
|
||||||
if ((dpi > 0) && (cfdata->base_dpi > 0))
|
if ((dpi > 0) && (cfdata->base_dpi > 0))
|
||||||
sc = (double)dpi / (double)cfdata->base_dpi;
|
sc = (double)dpi / (double)cfdata->base_dpi;
|
||||||
|
@ -292,7 +293,7 @@ _adv_create(E_Config_Dialog *cfd EINA_UNUSED, Evas *evas, E_Config_Dialog_Data *
|
||||||
{
|
{
|
||||||
Evas_Object *o, *otb, *ow;
|
Evas_Object *o, *otb, *ow;
|
||||||
E_Radio_Group *rg;
|
E_Radio_Group *rg;
|
||||||
char buff[256];
|
char buff[256] = {0};
|
||||||
|
|
||||||
_fill_data(cfdata);
|
_fill_data(cfdata);
|
||||||
if (cfdata->obs) cfdata->obs = eina_list_free(cfdata->obs);
|
if (cfdata->obs) cfdata->obs = eina_list_free(cfdata->obs);
|
||||||
|
@ -309,8 +310,9 @@ _adv_create(E_Config_Dialog *cfd EINA_UNUSED, Evas *evas, E_Config_Dialog_Data *
|
||||||
e_widget_list_object_append(o, ow, 1, 1, 0.5);
|
e_widget_list_object_append(o, ow, 1, 1, 0.5);
|
||||||
|
|
||||||
#ifndef HAVE_WAYLAND_ONLY
|
#ifndef HAVE_WAYLAND_ONLY
|
||||||
snprintf(buff, sizeof(buff),
|
if (e_comp->comp_type == E_PIXMAP_TYPE_X)
|
||||||
_("Base DPI (Currently %i DPI)"), ecore_x_dpi_get());
|
snprintf(buff, sizeof(buff),
|
||||||
|
_("Base DPI (Currently %i DPI)"), ecore_x_dpi_get());
|
||||||
#endif
|
#endif
|
||||||
ow = e_widget_label_add(evas, buff);
|
ow = e_widget_label_add(evas, buff);
|
||||||
cfdata->gui.adv.dpi_lbl = ow;
|
cfdata->gui.adv.dpi_lbl = ow;
|
||||||
|
|
Loading…
Reference in New Issue