personal app editor - force size up to be sanely sized for use

enlightenment-0.24
Carsten Haitzler 3 years ago
parent a3ae1b0ac2
commit 3a3257e789
  1. 15
      src/bin/e_desktop_editor.c
  2. 11
      src/modules/conf_applications/e_int_config_apps_personal.c

@ -707,6 +707,13 @@ _e_desktop_edit_basic_create_widgets(E_Config_Dialog *cfd EINA_UNUSED, Evas *eva
ot = e_widget_table_add(e_win_evas_win_get(evas), 0);
o = evas_object_rectangle_add(evas);
evas_object_color_set(o, 0, 0, 0, 0);
evas_object_pass_events_set(o, EINA_TRUE);
mw = 200 * e_scale; mh = 80 * e_scale;
evas_object_size_hint_min_set(o, mw, mh);
e_widget_table_object_append(ot, o, 1, 4, 1, 1, 1, 1, 1, 1);
o = e_widget_label_add(evas, _("Name"));
e_widget_table_object_append(ot, o, 0, 0, 1, 1, 1, 1, 0, 0);
@ -755,10 +762,16 @@ _e_desktop_edit_basic_create_widgets(E_Config_Dialog *cfd EINA_UNUSED, Evas *eva
ot = e_widget_table_add(e_win_evas_win_get(evas), 0);
o = evas_object_rectangle_add(evas);
evas_object_color_set(o, 0, 0, 0, 0);
evas_object_pass_events_set(o, EINA_TRUE);
mw = 160 * e_scale; mh = 160 * e_scale;
evas_object_size_hint_min_set(o, mw, mh);
e_widget_table_object_append(ot, o, 0, 0, 2, 1, 1, 1, 1, 1);
editor->img_widget = e_widget_button_add
(evas, "", NULL, _e_desktop_editor_cb_icon_select, cfdata, editor);
_e_desktop_editor_icon_update(cfdata);
e_widget_size_min_set(editor->img_widget, 192, 192);
e_widget_table_object_append(ot, editor->img_widget, 0, 0, 2, 1, 1, 1, 1, 1);

@ -74,15 +74,20 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
Evas_Coord mw, mh;
e_dialog_resizable_set(cfd->dia, 1);
of = e_widget_table_add(e_win_evas_win_get(evas), 0);
ob = evas_object_rectangle_add(evas);
evas_object_color_set(ob, 0, 0, 0, 0);
evas_object_pass_events_set(ob, EINA_TRUE);
mw = 260 * e_scale; mh = 200 * e_scale;
evas_object_size_hint_min_set(ob, mw, mh);
e_widget_table_object_append(of, ob, 0, 1, 2, 1, 1, 1, 1, 1);
li = e_widget_ilist_add(evas, 24, 24, NULL);
cfdata->obj.list = li;
e_widget_ilist_multi_select_set(li, EINA_TRUE);
e_widget_size_min_get(li, &mw, &mh);
if (mw < (200 * e_scale)) mw = 200 * e_scale;
if (mh < (160 * e_scale)) mh = 160 * e_scale;
e_widget_size_min_set(li, mw, mh);
e_widget_on_change_hook_set(li, _widget_list_selection_changed, cfdata);
e_widget_table_object_append(of, li, 0, 1, 2, 1, 1, 1, 1, 1);

Loading…
Cancel
Save