Ephoto: Fix tooltips causing box to lose sizing.

Fixes https://phab.enlightenment.org/T4349
master
Stephen okra Houston 6 years ago
parent dcf9097b6c
commit 57fd04f346
  1. 2
      src/bin/ephoto_hsv.c
  2. 4
      src/bin/ephoto_main.c
  3. 7
      src/bin/ephoto_single_browser.c

@ -354,7 +354,7 @@ ephoto_hsv_add(Ephoto *ephoto, Evas_Object *main, Evas_Object *parent, Evas_Obje
"ehsv", ehsv);
evas_object_event_callback_add(ehsv->editor, EVAS_CALLBACK_DEL, _editor_del,
ehsv);
slider = elm_slider_add(ehsv->editor);
elm_object_text_set(slider, _("Value"));
elm_slider_min_max_set(slider, -100, 100);

@ -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);

@ -1129,7 +1129,7 @@ _go_hsv(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
Ephoto_Single_Browser *sb = data;
if (sb->viewer)
{
{
sb->editing = EINA_TRUE;
Ephoto_Viewer *v = evas_object_data_get(sb->viewer, "viewer");
@ -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());
@ -2289,7 +2290,7 @@ ephoto_single_browser_show_controls(Ephoto *ephoto)
elm_object_part_content_set(but, "icon", ic);
elm_object_tooltip_text_set(but, _("Zoom In"));
elm_object_tooltip_orient_set(but, ELM_TOOLTIP_ORIENT_TOP);
evas_object_smart_callback_add(but, "clicked", _zoom_in_cb, sb);
evas_object_smart_callback_add(but, "clicked", _zoom_in_cb, sb);
elm_box_pack_end(ephoto->controls_left, but);
evas_object_show(but);
@ -2321,7 +2322,7 @@ ephoto_single_browser_show_controls(Ephoto *ephoto)
elm_object_part_content_set(but, "icon", ic);
elm_object_tooltip_text_set(but, _("Zoom Fit"));
elm_object_tooltip_orient_set(but, ELM_TOOLTIP_ORIENT_TOP);
evas_object_smart_callback_add(but, "clicked", _zoom_fit_cb, sb);
evas_object_smart_callback_add(but, "clicked", _zoom_fit_cb, sb);
elm_box_pack_end(ephoto->controls_left, but);
evas_object_show(but);

Loading…
Cancel
Save