parent
49e8dde23f
commit
780f83da91
|
@ -265,11 +265,19 @@ _main_menu_show_user_changed_cb(void *data EINA_UNUSED, Evas_Object *obj,
|
||||||
evisum_ui_config_save(ui);
|
evisum_ui_config_save(ui);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static Eina_Bool
|
||||||
|
_menu_focus_cb(void *data)
|
||||||
|
{
|
||||||
|
Evas_Object *o = data;
|
||||||
|
elm_object_focus_set(o, 1);
|
||||||
|
return EINA_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
evisum_ui_main_menu_create(Ui *ui, Evas_Object *parent)
|
evisum_ui_main_menu_create(Ui *ui, Evas_Object *parent)
|
||||||
{
|
{
|
||||||
Evas_Object *o, *bx, *bx2, *hbox, *sep, *fr, *sli;
|
Evas_Object *o, *bx, *bx2, *hbox, *sep, *fr, *sli;
|
||||||
Evas_Object *btn, *chk;
|
Evas_Object *it_focus, *btn, *chk;
|
||||||
Evas_Coord ox, oy, ow, oh;
|
Evas_Coord ox, oy, ow, oh;
|
||||||
|
|
||||||
evas_object_geometry_get(parent, &ox, &oy, &ow, &oh);
|
evas_object_geometry_get(parent, &ox, &oy, &ow, &oh);
|
||||||
|
@ -299,7 +307,7 @@ evisum_ui_main_menu_create(Ui *ui, Evas_Object *parent)
|
||||||
evas_object_size_hint_weight_set(hbox, EXPAND, EXPAND);
|
evas_object_size_hint_weight_set(hbox, EXPAND, EXPAND);
|
||||||
evas_object_show(hbox);
|
evas_object_show(hbox);
|
||||||
|
|
||||||
btn = _btn_create(hbox, "cpu", _("CPU"),
|
it_focus = btn = _btn_create(hbox, "cpu", _("CPU"),
|
||||||
_menu_cpu_activity_clicked_cb, ui);
|
_menu_cpu_activity_clicked_cb, ui);
|
||||||
elm_box_pack_end(hbox, btn);
|
elm_box_pack_end(hbox, btn);
|
||||||
|
|
||||||
|
@ -415,6 +423,7 @@ evisum_ui_main_menu_create(Ui *ui, Evas_Object *parent)
|
||||||
evas_object_move(o, ox + (ow / 2), oy + oh);
|
evas_object_move(o, ox + (ow / 2), oy + oh);
|
||||||
evas_object_show(o);
|
evas_object_show(o);
|
||||||
ui->main_menu = o;
|
ui->main_menu = o;
|
||||||
|
ecore_timer_add(0.5, _menu_focus_cb, it_focus);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -1185,7 +1185,7 @@ _search_add(Ui_Data *pd)
|
||||||
elm_entry_single_line_set(entry, 1);
|
elm_entry_single_line_set(entry, 1);
|
||||||
elm_entry_scrollable_set(entry, 0);
|
elm_entry_scrollable_set(entry, 0);
|
||||||
elm_entry_editable_set(entry, 1);
|
elm_entry_editable_set(entry, 1);
|
||||||
elm_object_focus_allow_set(entry, 1);
|
elm_object_focus_allow_set(entry, 0);
|
||||||
evas_object_show(entry);
|
evas_object_show(entry);
|
||||||
|
|
||||||
rec = evas_object_rectangle_add(evas_object_evas_get(tbl2));
|
rec = evas_object_rectangle_add(evas_object_evas_get(tbl2));
|
||||||
|
|
Loading…
Reference in New Issue