front_vis = elm_flip_front_get(fl);
if (front_vis)
{
- front = elm_flip_content_front_get(fl);
back = elm_flip_content_back_get(fl);
elm_table_pack(holder, back, 0, 0, 1, 1);
evas_object_hide(back);
else
{
front = elm_flip_content_front_get(fl);
- back = elm_flip_content_back_get(fl);
elm_table_pack(holder, front, 0, 0, 1, 1);
evas_object_hide(front);
// elm_table_unpack(holder, wid); // this should NOT be needed - but in evas_table/elm_table
child_handler(int x, siginfo_t *info, void *data)
{
int status;
- pid_t pid;
-
- while ((pid = waitpid(-1, &status, WNOHANG)) > 0);
+ while (waitpid(-1, &status, WNOHANG) > 0);
}
static void
handle_run(int fd, unsigned long bytes)
{
unsigned char *buf = NULL;
- int i, num;
+ int i;
char **argv = NULL;
char *cwd;
int argc;
buf = alloca(bytes);
- if ((num = read(fd, buf, bytes)) < 0)
+ if (read(fd, buf, bytes) < 0)
{
close(fd);
return;
evas_object_data_del(data, "timer");
tb = evas_object_data_get(data, "tb");
sc = evas_object_data_get(data, "sc");
- mb = evas_object_data_get(data, "mb");
elm_object_scroll_freeze_push(sc);
evas_object_data_set(data, "dragging", (void *)(long)(1));
evas_object_color_set(data, 255, 255, 255, 255);
evas_object_data_del(obj, "dragging");
tb = evas_object_data_get(obj, "tb");
sc = evas_object_data_get(obj, "sc");
- mb = evas_object_data_get(data, "mb");
elm_object_scroll_freeze_pop(sc);
tbx = (int)(long)evas_object_data_get(obj, "tbx");
tby = (int)(long)evas_object_data_get(obj, "tby");
ly = evas_object_data_get(data, "ly");
ly2 = evas_object_data_get(data, "ly2");
sc = evas_object_data_get(data, "sc");
- mb = evas_object_data_get(data, "mb");
elm_object_scroll_freeze_push(sc);
evas_object_data_set(data, "dragging", (void *)(long)1);
evas_object_color_set(data, 255, 255, 255, 255);
evas_object_data_del(obj, "dragging");
ly = evas_object_data_get(obj, "ly");
sc = evas_object_data_get(obj, "sc");
- mb = evas_object_data_get(data, "mb");
elm_object_scroll_freeze_pop(sc);
slx = (int)(long)evas_object_data_get(obj, "slx");
sly = (int)(long)evas_object_data_get(obj, "sly");
else
{
m_clas = itc_parking;
- g_clas = itc_group_parking;
d = &data_parking;
}
Ecore_X_Atom *atomlist;
Evas_Object *top;
int i,j;
- int prio, selected;
targets = notify->data;
atomlist = (Ecore_X_Atom *)(targets->data.data);
- prio = -1;
- selected = -1;
/* Start from 1: Skip targets */
for (j = 1 ; j < CNP_N_ATOMS ; j ++)
{
wd->deferred_recalc_job = NULL;
evas_object_geometry_get(wd->ent, NULL, NULL, &resw, &resh);
resh = 0;
- minminw = 0;
edje_object_size_min_restricted_calc(wd->ent, &minw, &minh, 0, 0);
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
minminw = minw;
wd->show_item->block->w,
wd->show_item->h);
wd->show_item = NULL;
- showme = 0;
}
}
if (minw_change)
Evas_Coord x, y, w, h, bx, by, bw, bh, xx, yy;
double cdv = 0.5;
Evas_Coord dist;
- Eina_Bool change = EINA_FALSE;
char *label = NULL, *last = NULL;
int i;
if (!wd) return;
if (it_closest) it_closest->selected = 1;
if (it_closest != it_last)
{
- change = 1;
if (it_last)
{
const char *stacking, *selectraise;
wd->deferred_recalc_job = NULL;
evas_object_geometry_get(wd->lbl, NULL, NULL, &resw, &resh);
resh = 0;
- minminw = 0;
edje_object_size_min_restricted_calc(wd->lbl, &minw, &minh, 0, 0);
minminw = minw;
if (wd->wrap_w >= resw)
starttag = curlocater;
endtag = curlocater + strlen(key);
if ((!endtag) || (*endtag != '='))
- {
- foundflag = 0;
- return -1;
- }
+ return -1;
firstindex = abs(oldstring - curlocater);
firstindex += strlen(key) + 1; // strlen("key") + strlen("=")
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
- char *label, fontvalue[16];
+ char fontvalue[16];
int len;
if (!wd) return;
_elm_dangerous_call_check(__FUNCTION__);
len = strlen(wd->label);
if (len <= 0) return;
- label = alloca(sizeof(char) * (len + 32));
sprintf(fontvalue, "%i", fontsize);
if (_stringshare_key_value_replace(&wd->label, "font_size", fontvalue, 0) == 0)
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
- char *label, colorstring[16];
+ char colorstring[16];
int len;
if (!wd) return;
_elm_dangerous_call_check(__FUNCTION__);
len = strlen(wd->label);
if (len <= 0) return;
- label = alloca(sizeof(char) * (len + 32));
sprintf(colorstring, "#%02x%02x%02x%02x", r, g, b, a);
if (_stringshare_key_value_replace(&wd->label, "color", colorstring, 0) == 0)
selectraise = edje_object_data_get(it->base.view, "selectraise");
if ((selectraise) && (!strcmp(selectraise, "on")))
evas_object_raise(it->base.view);
- stacking = edje_object_data_get(it->base.view, "stacking");
}
it->fixed = EINA_TRUE;
it->is_even = it->even;
{
Widget_Data *wd = elm_widget_data_get(obj);
int x, y;
- Evas_Coord ox, oy, ow, oh, cvx, cvy, cvw, cvh, gw, gh, ax, ay, tx, ty;
+ Evas_Coord ox, oy, ow, oh, cvx, cvy, cvw, cvh, gw, gh, tx, ty;
if (!wd) return;
evas_object_geometry_get(wd->pan_smart, &ox, &oy, &ow, &oh);
evas_output_viewport_get(evas_object_evas_get(wd->obj), &cvx, &cvy, &cvw, &cvh);
- ax = 0;
- ay = 0;
gw = wd->size.w;
gh = wd->size.h;
- if (ow > gw) ax = (ow - gw) / 2;
- if (oh > gh) ay = (oh - gh) / 2;
for (y = 0; y < g->gh; y++)
{
for (x = 0; x < g->gw; x++)
yy = (gh * yy) / g->h;
hh = ((gh * (ty + hh)) / g->h) - yy;
}
-// xx += ax;
-// yy += ay;
if (ELM_RECTS_INTERSECT(xx - wd->pan_x + ox,
yy - wd->pan_y + oy,
ww, hh,
if (elm_widget_focus_jump(sd->resize_obj, forward))
return 1;
/* it returned 0 - it got to the last item and is past it */
- focus_next = 1;
}
}
}
if (maxh == -1) maxh = h;
else if ((h > 0) && (h < maxh)) maxh = h;
}
- if ((maxw >= 0) && (maxw < minw)) maxw = minw;
- if ((maxh >= 0) && (maxh < minh)) maxh = minh;
if (!xx) maxw = minw;
else maxw = 32767;
if (!xy) maxh = minh;
static void
_smart_extents_calculate(Evas_Object *box, Evas_Object_Box_Data *priv, int horizontal, int homogeneous)
{
- Evas_Coord minw, minh, maxw, maxh, mnw, mnh;
+ Evas_Coord minw, minh, mnw, mnh;
const Eina_List *l;
Evas_Object_Box_Option *opt;
/* FIXME: need to calc max */
minw = 0;
minh = 0;
- maxw = -1;
- maxh = -1;
if (homogeneous)
{
EINA_LIST_FOREACH(priv->children, l, opt)
_smart_scrollbar_bar_v_visibility_adjust(Smart_Data *sd)
{
int scroll_v_vis_change = 0;
- Evas_Coord w, h, vw, vh;
+ Evas_Coord h, vw, vh;
- w = sd->child.w;
h = sd->child.h;
evas_object_geometry_get(sd->pan_obj, NULL, NULL, &vw, &vh);
if (sd->vbar_visible)
_smart_scrollbar_bar_h_visibility_adjust(Smart_Data *sd)
{
int scroll_h_vis_change = 0;
- Evas_Coord w, h, vw, vh;
+ Evas_Coord w, vw, vh;
w = sd->child.w;
- h = sd->child.h;
evas_object_geometry_get(sd->pan_obj, NULL, NULL, &vw, &vh);
if (sd->hbar_visible)
{