add zoom in title bar

This commit is contained in:
Vincent Torri 2021-04-07 22:01:59 +02:00
parent d1038b8ae6
commit c94883280e
2 changed files with 5 additions and 2 deletions

View File

@ -495,6 +495,8 @@ entice_image_zoom_fit(Evas_Object *obj)
evas_object_move(sd->img, out_x, out_y);
sd->zoom = zoom;
entice = evas_object_data_get(win, "entice");
EINA_SAFETY_ON_NULL_RETURN(entice);

View File

@ -366,8 +366,9 @@ entice_win_title_update(Evas_Object *win)
entice_image_size_get(entice->image, &w, &h);
filename = eina_list_data_get(entice->image_current);
snprintf(buf, sizeof(buf), "Entice - %s (%d x %d)",
ecore_file_file_get(filename), w, h);
snprintf(buf, sizeof(buf), "Entice - %s (%d x %d) %d%%",
ecore_file_file_get(filename), w, h,
entice_image_zoom_get(entice->image));
elm_win_title_set(win, buf);
}