Fixed prevent issues
[apps/core/preloaded/quickpanel.git] / daemon / notifications / noti_gridbox.c
index c44f55b..fbd2457 100755 (executable)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2012  Samsung Electronics Co., Ltd
  *
- * Licensed under the Flora License, Version 1.0 (the License);
+ * Licensed under the Flora License, Version 1.1 (the License);
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
@@ -38,8 +38,8 @@ typedef struct _gridbox_info_layout {
        int padding_between;
        int child_w;
        int child_h;
-       int limit_w;
        double scale;
+       int limit_w;
 } gridbox_info_layout;
 
 typedef struct _gridbox_info_animation {
@@ -104,9 +104,6 @@ static void _gridbox_layout(Evas_Object *o, Evas_Object_Box_Data *priv,
        //box geometry
        evas_object_geometry_get(o, &x, &y, &w, &h);
 
-       //set info about children
-       opt = eina_list_data_get(priv->children);
-
        num_padding_between = info_layout->n_per_rows / 2;
        num_padding_between += (info_layout->n_per_rows > 1 && (info_layout->n_per_rows % 2) > 0) ? 1 : 0;
 
@@ -115,7 +112,7 @@ static void _gridbox_layout(Evas_Object *o, Evas_Object_Box_Data *priv,
 
        info_layout->child_w = child_w;
 
-       DBG("grid layout children:%d %d", info_layout->child_w, info_layout->child_h);
+       DBG("grid layout children pos:%d %d", info_layout->child_w, info_layout->child_h);
 
        int order_children = 1;
        EINA_LIST_FOREACH_SAFE(priv->children, l, l_next, opt)