From 43b179f0aa1c66e968cea445d1ab28d852aac129 Mon Sep 17 00:00:00 2001 From: Stephen okra Houston Date: Mon, 25 Jul 2016 17:21:14 -0500 Subject: [PATCH] Revert "Ephoto: Add ability to scale images." Not ready yet. This reverts commit 9394902746613db6252be3f78b6fe7ba14f18172. --- src/bin/Makefile.am | 7 +++---- src/bin/ephoto.h | 2 -- src/bin/ephoto_single_browser.c | 16 ---------------- src/bin/ephoto_thumb.c | 1 - 4 files changed, 3 insertions(+), 23 deletions(-) diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am index a5a1dd6..e500760 100644 --- a/src/bin/Makefile.am +++ b/src/bin/Makefile.am @@ -32,11 +32,10 @@ ephoto_SOURCES = \ ephoto_ipc.c \ ephoto_main.c \ ephoto_red_eye.c \ - ephoto_scale.c \ - ephoto_single_browser.c \ - ephoto_slideshow.c \ ephoto_thumb.c \ - ephoto_thumb_browser.c + ephoto_thumb_browser.c \ + ephoto_single_browser.c \ + ephoto_slideshow.c internal_bindir = $(datadir)/$(PACKAGE) internal_bin_PROGRAMS = ephoto_thumbnail diff --git a/src/bin/ephoto.h b/src/bin/ephoto.h index 3655094..b764722 100644 --- a/src/bin/ephoto.h +++ b/src/bin/ephoto.h @@ -142,8 +142,6 @@ void ephoto_color_add(Ephoto *ephoto, Evas_Object *main, Evas_Object *parent, Evas_Object *image); void ephoto_red_eye_add(Ephoto *ephoto, Evas_Object *main, Evas_Object *parent, Evas_Object *image); -void ephoto_scale_add(Ephoto *ephoto, Evas_Object *main, Evas_Object *parent, - Evas_Object *image); void ephoto_filter_blur(Evas_Object *main, Evas_Object *image); void ephoto_filter_sharpen(Evas_Object *main, Evas_Object *image); void ephoto_filter_dither(Evas_Object *main, Evas_Object *image); diff --git a/src/bin/ephoto_single_browser.c b/src/bin/ephoto_single_browser.c index dd9248c..3b01917 100644 --- a/src/bin/ephoto_single_browser.c +++ b/src/bin/ephoto_single_browser.c @@ -1026,21 +1026,6 @@ _crop_image(void *data, Evas_Object *obj EINA_UNUSED, } } -static void -_scale_image(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"); - - ephoto_scale_add(sb->ephoto, sb->main, sb->mhbox, v->image); - } -} - static void _go_bcg(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { @@ -1490,7 +1475,6 @@ _add_edit_menu_items(Ephoto_Single_Browser *sb, Evas_Object *menu) elm_menu_item_add(menu, menu_it, "document-properties", _("Transform"), NULL, NULL); elm_menu_item_add(menu, menu_itt, "edit-cut", _("Crop"), _crop_image, sb); - elm_menu_item_add(menu, menu_itt, "zoom-in", _("Scale"), _scale_image, sb); elm_menu_item_separator_add(menu, menu_itt); elm_menu_item_add(menu, menu_itt, "object-rotate-left", _("Rotate Left"), _go_rotate_counterclock, sb); diff --git a/src/bin/ephoto_thumb.c b/src/bin/ephoto_thumb.c index 27c81aa..07d2873 100644 --- a/src/bin/ephoto_thumb.c +++ b/src/bin/ephoto_thumb.c @@ -258,7 +258,6 @@ e_thumb_client_data(Ecore_Ipc_Event_Client_Data *e) eth->busy = 0; _pending--; eth->done = 1; - e_thumb_icon_end(obj); if (_pending == 0) _e_thumb_thumbnailers_kill(); if (ecore_file_exists(icon)) {