From 430583e74bf3cf1368cb0a51832f896fd53ba600 Mon Sep 17 00:00:00 2001 From: "bhutani.92" Date: Thu, 30 Jun 2016 16:31:29 +0530 Subject: [PATCH] Hiding Widget test in case of Image added to widget Change-Id: I90ce53b33ecc9a606af0ab77d5d17abbe7f06dc2 Signed-off-by: bhutani.92 --- widget/res/gallerywidget.edc | 24 ++++++++++++++++++++++++ widget/src/gl_widget_create.c | 1 + 2 files changed, 25 insertions(+) diff --git a/widget/res/gallerywidget.edc b/widget/res/gallerywidget.edc index 7e4b1fc..9f6eda9 100644 --- a/widget/res/gallerywidget.edc +++ b/widget/res/gallerywidget.edc @@ -91,6 +91,11 @@ collections { ellipsis: -1.0; } } + description { + state:"hidden" 0.0; + inherit : "default" 0.0; + visible : 0; + } }//end TitleText part { name:"HelpText"; @@ -113,6 +118,11 @@ collections { ellipsis: -1.0; } } + description { + state:"hidden" 0.0; + inherit : "default" 0.0; + visible : 0; + } }//end HelpText part { name:"image0"; @@ -355,6 +365,20 @@ collections { } // end AlbumInfo }//end parts programs { + program { name: "Show_Text"; + signal:"show"; + source:"elm"; + action:STATE_SET "default" 0.0; + target:"TitleText"; + target :"HelpText"; + } + program { name: "Hide_Text"; + signal:"hide"; + source:"elm"; + action:STATE_SET "hidden" 0.0; + target:"TitleText"; + target :"HelpText"; + } program { name: "touch_snd1"; source: "Edit_button_fg"; signal: "mouse,clicked,1"; diff --git a/widget/src/gl_widget_create.c b/widget/src/gl_widget_create.c index aa31faa..44bc8bc 100644 --- a/widget/src/gl_widget_create.c +++ b/widget/src/gl_widget_create.c @@ -630,6 +630,7 @@ static void gl_widget_result_cb(app_control_h request, app_control_h reply, loop_count++; elm_object_signal_callback_del(layout, "mouse,clicked,1", "bg", gl_widget_on_no_image_cb); + elm_object_signal_emit(layout, "hide", "elm"); if (widget_data->selected_count) { widget_data->timer = ecore_timer_loop_add(TIMER_INTERVAL, -- 2.7.4