Ephoto: Fix tooltips causing box to lose sizing.
Fixes https://phab.enlightenment.org/T4349
This commit is contained in:
parent
dcf9097b6c
commit
57fd04f346
|
@ -541,7 +541,7 @@ ephoto_window_add(const char *path)
|
|||
elm_object_text_set(but, _("Show Folders"));
|
||||
evas_object_smart_callback_add(but, "clicked", _folder_icon_clicked, ephoto);
|
||||
elm_object_tooltip_text_set(but, _("Show Folders"));
|
||||
elm_object_tooltip_orient_set(but, ELM_TOOLTIP_ORIENT_RIGHT);
|
||||
elm_object_tooltip_orient_set(but, ELM_TOOLTIP_ORIENT_TOP);
|
||||
elm_box_pack_end(ephoto->statusbar, but);
|
||||
evas_object_show(but);
|
||||
fold = but;
|
||||
|
@ -608,7 +608,7 @@ ephoto_window_add(const char *path)
|
|||
evas_object_smart_callback_add(but, "clicked",
|
||||
_settings_icon_clicked, ephoto);
|
||||
elm_object_tooltip_text_set(but, _("Settings"));
|
||||
elm_object_tooltip_orient_set(but, ELM_TOOLTIP_ORIENT_LEFT);
|
||||
elm_object_tooltip_orient_set(but, ELM_TOOLTIP_ORIENT_TOP);
|
||||
elm_box_pack_end(ephoto->statusbar, but);
|
||||
evas_object_show(but);
|
||||
|
||||
|
|
|
@ -1570,6 +1570,7 @@ _edit_function_item_add(Evas_Object *parent, const char *icon, const char *label
|
|||
button = elm_button_add(parent);
|
||||
elm_object_tooltip_text_set(button, label);
|
||||
elm_object_tooltip_orient_set(button, ELM_TOOLTIP_ORIENT_LEFT);
|
||||
elm_object_tooltip_window_mode_set(button, EINA_TRUE);
|
||||
elm_object_part_content_set(button, "icon", ic);
|
||||
evas_object_size_hint_min_set(button, 30*elm_config_scale_get(),
|
||||
30*elm_config_scale_get());
|
||||
|
|
Loading…
Reference in New Issue