add zoom in title bar
This commit is contained in:
parent
d1038b8ae6
commit
c94883280e
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue