Fix for ug is not launched
authorHyunwoo Kim <hw4444.kim@samsung.com>
Thu, 7 Feb 2013 11:42:51 +0000 (20:42 +0900)
committerHyunwoo Kim <hw4444.kim@samsung.com>
Thu, 7 Feb 2013 11:42:51 +0000 (20:42 +0900)
Change-Id: I7e03998c5491fb1593bfbdc44a028fc689084d03

main/src/ug-image-viewer.cpp
packaging/ug-image-viewer-efl.spec
widget/src/scissorbox/ScissorBox.h [changed mode: 0644->0755]

index 9687115..ffc8cb6 100755 (executable)
@@ -883,7 +883,7 @@ static void on_event(ui_gadget_h ug, enum ug_event event, service_h service, voi
                MSG_IMAGEVIEW_ERROR("Invalid UG. UG=0x%08x Priv=0x%08x", ug, priv);
                return;
        }
-       MSG_IMAGEVIEW_HIGH("Image Viewer : %s UG=0x%08x", __func__, ug);        //on message
+       MSG_IMAGEVIEW_HIGH("Image Viewer : %s UG=0x%08x event=%d", __func__, ug, event);        //on message
 
        switch (event) {
        case UG_EVENT_LOW_MEMORY:
index 4d84ce5..89bf667 100755 (executable)
@@ -7,7 +7,7 @@
 
 Name:          ug-image-viewer-efl
 Summary:    Image Viewer UI Gadget v1.0
-Version:    1.7.3
+Version:    1.7.4
 Release:    0
 Group:      misc
 License:    Flora Software License
old mode 100644 (file)
new mode 100755 (executable)
index 2615f49..e1be00e
@@ -74,10 +74,16 @@ public:
        static void _OnChangedJob(void *data) {
                CScissorBox *scissorbox = (CScissorBox *)data;
 
-               scissorbox->ApplyChanges();
+               scissorbox->OnChanged();
        }
 
        void OnTargetChanged();
+
+       void OnChanged() {
+               m_job = NULL;
+               ApplyChanges();
+       };
+
        void ApplyChanges();
 
 private: