summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHyungdeuk Kim <hd3.kim@samsung.com>2013-04-09 15:05:51 +0900
committerHyungdeuk Kim <hd3.kim@samsung.com>2013-04-09 15:05:51 +0900
commit799d227d19ac183c6d6a44f2ec131ae46695c056 (patch)
tree34d54c2688b464745485941a82184cdf6d03beab /src
parent231c143ff59f6785db0f972f6f9e29512514b435 (diff)
downloadui-gadget-1-799d227d19ac183c6d6a44f2ec131ae46695c056.tar.gz
ui-gadget-1-799d227d19ac183c6d6a44f2ec131ae46695c056.tar.bz2
ui-gadget-1-799d227d19ac183c6d6a44f2ec131ae46695c056.zip
apply latest changes
Diffstat (limited to 'src')
-rwxr-xr-xsrc/manager.c1
-rw-r--r--src/module.c26
2 files changed, 27 insertions, 0 deletions
diff --git a/src/manager.c b/src/manager.c
index 7af9fb3..bc3de24 100755
--- a/src/manager.c
+++ b/src/manager.c
@@ -410,6 +410,7 @@ static int ugman_indicator_update(enum ug_option opt, enum ug_event event)
}
if(cur_state != enable) {
+ _DBG("set indicator as %d", enable);
utilx_enable_indicator(ug_man.disp, ug_man.win_id, enable);
}
return 0;
diff --git a/src/module.c b/src/module.c
index 2f4915e..bd2fedc 100644
--- a/src/module.c
+++ b/src/module.c
@@ -139,3 +139,29 @@ int ug_module_unload(struct ug_module *module)
free(module);
return 0;
}
+
+int ug_exist(const char* name)
+{
+ char ug_file[PATH_MAX] = {0,};
+ int ret = 0;
+
+ do {
+ snprintf(ug_file, PATH_MAX, "/usr/ug/lib/libug-%s.so", name);
+ if (file_exist(ug_file)) {
+ ret = 1;
+ break;
+ }
+ snprintf(ug_file, PATH_MAX, "/opt/ug/lib/libug-%s.so", name);
+ if (file_exist(ug_file)) {
+ ret = 1;
+ break;
+ }
+ snprintf(ug_file, PATH_MAX, "/opt/usr/ug/lib/libug-%s.so", name);
+ if (file_exist(ug_file)) {
+ ret = 1;
+ break;
+ }
+ } while (0);
+
+ return ret;
+}