code cleanup
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Tue, 28 Sep 2010 08:36:18 +0000 (17:36 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Tue, 28 Sep 2010 08:36:18 +0000 (17:36 +0900)
src/cbhm_main.c
src/cbhm_main.h
src/clipdrawer.c
src/clipdrawer.h

index b5377f3..3f1bf41 100644 (file)
@@ -108,8 +108,6 @@ static int init(struct appdata *ad)
        xcnp_init(ad);
        init_appview(ad);
 
-//     clipdrawer_lower_view(ad);
-
        return 0;
 }
 
index d3ae688..fac4932 100755 (executable)
@@ -3,7 +3,7 @@
 
 #include <Elementary.h>
 
-#define APPNAME "cbhm"
+#define APPNAME "Clipboard History Manager"
 #define LOCALEDIR "/usr/share/locale"
 
 #define EDJ_PATH "/usr/share/edje"
index 4c3fc88..523ffe5 100644 (file)
@@ -1,11 +1,8 @@
 #include "common.h"
-#include "clipdrawer.h"
 #include "cbhm_main.h"
 #include "storage.h"
-
-#ifndef _EDJ
-#define _EDJ(ly) elm_layout_edje_get(ly)
-#endif
+#include "xcnphandler.h"
+#include "clipdrawer.h"
 
 #define IM     "/mnt/ums/Images/Photo/"
 static const char *images[] = {
@@ -82,7 +79,7 @@ int clipdrawer_update_contents(void *data)
        return 0;
 }
 
-static int clipdrawer_init(void *data)
+int clipdrawer_init(void *data)
 {
        struct appdata *ad = data;
 
index 13760df..6e98dba 100644 (file)
@@ -1,10 +1,11 @@
 #ifndef _clipdrawer_h_
 #define _clipdrawer_h_
 
-static int clipdrawer_init();
+int clipdrawer_init(void *data);
 int clipdrawer_update_contents(void *data);
-int clipdrawer_create_view();
-void clipdrawer_activate_view();
+int clipdrawer_create_view(void *data);
+void clipdrawer_activate_view(void *data);
 void clipdrawer_hide_view(void *data);
+void clipdrawer_lower_view(void *data);
 
 #endif // _clipdrawer_h_