elm test_photo.c: Fixed indentations. Applied coding conventions.
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 9 Aug 2011 06:43:09 +0000 (06:43 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 9 Aug 2011 06:43:09 +0000 (06:43 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@62226 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/test_photo.c

index 5077a56..7332721 100644 (file)
@@ -17,14 +17,14 @@ test_photo(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    const char *img[9] =
      {
         "panel_01.jpg",
    const char *img[9] =
      {
         "panel_01.jpg",
-          "mystrale.jpg",
-          "mystrale_2.jpg",
-          "rock_02.jpg",
-          "sky_01.jpg",
-          "sky_02.jpg",
-          "sky_03.jpg",
-          "sky_04.jpg",
-          "wood_01.jpg"
+        "mystrale.jpg",
+        "mystrale_2.jpg",
+        "rock_02.jpg",
+        "sky_01.jpg",
+        "sky_02.jpg",
+        "sky_03.jpg",
+        "sky_04.jpg",
+        "wood_01.jpg"
      };
 
    win = elm_win_add(NULL, "photo", ELM_WIN_BASIC);
      };
 
    win = elm_win_add(NULL, "photo", ELM_WIN_BASIC);
@@ -51,12 +51,12 @@ test_photo(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
              if (n >= 9) n = 0;
              elm_photo_size_set(ph, 80);
              elm_photo_file_set(ph, buf);
              if (n >= 9) n = 0;
              elm_photo_size_set(ph, 80);
              elm_photo_file_set(ph, buf);
-            elm_photo_editable_set(ph, 1);
+             elm_photo_editable_set(ph, 1);
              evas_object_size_hint_weight_set(ph, EVAS_HINT_EXPAND,
                                               EVAS_HINT_EXPAND);
              evas_object_size_hint_align_set(ph, EVAS_HINT_FILL,
                                              EVAS_HINT_FILL);
              evas_object_size_hint_weight_set(ph, EVAS_HINT_EXPAND,
                                               EVAS_HINT_EXPAND);
              evas_object_size_hint_align_set(ph, EVAS_HINT_FILL,
                                              EVAS_HINT_FILL);
-            evas_object_smart_callback_add(ph, "drop",
+             evas_object_smart_callback_add(ph, "drop",
                                             drop_cb, NULL);
              evas_object_smart_callback_add(ph, "drag,start",
                                             drag_start_cb, NULL);
                                             drop_cb, NULL);
              evas_object_smart_callback_add(ph, "drag,start",
                                             drag_start_cb, NULL);
@@ -64,8 +64,8 @@ test_photo(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
                                             drag_stop_cb, NULL);
 
              if((n == 2) || (n == 3)) {
                                             drag_stop_cb, NULL);
 
              if((n == 2) || (n == 3)) {
-                elm_photo_fill_inside_set(ph, EINA_TRUE);
-                elm_object_style_set(ph, "shadow");
+                  elm_photo_fill_inside_set(ph, EINA_TRUE);
+                  elm_object_style_set(ph, "shadow");
              }
              elm_table_pack(tb, ph, i, j, 1, 1);
              evas_object_show(ph);
              }
              elm_table_pack(tb, ph, i, j, 1, 1);
              evas_object_show(ph);
@@ -87,7 +87,7 @@ test_photo(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
 /* Never called, elm_photo never call "drop" smart cb */
 static void
 drop_cb(void *mydata __UNUSED__, Evas_Object *obj, void *evdata __UNUSED__){
 /* Never called, elm_photo never call "drop" smart cb */
 static void
 drop_cb(void *mydata __UNUSED__, Evas_Object *obj, void *evdata __UNUSED__){
-   printf("Drop on obj %p\n", obj);
+     printf("Drop on obj %p\n", obj);
 }
 
 static void
 }
 
 static void