Hiding Widget test in case of Image added to widget 44/77644/2 submit/tizen_mobile/20160630.143022
authorbhutani.92 <bhutani.92@samsung.com>
Thu, 30 Jun 2016 11:01:29 +0000 (16:31 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Thu, 30 Jun 2016 11:02:55 +0000 (16:32 +0530)
Change-Id: I90ce53b33ecc9a606af0ab77d5d17abbe7f06dc2
Signed-off-by: bhutani.92 <bhutani.92@samsung.com>
widget/res/gallerywidget.edc
widget/src/gl_widget_create.c

index 7e4b1fc..9f6eda9 100644 (file)
@@ -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";
index aa31faa..44bc8bc 100644 (file)
@@ -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,