adding init script
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Wed, 15 Sep 2010 07:47:30 +0000 (16:47 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Wed, 15 Sep 2010 07:47:30 +0000 (16:47 +0900)
CMakeLists.txt
data/init_script/cbhm [new file with mode: 0755]
debian/cbhm.install.in
debian/cbhm.postinst [new file with mode: 0755]
debian/changelog
debian/rules
src/clipdrawer.c
src/clipdrawer.h

index 2d68cbf..0650b44 100755 (executable)
@@ -36,3 +36,4 @@ ADD_DEPENDENCIES(${PROJECT_NAME} cbhmdrawer.edj)
 
 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
 INSTALL(FILES ${CMAKE_BINARY_DIR}/data/themes/cbhmdrawer.edj DESTINATION share/edje)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/data/init_script/cbhm DESTINATION /etc/init.d PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
diff --git a/data/init_script/cbhm b/data/init_script/cbhm
new file mode 100755 (executable)
index 0000000..087b703
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+/usr/bin/cbhm &
index cb17b09..cc61105 100644 (file)
@@ -1,2 +1,3 @@
 @PREFIX@/bin/*
 @PREFIX@/share/*
+/etc/init.d/*
diff --git a/debian/cbhm.postinst b/debian/cbhm.postinst
new file mode 100755 (executable)
index 0000000..8ab65f6
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+ln -s /etc/init.d/cbhm /etc/rc.d/rc3.d/S95cbhm
+
+sync
index c3ce13c..c70f12f 100644 (file)
@@ -1,3 +1,12 @@
+cbhm (0.1.0-7) unstable; urgency=low
+
+  * case of inhouse package
+  * Git: 165.213.180.234:/git/slp/pkgs/cbhm
+  * Tag: cbhm_0.1.0-7
+  * add init script
+
+ -- Hyoyoung Chang <hyoyoung.chang@samsung.com>  Wed, 15 Sep 2010 16:47:09 +0900
+
 cbhm (0.1.0-6) unstable; urgency=low
 
   * case of inhouse package
index 18bee42..2c84a84 100755 (executable)
@@ -65,6 +65,7 @@ clean:
        rm -rf install_manifest.txt
        rm -rf *.so
        rm -rf *.edj
+       rm -rf data/themes/*.edj
 
        rm -rf po/CMakeCache.txt
        rm -rf po/CMakeFiles
index 8fa9d88..a1165d7 100644 (file)
@@ -38,6 +38,7 @@ _image_click(void *data, Evas_Object *obj, void *event_info)
 
 static void _list_click( void *data, Evas_Object *obj, void *event_info )
 {
+       struct appdata *ad = data;
     Elm_List_Item *it = (Elm_List_Item *) elm_list_selected_item_get( obj );
        if (it == NULL)
                return;
@@ -55,6 +56,8 @@ static void _list_click( void *data, Evas_Object *obj, void *event_info )
        p = malloc(clen + 1);
        snprintf(p, clen, "%s", cpdata);
        elm_selection_set(1, obj, /*mark up*/1, p);
+
+       clipdrawer_hide_view(ad);
 }
 
 int clipdrawer_update_contents(void *data)
@@ -152,3 +155,11 @@ void clipdrawer_activate_view(void *data)
        if (ad->win_main)
                elm_win_activate(ad->win_main);
 }
+
+void clipdrawer_hide_view(void *data)
+{
+       struct appdata *ad = data;
+       
+       if (ad->win_main)
+               elm_win_lower(ad->win_main);
+}
index efd0e0c..13760df 100644 (file)
@@ -5,5 +5,6 @@ static int clipdrawer_init();
 int clipdrawer_update_contents(void *data);
 int clipdrawer_create_view();
 void clipdrawer_activate_view();
+void clipdrawer_hide_view(void *data);
 
 #endif // _clipdrawer_h_