[TSAM-8178] Corrected progress bar width 15/90615/2 submit/tizen_mobile/20161003.172741
authorRahul Dadhich <r.dadhich@samsung.com>
Mon, 3 Oct 2016 06:55:17 +0000 (12:25 +0530)
committerRahul Dadhich <r.dadhich@samsung.com>
Mon, 3 Oct 2016 07:11:35 +0000 (12:41 +0530)
Change-Id: I68d47babb52874b5c175b7950c6e392f77b5334d
Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
inc/widget/gl-progressbar.h
res/edje/gl-progressbar.edc
src/widget/gl-progressbar.c

index c176f09d43f16917e080df9172dfbe76fe62a09f..eca75234711dc9a7f68a70b52aeea2619bc29fb6 100644 (file)
@@ -27,8 +27,6 @@ int gl_pb_make_thread_pbar(void *data, Evas_Object * parent, char *title);
 int gl_pb_make_thread_pbar_wheel(void *data, Evas_Object * parent, char *title);
 int gl_pb_refresh_thread_pbar(void *data, int cur_cnt, int total_cnt);
 int gl_pb_del_pbar(void *data);
-Evas_Object *gl_pb_make_pbar(void *data, Evas_Object * parent, char *state);
-Evas_Object *_gl_pb_make_place_pbar(Evas_Object *parent);
 
 #endif /* _GL_PROGRESSBAR_H_ */
 
index a711e664b3c2f9ff43c6049bafe22ce14a9bc47d..2a283a1bf3b638275eff9c99daca5229bd572c3e 100644 (file)
 *
 */
 
-#define PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC 10
-#define PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC 0 0 0 255
-#define PROGRESSBAR_LIST_PROGRESS_STYLE_STATUS_TEXT_COLOR_INC 224 224 224 255
-#define PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC 4
-
 #define PROGRESSBAR_DEFAULT_HEIGHT_INC 4
 #define PROGRESSBAR_DEFAULT_TEXT_HEIGHT_INC 21
-#define PROGRESSBAR_PENDING_HEIGHT_INC 4
-#define PROGRESSBAR_PENDING_TEXT_HEIGHT_INC 21
 #define PROGRESSBAR_PADDING_HEIGHT_INC 4
-#define PROGRESSBAR_LARGE_SIZE_INC 51 51
-#define PROGRESSBAR_MEDIUM_SIZE_INC 28 28
-#define PROGRESSBAR_SMALL_SIZE_INC 22 22
 
 group { name: "elm/progressbar/horizontal/gallery/default";
       data.item: "vector_ux" "default";
@@ -419,527 +409,6 @@ group { name: "elm/progressbar/horizontal/gallery/default";
       }
    }
 
-   group { name: "elm/progressbar/horizontal/gallery/list_progress";
-      images {
-         image: GALLERY_EDC_IMAGE_LIST_PROGRESS_BG COMP;
-         image: GALLERY_EDC_IMAGE_LIST_PROGRESS_BAR COMP;
-      }
-      parts {
-         part { name: "elm.padding.left";
-            type: RECT;
-            scale: 1;
-            description {
-               state: "default" 0.0;
-               min: 0 0;
-               fixed: 1 0;
-               rel1 {
-                  relative: 0.0  0.0;
-                  offset: 0 0;
-               }
-               rel2 {
-                  relative: 0.0  1.0;
-                  offset: 0 0;
-               }
-               color: 0 0 0 0;
-               align: 0.0 0.0;
-            }
-         }
-         part { name: "elm.padding.right";
-            type: RECT;
-            scale: 1;
-            description {
-               state: "default" 0.0;
-               min: 0 0;
-               fixed: 1 0;
-               rel1 {
-                  relative: 1.0  0.0;
-                  offset: 0 0;
-               }
-               rel2 {
-                  relative: 1.0  1.0;
-                  offset:   0   0;
-               }
-               color: 0 0 0 0;
-               align: 1.0 0.0;
-            }
-         }
-         part { name: "elm.background.progressbar";
-            type: RECT;
-            mouse_events: 0;
-            scale: 1;
-            description {
-               state: "default" 0.0;
-               rel1 {
-                  to_x: "elm.padding.left";
-                  relative: 1.0 0.0;
-                  offset: 0 0;
-               }
-               rel2 {
-                  to_x: "elm.padding.right";
-                  relative: 0.0 1.0;
-                  offset: 0 0;
-               }
-            }
-         }
-         part { name: "elm.swallow.bar";
-            mouse_events: 0;
-            scale: 1;
-            type: SWALLOW;
-            description {
-               min: 1 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
-               max: 99999 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
-               state: "default" 0.0;
-               rel1 {
-                  to: "elm.background.progressbar";
-                  relative: 0.0 0.0;
-               }
-               rel2 {
-                  to: "elm.background.progressbar";
-                  relative: 1.0 1.0;
-               }
-            }
-         }
-         part { name: "elm.swallow.content";
-            type: SWALLOW;
-            scale: 1;
-            description { state: "default" 0.0;
-               visible: 0;
-               align: 0.0 0.5;
-               rel1 {
-                  offset: 0 0;
-                  to_y: "elm.background.progressbar";
-               }
-               rel2 {
-                  offset: 0 -1;
-                  relative: 0.0 1.0;
-                  to_y: "elm.background.progressbar";
-               }
-            }
-            description { state: "visible" 0.0;
-               inherit: "default" 0.0;
-               visible: 1;
-               aspect: 1.0 1.0;
-               aspect_preference: VERTICAL;
-               rel2.offset: 4 -1;
-            }
-         }
-         part { name: "elm.text";
-            type: TEXT;
-            mouse_events: 0;
-            scale: 1;
-            description { state: "default" 0.0;
-               visible: 0;
-               fixed: 1 1;
-               align: 0.0 0.5;
-               rel1.to_x: "elm.swallow.content";
-               rel1.relative: 1.0 0.0;
-               rel2.to_x: "elm.swallow.content";
-               rel2.relative: 1.0 1.0;
-               color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
-               text {
-                  font: "SLP:style=Medium";
-                  text_class: "slp";
-                  size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
-                  min: 0 0;
-                  align: 0.0 0.5;
-               }
-            }
-            description { state: "visible" 0.0;
-               inherit: "default" 0.0;
-               visible: 0;
-               text.min: 1 1;
-            }
-         }
-         part { name: "background";
-            mouse_events: 0;
-            scale: 1;
-            clip_to: "elm.background.progressbar";
-            description {
-               state: "default" 0.0;
-               rel1 {
-                  to: "elm.swallow.bar";
-                  relative: 0.0 0.0;
-               }
-               rel2 {
-                  to: "elm.swallow.bar";
-                  relative: 1.0 1.0;
-               }
-               image {
-                  normal: GALLERY_EDC_IMAGE_LIST_PROGRESS_BG;
-                  border: 0 0 1 1;
-               }
-            }
-         }
-         part { name: "elm.text.status";
-            type: TEXT;
-            mouse_events: 0;
-            scale: 1;
-            description { state: "default" 0.0;
-               fixed: 1 1;
-               visible: 0;
-               rel1 {
-                  to: "background";
-                  relative: 0.5 0.5;
-               }
-               rel2 {
-                  to: "background";
-                  relative: 0.5 0.5;
-               }
-               text {
-                  font: "SLP:style=Medium";
-                  text_class: "slp";
-                  size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
-                  min: 0 0;
-                  align: 0.5 0.0;
-               }
-               color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
-            }
-            description { state: "show" 0.0;
-               inherit: "default" 0.0;
-               visible: 0;
-               text.min: 1 1;
-            }
-         }
-         part { name: "elm.progress.progressbar";
-            mouse_events: 0;
-            scale: 1;
-            clip_to: "elm.background.progressbar";
-            description {
-               state: "default" 0.0;
-               min: 0 0;
-               fixed: 1 1;
-               rel1 {
-                  to: "elm.swallow.bar";
-                  relative: 0.0 0.0;
-               }
-               rel2 {
-                  to_y: "elm.swallow.bar";
-                  to_x: "elm.cur.progressbar";
-                  offset: -1 -1;
-               }
-               image {
-                  normal: GALLERY_EDC_IMAGE_LIST_PROGRESS_BAR;
-                  border: 0 0 1 1;
-               }
-            }
-            description {
-               state: "invert" 0.0;
-               inherit: "default" 0.0;
-               rel1 {
-                  to_y: "elm.swallow.bar";
-                  to_x: "elm.cur.progressbar";
-               }
-               rel2 {
-                  to: "elm.swallow.bar";
-                  relative: 1.0 1.0;
-               }
-            }
-            description {
-               state: "state_begin" 0.0;
-               inherit: "default" 0.0;
-               rel1 {
-                  to: "elm.swallow.bar";
-                  relative: 0.0 0.0;
-               }
-               rel2 {
-                  to: "elm.swallow.bar";
-                  relative: 0.1 1.0;
-               }
-            }
-            description {
-               state: "state_end" 0.0;
-               inherit: "default" 0.0;
-               rel1 {
-                  to: "elm.swallow.bar";
-                  relative: 0.9 0.0;
-               }
-               rel2 {
-                  to: "elm.swallow.bar";
-                  relative: 1.0 1.0;
-               }
-            }
-         }
-         part { name: "text-bar";
-            type: TEXT;
-            mouse_events: 0;
-            scale: 1;
-            clip_to: "progress-rect";
-            //effect: SOFT_SHADOW;
-            scale: 0;
-            description { state: "default" 0.0;
-               align: 0.0 0.0;
-               fixed: 1 1;
-               visible: 0;
-               rel1.to: "elm.text.status";
-               rel1.offset: -1 -1;
-               rel2.to: "elm.text.status";
-               text {
-                  text_source: "elm.text.status";
-                  font: "SLP:style=Medium";
-                  text_class: "slp";
-                  size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
-                  min: 0 0;
-                  align: 0.0 0.0;
-               }
-               color: PROGRESSBAR_LIST_PROGRESS_STYLE_STATUS_TEXT_COLOR_INC;
-            }
-            description { state: "show" 0.0;
-               inherit: "default" 0.0;
-               visible: 0;
-               text.min: 1 1;
-            }
-         }
-         part { name: "elm.cur.progressbar";
-            mouse_events: 0;
-            scale: 1;
-            dragable {
-               confine: "background";
-               x: 1 1 1;
-               y: 0 0 0;
-            }
-            description { state: "default" 0.0;
-               min: 0 28;
-               fixed: 1 1;
-               visible: 0;
-               rel1 {
-                  to: "background";
-                  relative: 0 0;
-               }
-               rel2.to: "background";
-           }
-         }
-         part { name: "progress-rect";
-            type: RECT;
-            mouse_events: 0;
-            scale: 1;
-            description {
-               state: "default" 0.0;
-               rel1.to: "elm.progress.progressbar";
-               rel2.to: "elm.progress.progressbar";
-            }
-         }
-      }
-      programs {
-         program { name: "label_show";
-            signal: "elm,state,text,visible";
-            source: "elm";
-            action:  STATE_SET "visible" 0.0;
-            target: "elm.text";
-         }
-         program { name: "label_hide";
-            signal: "elm,state,text,hidden";
-            source: "elm";
-            action:  STATE_SET "default" 0.0;
-            target: "elm.text";
-         }
-         program { name: "icon_show";
-            signal: "elm,state,icon,visible";
-            source: "elm";
-            action:  STATE_SET "visible" 0.0;
-            target: "elm.swallow.content";
-         }
-         program { name: "icon_hide";
-            signal: "elm,state,icon,hidden";
-            source: "elm";
-            action:  STATE_SET "default" 0.0;
-            target: "elm.swallow.content";
-         }
-         program { name: "units_show";
-            signal: "elm,state,units,visible";
-            source: "elm";
-            action:  STATE_SET "show" 0.0;
-            target: "text-bar";
-            target: "elm.text.status";
-         }
-         program { name: "units_hide";
-            signal: "elm,state,units,hidden";
-            source: "elm";
-            action:  STATE_SET "default" 0.0;
-            target: "text-bar";
-            target: "elm.text.status";
-         }
-         program { name: "slide_to_end";
-            action:  STATE_SET "state_end" 0.0;
-            transition: LINEAR 0.5;
-            target: "elm.progress.progressbar";
-            after: "slide_to_begin";
-         }
-         program { name: "slide_to_begin";
-            signal: "elm,state,slide,begin";
-            action: STATE_SET "state_begin" 0.0;
-            target: "elm.progress.progressbar";
-            transition: LINEAR 0.5;
-            after: "slide_to_end";
-         }
-         program { name: "start_pulse";
-            signal: "elm,state,pulse,start";
-            source: "elm";
-           // after: "slide_to_end";
-         }
-         program { name: "stop_pulse";
-            signal: "elm,state,pulse,stop";
-            source: "elm";
-            action: ACTION_STOP;
-            target: "slide_to_begin";
-            target: "slide_to_end";
-            target: "start_pulse";
-            //after: "state_pulse";
-         }
-         program { name: "state_pulse";
-            signal: "elm,state,pulse";
-            source: "elm";
-            action: STATE_SET "state_begin" 0.0;
-            target: "elm.progress.progressbar";
-            after: "units_hide";
-         }
-         program { name: "state_fraction";
-            signal: "elm,state,fraction";
-            source: "elm";
-            action: ACTION_STOP;
-            target: "slide_to_begin";
-            target: "slide_to_end";
-            target: "start_pulse";
-            action: STATE_SET "default" 0.0;
-            target: "elm.progress.progressbar";
-         }
-         program { name: "set_invert_on";
-            signal: "elm,state,inverted,on";
-            source: "elm";
-            action:  STATE_SET "invert" 0.0;
-            target: "elm.progress.progressbar";
-         }
-         program { name: "set_invert_off";
-            signal: "elm,state,inverted,off";
-            source: "elm";
-            action:  STATE_SET "default" 0.0;
-            target: "elm.progress.progressbar";
-         }
-      }
-   }
-
-
-/////Processing popup layout with label and progressbar //////
-//568 = 378 + 190
-group { name: "popup_processing";
-#define GL_POPUP_PROCESSINGVIEW_CONTENT_MIN 568 188
-   parts {
-      part { name: "base";
-         type: SPACER;
-         scale: 1;
-         description { state: "default" 0.0;
-            min: GL_POPUP_PROCESSINGVIEW_CONTENT_MIN;
-            fixed: 1 0;
-         }
-      }
-      part { name:"pad_t";
-         type: SPACER;
-         scale: 1;
-         description { state: "default" 0.0;
-            min: 0 30;
-            fixed: 0 1;
-            align: 0 0;
-            rel1.to: "base";
-            rel2 {
-               relative: 1.0 0.0;
-               to: "base";
-            }
-         }
-      }
-      part { name: "pad_l";
-         type: SPACER;
-         scale: 1;
-         description { state: "default" 0.0;
-            min: 45 0;
-            max: 45 0;
-            fixed: 1 1;
-            rel1.to: "base";
-            rel2.to: "base";
-            align: 0.0 0.0;
-         }
-      }
-      part { name: "pad_r";
-         type: SPACER;
-         scale: 1;
-         description { state: "default" 0.0;
-            min: 45 0;
-            max: 45 0;
-            fixed: 1 1;
-            rel1.to: "base";
-            rel2.to: "base";
-            align: 1.0 1.0;
-         }
-      }
-      part { name:"elm.swallow.content";
-         type: SWALLOW;
-         scale: 1;
-         description { state: "default" 0.0;
-            min: 60 0;
-            align: 0.0 0.0;
-            fixed: 1 1;
-            rel1 {
-               relative: 1.0 1.0;
-               to_x: "pad_l";
-               to_y: "pad_t";
-            }
-            rel2 {
-               relative: 1.0 0.0;
-               to_x: "pad_l";
-               to_y: "pad_b";
-            }
-         }
-      }
-      part { name:"pad_after_content";
-         type: SPACER;
-         scale: 1;
-         description { state: "default" 0.0;
-            min: 45 0;
-            fixed: 1 0;
-            rel1 {
-               relative: 1.0 0.0;
-               to: "elm.swallow.content";
-            }
-            rel2 {
-               relative: 1.0 1.0;
-               to: "elm.swallow.content";
-            }
-         }
-      }
-      part { name:"elm.swallow.text";
-         type: SWALLOW;
-         scale: 1;
-         description { state: "default" 0.0;
-            min: 350 0;
-            align: 0.0 0.0;
-            fixed: 1 1;
-            rel1 {
-               relative: 1.0 0.0;
-               to: "pad_after_content";
-            }
-            rel2 {
-               relative: 0.0 0.0;
-               to_x: "pad_r";
-               to_y: "pad_b";
-            }
-         }
-      }
-      part { name:"pad_b";
-         type: SPACER;
-         scale: 1;
-         description { state: "default" 0.0;
-            min: 0 30;
-            fixed: 0 1;
-            align: 1 1;
-            rel1 {
-               relative: 0.0 1.0;
-               to: "base";
-            }
-            rel2.to: "base";
-         }
-      }
-   }
-#undef GL_POPUP_PROCESSINGVIEW_CONTENT_MIN
-}
-
 #define POPUP_PROGRESSBAR_VIEW_LAYOUT_BG_MIN_INC 0 70
 #define POPUP_PROGRESSBAR_VIEW_LAYOUT_PADDING_INC 15 27
 #define POPUP_PROGRESSBAR_VIEW_LAYOUT_TEXT_FONT_SIZE_INC 0 38
@@ -1051,3 +520,63 @@ group { name: "popup_text_progressbar_view_layout";
       }
    }
 }
+
+group { name: "popup_copy_move";
+       parts {
+               part {
+                       name : "bg";
+                       type : RECT;
+                       description {
+                       min : 200 0;
+                       max : -1 200;
+                               rel1 {
+                                       relative : 1.0 0.0;
+                                       to : "pad_l";
+                               }
+                               rel2 {
+                                       relative : 0.0 1.0;
+                                       to : "pad_r";
+                               }
+                               color : 0 0 0 0;
+                       }
+               }
+               part {
+                       name : "swallow";
+                       type : SWALLOW;
+                       description {
+                       min : 0 0;
+                       max : -1 -1;
+                               rel1 {
+                                       relative : 1.0 0.0;
+                                       to : "pad_l";
+                               }
+                               rel2 {
+                                       relative : 0.0 1.0;
+                                       to : "pad_r";
+                               }
+                       }
+               }
+               part {
+                       name : "pad_l";
+                       type : SPACER;
+                       description {
+                               min : 50 50;
+                               max : 50 50;
+                               rel1.relative : 0.0 0.0;
+                               rel2.relative : 0.0 0.0;
+                               align : 0.0 0.0;
+                       }
+               }
+               part {
+                       name : "pad_r";
+                       type : SPACER;
+                       description {
+                               min : 50 50;
+                               max : 50 50;
+                               rel1.relative : 1.0 1.0;
+                               rel2.relative : 1.0 1.0;
+                               align : 1 1;
+                       }
+               }
+       }
+}
index f9e41a5b6b35f583dce4d9dc982933ed77c04a07..936ef54e21af1b74390ea89d16d435453e4c4f82 100644 (file)
 #include "gl-strings.h"
 #include "gl-button.h"
 
-#define GL_ALBUMS_PBAR_BG_COLOR_VAL 48
-#define GL_WEB_DOWNLOAD_INVALID_ID 0//-2
-#define GL_PBAR_STATUS_LEN_MAX 128
-#define GL_PBAR_WIDTH_MIN_INC (576*elm_config_scale_get()) //(144x4)
-
-#define GL_PROGRESSBAR_STYLE_GALLERY_PROGRESS "gallery/list_progress"
-#define GL_PROGRESSBAR_STYLE_PROGRESS "list_progress"
 #define GL_PROGRESSBAR_STYLE_WHEEL "wheel"
-#define GL_LABEL_STYLE_DEFAULT GL_CHECKBOX_STYLE_DEFAULT
-#define GL_PROGRESSBAR_STYLE_PROCESS "list_process"
 /* Font style for show text of downloading web album */
-#define GL_FONT_STYLE_ALBUM_S "<color=#000000FF><font=Tizen:style=Medium text_class=tizen><font_size=28>"
-#define GL_FONT_STYLE_ALBUM_E "</font_size></font></color>"
 
 static void __gl_pb_cancel_thread_pbar_cb(void *data, Evas_Object *obj, void *ei)
 {
@@ -130,7 +119,7 @@ int gl_pb_make_thread_pbar(void *data, Evas_Object *parent, char *title)
 
        /*Delete the Popup if the Popup has a BACK event.*/
        eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK,
-                                    __gl_pb_ea_back_cb, NULL);
+                       __gl_pb_ea_back_cb, NULL);
        if (!strcmp(GL_STR_ID_MOVING, title)) {
                _gl_ui_set_translate_part_str(popup, GL_POPUP_TEXT, GL_STR_ID_MOVE);
        } else {
@@ -138,7 +127,7 @@ int gl_pb_make_thread_pbar(void *data, Evas_Object *parent, char *title)
        }
 
        evas_object_size_hint_weight_set(label, 0.0,
-                                        EVAS_HINT_EXPAND);
+                       EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(label, 0.0,
                        EVAS_HINT_FILL);
        evas_object_show(label);
@@ -147,23 +136,25 @@ int gl_pb_make_thread_pbar(void *data, Evas_Object *parent, char *title)
        elm_progressbar_unit_format_set(progressbar, NULL);
        elm_progressbar_value_set(progressbar, 0.0);
        evas_object_size_hint_align_set(progressbar, EVAS_HINT_FILL,
-                                       EVAS_HINT_FILL);
-       evas_object_size_hint_weight_set(progressbar, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
+                       EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(progressbar, EVAS_HINT_FILL,
+                       EVAS_HINT_EXPAND);
        evas_object_show(progressbar);
        elm_object_part_text_set(progressbar, "elm.text.top.right", _gl_str(title));
-       box = elm_box_add(popup);
-       evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
-       elm_box_horizontal_set(box, EINA_FALSE);
-       elm_box_homogeneous_set(box, EINA_FALSE);
-       elm_box_pack_end(box, progressbar);
-       evas_object_show(box);
 
-       elm_object_content_set(popup, box);
+       Evas_Object *layout = elm_layout_add(popup);
+       char *path = _gl_get_edje_path();
+       GL_CHECK_NULL(path);
+       elm_layout_file_set(layout, path, "popup_copy_move");
+       free(path);
+       evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND,
+                       EVAS_HINT_EXPAND);
+
+       elm_object_part_content_set(layout, "swallow", progressbar);
+       elm_object_content_set(popup, layout);
        Evas_Object *btn1 = NULL;
        btn1 = _gl_but_create_but_popup(popup, GL_STR_ID_CANCEL,
-                                       __gl_pb_cancel_thread_pbar_cb, data);
+                       __gl_pb_cancel_thread_pbar_cb, data);
        elm_object_part_content_set(popup, "button1", btn1);
 
        evas_object_show(popup);
@@ -229,103 +220,3 @@ int gl_pb_del_pbar(void *data)
        GL_IF_DEL_TIMER(ad->pbarinfo.pbar_timer);
        return 0;
 }
-
-Evas_Object *gl_pb_make_pbar(void *data, Evas_Object *parent, char *state)
-{
-       GL_CHECK_NULL(data);
-       gl_appdata *ad = (gl_appdata *)data;
-       gl_dbg("Make progressbar, state:%s", state);
-       char label_str[GL_POPUP_DESC_LEN_MAX] = { 0, };
-
-       if (ad->pbarinfo.popup) {
-               if (ad->pbarinfo.pbar_timer) {
-                       gl_dbg("Del pbar timer in update case!");
-                       ecore_timer_del(ad->pbarinfo.pbar_timer);
-                       ad->pbarinfo.pbar_timer = NULL;
-               }
-               gl_dbg("Progressbar already created, update its label.");
-               snprintf(label_str, sizeof(label_str),
-                        GL_FONT_STYLE_POP_S"%s"GL_FONT_STYLE_POP_E, state);
-               elm_object_text_set(ad->pbarinfo.status_label, label_str);
-               return ad->pbarinfo.popup;
-       }
-       gl_pb_del_pbar(ad);
-       Evas_Object *popup = NULL;
-       Evas_Object *progressbar = NULL;
-       Evas_Object *layout = NULL;
-       Evas_Object *label = NULL;
-
-       popup = elm_popup_add(parent);
-
-       /*Delete the Popup if the Popup has a BACK event.*/
-       eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, eext_popup_back_cb,
-                                      NULL);
-
-       elm_object_style_set(popup, "content_no_vhpad");
-
-       label = elm_label_add(popup);
-       elm_object_style_set(label, "popup/default");
-       snprintf(label_str, sizeof(label_str),
-                GL_FONT_STYLE_POP_S"%s"GL_FONT_STYLE_POP_E, state);
-       elm_object_text_set(label, label_str);
-       /**
-       * width got from evas_object_geometry_get equals 0
-       * Text couldn't be showed, comment 3 lines codes below
-       */
-       /*Evas_Coord width = 0;
-       evas_object_geometry_get(popup, NULL, NULL, &width, NULL);
-       elm_label_wrap_width_set(label, (int)(width * 0.5));*/
-       elm_label_line_wrap_set(label, ELM_WRAP_MIXED);
-       evas_object_size_hint_align_set(label, EVAS_HINT_FILL, EVAS_HINT_FILL);
-       evas_object_size_hint_weight_set(label, EVAS_HINT_EXPAND, 0.0);
-       evas_object_show(label);
-
-       layout = elm_layout_add(popup);
-       char *path = _gl_get_edje_path();
-       GL_CHECK_NULL(path);
-       elm_layout_file_set(layout, path, "popup_processing");
-       free(path);
-       evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
-
-       progressbar = elm_progressbar_add(popup);
-       elm_object_style_set(progressbar, GL_PROGRESSBAR_STYLE_PROCESS);
-       elm_progressbar_horizontal_set(progressbar, EINA_TRUE);
-       elm_progressbar_unit_format_set(progressbar, NULL);
-       elm_progressbar_pulse(progressbar, EINA_TRUE);
-       evas_object_size_hint_align_set(progressbar, EVAS_HINT_FILL,
-                                       EVAS_HINT_FILL);
-       evas_object_size_hint_weight_set(progressbar, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
-       evas_object_show(progressbar);
-
-       elm_object_part_content_set(layout, "elm.swallow.content", progressbar);
-       elm_object_part_content_set(layout, "elm.swallow.text", label);
-
-       elm_object_content_set(popup, layout);
-       evas_object_show(popup);
-
-       ad->pbarinfo.popup = popup;
-       ad->pbarinfo.pbar = progressbar;
-       ad->pbarinfo.status_label = label;
-       return popup;
-}
-
-Evas_Object *_gl_pb_make_place_pbar(Evas_Object *parent)
-{
-       GL_CHECK_NULL(parent);
-       gl_dbg("");
-
-       Evas_Object *progressbar = NULL;
-       progressbar = elm_progressbar_add(parent);
-       elm_object_style_set(progressbar, GL_PROGRESSBAR_STYLE_PROCESS);
-       elm_progressbar_unit_format_set(progressbar, NULL);
-       elm_progressbar_pulse(progressbar, EINA_TRUE);
-       evas_object_size_hint_align_set(progressbar, EVAS_HINT_FILL,
-                                       EVAS_HINT_FILL);
-       evas_object_size_hint_weight_set(progressbar, EVAS_HINT_EXPAND,
-                                        EVAS_HINT_EXPAND);
-       evas_object_show(progressbar);
-       return progressbar;
-}
-