forked from enlightenment/enlightenment
modules/conf_randr: Fix display of outputs
- Show and pack objects in layout before using e_layout_child_*() functions. - Don't use random EVAS_HINT_* flags when passing parameters. SVN revision: 69040
This commit is contained in:
parent
984d2c1869
commit
ef93a97573
|
@ -313,7 +313,7 @@ basic_create_widgets(E_Config_Dialog *cfd, Evas *canvas, E_Config_Dialog_Data *c
|
||||||
EINA_SAFETY_ON_FALSE_GOTO((wl = e_widget_list_add(canvas, EINA_FALSE, EINA_TRUE)), _dialog_create_widget_list_fail);
|
EINA_SAFETY_ON_FALSE_GOTO((wl = e_widget_list_add(canvas, EINA_FALSE, EINA_TRUE)), _dialog_create_widget_list_fail);
|
||||||
|
|
||||||
//e_widget_table_object_append(Evas_Object *obj, Evas_Object *sobj, int col, int row, int colspan, int rowspan, int fill_w, int fill_h, int expand_w, int expand_h);
|
//e_widget_table_object_append(Evas_Object *obj, Evas_Object *sobj, int col, int row, int colspan, int rowspan, int fill_w, int fill_h, int expand_w, int expand_h);
|
||||||
e_widget_table_object_append(table, cfdata->gui.widgets.arrangement.widget, 1, 1, 1, 1, EVAS_HINT_FILL, EVAS_HINT_FILL, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
e_widget_table_object_append(table, cfdata->gui.widgets.arrangement.widget, 1, 1, 1, 1, 1, 1, 1, 1);
|
||||||
/*
|
/*
|
||||||
e_widget_table_object_append(table, cfdata->gui.widgets.policies.widget, 1, 2, 1, 1, 0, 0, 0, 0);
|
e_widget_table_object_append(table, cfdata->gui.widgets.policies.widget, 1, 2, 1, 1, 0, 0, 0, 0);
|
||||||
e_widget_table_object_append(table, cfdata->gui.widgets.orientation.widget, 2, 2, 1, 1, 0, 0, 0, 0);
|
e_widget_table_object_append(table, cfdata->gui.widgets.orientation.widget, 2, 2, 1, 1, 0, 0, 0, 0);
|
||||||
|
|
|
@ -128,12 +128,12 @@ _arrangement_widget_update(void)
|
||||||
{
|
{
|
||||||
memcpy(&geo, &default_geo, sizeof(geo));
|
memcpy(&geo, &default_geo, sizeof(geo));
|
||||||
}
|
}
|
||||||
|
evas_object_show(odd->rep);
|
||||||
|
e_layout_pack(area, odd->rep);
|
||||||
e_layout_child_raise(odd->rep);
|
e_layout_child_raise(odd->rep);
|
||||||
e_layout_child_resize(odd->rep, geo.w, geo.h);
|
e_layout_child_resize(odd->rep, geo.w, geo.h);
|
||||||
e_layout_child_move(odd->rep, geo.x, geo.y);
|
e_layout_child_move(odd->rep, geo.x, geo.y);
|
||||||
evas_object_show(odd->rep);
|
|
||||||
|
|
||||||
e_layout_pack(area, odd->rep);
|
|
||||||
fprintf(stderr, "CONF_RANDR: Representation (%p) added with geo %d.%d %dx%d.\n", odd->rep, geo.x, geo.y, geo.w, geo.h);
|
fprintf(stderr, "CONF_RANDR: Representation (%p) added with geo %d.%d %dx%d.\n", odd->rep, geo.x, geo.y, geo.w, geo.h);
|
||||||
}
|
}
|
||||||
e_layout_thaw(area);
|
e_layout_thaw(area);
|
||||||
|
@ -181,7 +181,7 @@ arrangement_widget_basic_create_widgets(Evas *canvas)
|
||||||
e_config_runtime_info->gui.widgets.arrangement.scrollframe = scrollframe;
|
e_config_runtime_info->gui.widgets.arrangement.scrollframe = scrollframe;
|
||||||
|
|
||||||
// Append both objects to widget list
|
// Append both objects to widget list
|
||||||
e_widget_list_object_append(widget, scrollframe, EVAS_HINT_FILL, EVAS_HINT_EXPAND, EVAS_HINT_FILL);
|
e_widget_list_object_append(widget, scrollframe, 1, 1, 0.0);
|
||||||
e_widget_list_object_append(widget, check, 0, 0, 1.0);
|
e_widget_list_object_append(widget, check, 0, 0, 1.0);
|
||||||
|
|
||||||
e_config_runtime_info->gui.widgets.arrangement.widget_list = widget;
|
e_config_runtime_info->gui.widgets.arrangement.widget_list = widget;
|
||||||
|
|
Loading…
Reference in New Issue