fix indicator overlay mode update error under rotation event
authorHyungdeuk Kim <hd3.kim@samsung.com>
Fri, 18 Jan 2013 13:51:39 +0000 (22:51 +0900)
committerHyungdeuk Kim <hd3.kim@samsung.com>
Fri, 18 Jan 2013 13:51:39 +0000 (22:51 +0900)
packaging/ui-gadget-1.spec
src/manager.c

index c2a75faa650d84e5fc471177cb5954aac908002b..00dd3c58f7cafdbcb192fc91c1eafe50d98325c2 100755 (executable)
@@ -1,7 +1,7 @@
 
 Name:       ui-gadget-1
 Summary:    UI Gadget Library
-Version:    0.1.14
+Version:    0.1.15
 Release:    1
 Group:      System/Libraries
 License:    Apache License, Version 2.0
index 03ecda65a3059edc51ad7e7fa905d50a8d1b5896..36cccb5a3c883d6404acd3079c8749112ad0b91b 100755 (executable)
@@ -261,11 +261,8 @@ static int ugman_ug_resume(void *data)
        return 0;
 }
 
-static int ugman_indicator_update(enum ug_option opt, enum ug_event event)
+static int ugman_indicator_overlap_update(enum ug_option opt)
 {
-       int enable;
-       int cur_state;
-
        if (!ug_man.win) {
                _ERR("indicator update failed: no window");
                return -1;
@@ -279,6 +276,14 @@ static int ugman_indicator_update(enum ug_option opt, enum ug_event event)
                elm_object_signal_emit(ug_man.conform, "elm,state,indicator,nooverlap", "");
        }
 
+       return 0;
+}
+
+static int ugman_indicator_update(enum ug_option opt, enum ug_event event)
+{
+       int enable;
+       int cur_state;
+
        switch (GET_OPT_INDICATOR_VAL(opt)) {
        case UG_OPT_INDICATOR_ENABLE:
                if (event == UG_EVENT_NONE)
@@ -313,9 +318,12 @@ static int ugman_ug_getopt(ui_gadget_h ug)
 {
        if (!ug)
                return -1;
+
        /* Indicator Option */
-       if (ug->mode == UG_MODE_FULLVIEW)
+       if (ug->mode == UG_MODE_FULLVIEW) {
+               ugman_indicator_overlap_update(ug->opt);
                ugman_indicator_update(ug->opt, UG_EVENT_NONE);
+       }
 
        return 0;
 }