summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2013-12-21 19:05:38 -0500
committerMike Blumenkrantz <zmike@samsung.com>2013-12-21 19:05:38 -0500
commit90c5b70582d86b9c63a27fc259649063072df25e (patch)
tree1920a04ae84c771e626c412b1e042898fe402c58
parent807b100fe0d0444bea998f2040f6cc9e5bde4e99 (diff)
IF THEY DO NOT SUPPORT EVAS LINE THEN WE SHALL COME USING EVAS RECTANGLE!
-rw-r--r--src/moveresize.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/moveresize.c b/src/moveresize.c
index eca4bf5..f77e1fa 100644
--- a/src/moveresize.c
+++ b/src/moveresize.c
@@ -61,7 +61,7 @@ move_x_update(E_Client *ec)
61 evas_object_clip_set(mr_line_x, zone->bg_clip_object); 61 evas_object_clip_set(mr_line_x, zone->bg_clip_object);
62 efx_reclip(mr_line_x); 62 efx_reclip(mr_line_x);
63 } 63 }
64 evas_object_line_xy_set(mr_line_x, ec->x, zone->y, ec->x, ec->y); 64 evas_object_geometry_set(mr_line_x, ec->x, zone->y, 1, zone->h);
65 65
66 if (zone->x == 0) 66 if (zone->x == 0)
67 snprintf(buf, sizeof(buf), "%d", ec->x); 67 snprintf(buf, sizeof(buf), "%d", ec->x);
@@ -87,7 +87,7 @@ move_y_update(E_Client *ec)
87 evas_object_clip_set(mr_line_y, zone->bg_clip_object); 87 evas_object_clip_set(mr_line_y, zone->bg_clip_object);
88 efx_reclip(mr_line_y); 88 efx_reclip(mr_line_y);
89 } 89 }
90 evas_object_line_xy_set(mr_line_y, zone->x, ec->y, ec->x, ec->y); 90 evas_object_geometry_set(mr_line_y, zone->x, ec->y, zone->w, 1);
91 91
92 if (zone->y == 0) 92 if (zone->y == 0)
93 snprintf(buf, sizeof(buf), "%d", ec->y); 93 snprintf(buf, sizeof(buf), "%d", ec->y);
@@ -167,11 +167,11 @@ resize_text_update(E_Client *ec)
167 zone2 = e_comp_zone_xy_get(ec->comp, ec->x + ec->w, ec->y); 167 zone2 = e_comp_zone_xy_get(ec->comp, ec->x + ec->w, ec->y);
168 if (!zone2) zone2 = ec->zone; 168 if (!zone2) zone2 = ec->zone;
169 if (zone1 == zone2) 169 if (zone1 == zone2)
170 x = zone1->x + zone1->w; 170 x = zone1->w;
171 else 171 else
172 x = zone2->x + zone2->w; 172 x = zone2->w;
173 /* top */ 173 /* top */
174 evas_object_line_xy_set(resize_rect[0], zone1->x, ec->y, x, ec->y); 174 evas_object_geometry_set(resize_rect[0], zone1->x, ec->y, x, 1);
175 } 175 }
176 176
177 if (resize_rect[1]) 177 if (resize_rect[1])
@@ -181,11 +181,11 @@ resize_text_update(E_Client *ec)
181 zone2 = e_comp_zone_xy_get(ec->comp, ec->x + ec->w, ec->y + ec->h); 181 zone2 = e_comp_zone_xy_get(ec->comp, ec->x + ec->w, ec->y + ec->h);
182 if (!zone2) zone2 = ec->zone; 182 if (!zone2) zone2 = ec->zone;
183 if (zone1 == zone2) 183 if (zone1 == zone2)
184 y = zone1->y + zone1->h; 184 y = zone1->h;
185 else 185 else
186 y = zone2->y + zone2->h; 186 y = zone2->h;
187 /* right */ 187 /* right */
188 evas_object_line_xy_set(resize_rect[1], ec->x + ec->w, zone1->y, ec->x + ec->w, y); 188 evas_object_geometry_set(resize_rect[1], ec->x + ec->w, zone1->y, 1, y);
189 } 189 }
190 190
191 if (resize_rect[2]) 191 if (resize_rect[2])
@@ -195,11 +195,11 @@ resize_text_update(E_Client *ec)
195 zone2 = e_comp_zone_xy_get(ec->comp, ec->x + ec->w, ec->y + ec->h); 195 zone2 = e_comp_zone_xy_get(ec->comp, ec->x + ec->w, ec->y + ec->h);
196 if (!zone2) zone2 = ec->zone; 196 if (!zone2) zone2 = ec->zone;
197 if (zone1 == zone2) 197 if (zone1 == zone2)
198 x = zone1->x + zone1->w; 198 x = zone1->w;
199 else 199 else
200 x = zone2->x + zone2->w; 200 x = zone2->w;
201 /* bottom */ 201 /* bottom */
202 evas_object_line_xy_set(resize_rect[2], zone1->x, ec->y + ec->h, x, ec->y + ec->h); 202 evas_object_geometry_set(resize_rect[2], zone1->x, ec->y + ec->h, x, 1);
203 } 203 }
204 204
205 if (resize_rect[3]) 205 if (resize_rect[3])
@@ -209,11 +209,11 @@ resize_text_update(E_Client *ec)
209 zone2 = e_comp_zone_xy_get(ec->comp, ec->x, ec->y + ec->h); 209 zone2 = e_comp_zone_xy_get(ec->comp, ec->x, ec->y + ec->h);
210 if (!zone2) zone2 = ec->zone; 210 if (!zone2) zone2 = ec->zone;
211 if (zone1 == zone2) 211 if (zone1 == zone2)
212 y = zone1->y + zone1->h; 212 y = zone1->h;
213 else 213 else
214 y = zone2->y + zone2->h; 214 y = zone2->h;
215 /* left */ 215 /* left */
216 evas_object_line_xy_set(resize_rect[3], ec->x, zone1->y, ec->x, y); 216 evas_object_geometry_set(resize_rect[3], ec->x, zone1->y, 1, y);
217 } 217 }
218} 218}
219 219
@@ -234,7 +234,7 @@ line_add(Evas *e)
234{ 234{
235 Evas_Object *o; 235 Evas_Object *o;
236 236
237 o = evas_object_line_add(e); 237 o = evas_object_rectangle_add(e);
238 evas_object_layer_set(o, E_LAYER_MENU + 2); 238 evas_object_layer_set(o, E_LAYER_MENU + 2);
239 evas_object_color_set(o, 51, 153, 255, 255); 239 evas_object_color_set(o, 51, 153, 255, 255);
240 evas_object_show(o); 240 evas_object_show(o);