return;
}
close(fd);
-
+
argc = ((unsigned long *)(buf))[0];
envnum = ((unsigned long *)(buf))[1];
CRITICAL("no executable specified");
return;
}
-
+
argv = alloca(argc * sizeof(char *));
if (envnum > 0) envir = alloca(envnum * sizeof(char *));
off = ((unsigned long *)(buf))[2 + argc + envnum] - sizeof(unsigned long);
len = sizeof(struct sockaddr_un);
fd = accept(sock, (struct sockaddr *)&client, &len);
elm_quicklaunch_sub_init(argc, argv);
-// don't seed since we are doing this AFTER launch request
+// don't seed since we are doing this AFTER launch request
// elm_quicklaunch_seed();
if (fd >= 0)
{
sargc = argc - 1;
sargv = &(argv[1]);
}
-
+
slen = 0;
envnum = 0;
-
+
// header:
// UL 'total bytes'
// UL 'argnum'
// UL 'envnum'
slen += sizeof(unsigned long) * 3;
-
+
for (i = 0; i < sargc; i++)
{
slen += sizeof(unsigned long);
slen += strlen(sargv[i]) + 1;
}
-
+
#ifdef HAVE_ENVIRON
// count how much space is needed for environment
for (i = 0; environ[i]; i++)
// allocate buffer on stack
sbuf = alloca(slen);
-
+
// fill in header
((unsigned long *)(sbuf))[0] = slen - sizeof(unsigned long);
((unsigned long *)(sbuf))[1] = sargc;
pos += strlen(sargv[i]) + 1;
n++;
}
-
+
#ifdef HAVE_ENVIRON
// fill in environ
for (i = 0; environ[i]; i++)
((unsigned long *)(sbuf))[n] = (unsigned long)pos - (unsigned long)sbuf;
n++;
strcpy((char *)pos, cwd);
-
+
if (write(sock, sbuf, slen) < 0)
printf("elementary_quicklaunch: cannot write to socket '%s'\n", buf);
close(sock);
Evas_Object *o_bg = data;
int size;
size = elm_radio_value_get((Evas_Object *)obj);
- elm_bg_load_size_set(o_bg, size, size);
+ elm_bg_load_size_set(o_bg, size, size);
}
static void
elm_box_pack_end(bx, bt);
evas_object_show(bt);
evas_object_show(ic);
-
+
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_image_file_set(ic, buf, NULL);
elm_object_disabled_set(bt1, EINA_FALSE);
elm_object_disabled_set(bt2, EINA_FALSE);
elm_object_disabled_set(bt3, EINA_FALSE);
-
+
return ECORE_CALLBACK_CANCEL;
}
tb_it = elm_toolbar_item_append(tbar, "document-print", "Hello", _tb_sel, NULL);
elm_object_item_disabled_set(tb_it, EINA_TRUE);
elm_toolbar_item_priority_set(tb_it, 100);
-
+
tb_it = elm_toolbar_item_append(tbar, "folder-new", "World", _tb_sel, NULL);
elm_toolbar_item_priority_set(tb_it, -100);
-
+
tb_it = elm_toolbar_item_append(tbar, "object-rotate-right", "H", _tb_sel, NULL);
elm_toolbar_item_priority_set(tb_it, 150);
-
+
tb_it = elm_toolbar_item_append(tbar, "mail-send", "Comes", _tb_sel, NULL);
elm_toolbar_item_priority_set(tb_it, 0);
-
+
tb_it = elm_toolbar_item_append(tbar, "clock", "Elementary", _tb_sel, NULL);
elm_toolbar_item_priority_set(tb_it, -200);
-
+
tb_it = elm_toolbar_item_append(tbar, "refresh", "Menu", NULL, NULL);
elm_toolbar_item_menu_set(tb_it, EINA_TRUE);
elm_toolbar_item_priority_set(tb_it, -9999);
elm_toolbar_menu_parent_set(tbar, win);
menu = elm_toolbar_item_menu_get(tb_it);
-
+
elm_menu_item_add(menu, NULL, "edit-cut", "Shrink", _tb_sel, NULL);
menu_it = elm_menu_item_add(menu, NULL, "edit-copy", "Mode", _tb_sel, NULL);
elm_menu_item_add(menu, menu_it, "edit-paste", "is set to", _tb_sel, NULL);
elm_menu_item_add(menu, NULL, "edit-delete", "Menu", _tb_sel, NULL);
-
+
elm_box_pack_end(tbx, tbar);
evas_object_show(tbar);
-
+
Evas_Object *mainbx = elm_box_add(win);
elm_box_horizontal_set(mainbx, EINA_TRUE);
evas_object_size_hint_weight_set(mainbx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
int i;
if (!obj) return;
-
+
elm_genlist_clear(obj);
check = evas_object_data_get(obj, "check");
elm_genlist_mode_set(obj, ELM_LIST_COMPRESS);
else
elm_genlist_mode_set(obj, ELM_LIST_SCROLL);
-
+
ic = elm_genlist_item_class_new();
ic->item_style = style;
ic->func.text_get = gl_text_get;
_genlist_renew(gl, "default");
elm_box_pack_end(box, gl);
evas_object_show(gl);
-
+
check = elm_check_add(win);
elm_object_text_set(check, "Compress");
elm_box_pack_end(box, check);
elm_box_pack_end(bx0, bt);
evas_object_show(bt);
evas_object_smart_callback_add(bt, "clicked", _on_done, win);
-
+
bx = elm_box_add(win);
evas_object_size_hint_align_set(bx, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_box_pack_end(bx0, bt);
evas_object_show(bt);
evas_object_smart_callback_add(bt, "clicked", _on_indirect, gl);
-
+
evas_object_resize(win, 320, 480);
evas_object_show(win);
}
evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(tb, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(tb);
-
+
gl = elm_genlist_add(win);
evas_object_size_hint_weight_set(gl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(gl, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(bt);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-
+
ck = elm_check_add(win);
elm_object_text_set(ck, "Omit mode : ");
layout);
elm_prefs_autosave_set(prefs, EINA_TRUE);
-
+
prefs_data =
elm_prefs_data_new("./test_prefs.cfg", NULL, EET_FILE_MODE_READ_WRITE);
{
const struct exp_mode *em = exp_modes + i;
- //segment control
+ //segment control
sc = elm_segment_control_add(bx);
evas_object_size_hint_weight_set(sc, em->weight.w, em->weight.h);
evas_object_size_hint_align_set(sc, em->align.x, em->align.y);
evas_object_show(sc);
elm_box_pack_end(bx, sc);
- //segment control 2
+ //segment control 2
sc = elm_segment_control_add(bx);
evas_object_size_hint_weight_set(sc, em->weight.w, em->weight.h);
evas_object_size_hint_align_set(sc, em->align.x, em->align.y);
evas_object_show(sc);
elm_box_pack_end(bx, sc);
- //segment control 4 (text only disabled)
+ //segment control 4 (text only disabled)
sc = elm_segment_control_add(bx);
evas_object_size_hint_weight_set(sc, em->weight.w, em->weight.h);
evas_object_size_hint_align_set(sc, em->align.x, em->align.y);
evas_object_size_hint_align_set(bt, 0.5, 0.1);
elm_table_pack(tb, bt, 0, 0, 1, 1);
evas_object_show(bt);
-
+
evas_object_resize(win, 800, 500);
evas_object_show(win);
}
cb_mouse_down(void *data EINA_UNUSED, Evas *evas EINA_UNUSED, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Down *ev = event_info;
-
+
if (ev->button == 1) elm_object_focus_set(obj, EINA_TRUE);
}
edje_object_size_min_calc(sd->end, &w_label_count, NULL);
elm_coords_finger_size_adjust(1, &w_label_count, 1, NULL);
}
-
+
if ((w < 0) || (w < w_label_count))
{
elm_box_unpack(sd->box, item->button);
evas_object_hide(item->button);
item->visible = EINA_FALSE;
-
+
count++;
snprintf(buf, sizeof(buf), "... + %d", count);
edje_object_part_text_escaped_set(sd->end, "elm.text", buf);
(sd->end, w_label_count, h);
elm_box_pack_end(sd->box, sd->end);
evas_object_show(sd->end);
-
+
sd->view_state = MULTIBUTTONENTRY_VIEW_SHRINK;
evas_object_smart_callback_call
(obj, SIG_EXPAND_STATE_CHANGED, (void *)1);
size_str = edje_object_data_get(btn, "button_max_size");
if (size_str) button_max_width = atoi(size_str);
-
+
button_max_width *= elm_widget_scale_get(obj) * elm_config_scale_get();
// decide the size of button
{
ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(obj, sd);
Evas_Object *po;
-
+
po = (Evas_Object *)edje_object_part_object_get(sd->label, "elm.text");
if (is_access)
{
if (ret) *ret = EINA_TRUE;
//FIXME: Replace this below code to elm_naviframe_item_pop() at elm 2.0.
- ///Leave for compatibility.
+ ///Leave for compatibility.
if (it->title_prev_btn)
evas_object_smart_callback_call(it->title_prev_btn, SIG_CLICKED, NULL);
}
length = elm_video_play_length_get(sd->video);
pos = elm_video_play_position_get(sd->video);
- elm_object_disabled_set(sd->slider,
+ elm_object_disabled_set(sd->slider,
(!seekable) | elm_widget_disabled_get(data));
elm_slider_min_max_set(sd->slider, 0, length);
if ((elm_slider_value_get(sd->slider) != pos) &&
void *event_info __UNUSED__)
{
ELM_PLAYER_DATA_GET(data, sd);
-
+
elm_layout_signal_emit(data, "elm,button,eject", "elm");
emotion_object_eject(elm_video_emotion_get(sd->video));
evas_object_smart_callback_call(data, SIG_EJECT_CLICKED, NULL);
_mute_toggle(Evas_Object *obj)
{
ELM_PLAYER_DATA_GET(obj, sd);
-
+
if (!elm_video_audio_mute_get(sd->video))
{
elm_video_audio_mute_set(sd->video, EINA_TRUE);
Evas_Object *ic;
Evas_Object *bt;
char buf[256];
-
+
ic = elm_icon_add(obj);
snprintf(buf, sizeof(buf), "media_player/%s/%s", name,
elm_widget_style_get(obj));
elm_widget_mirrored_automatic_set(bt, EINA_FALSE);
elm_object_content_set(bt, ic);
evas_object_show(ic);
-
+
snprintf(buf, sizeof(buf), "media_player/%s/%s", name,
elm_widget_style_get(obj));
elm_object_style_set(bt, buf);
if (part && strcmp(part, "video"))
{
- eo_do_super(obj, MY_CLASS,
+ eo_do_super(obj, MY_CLASS,
elm_obj_container_content_set(part, content, &int_ret));
if (ret) *ret = int_ret;
return;
}
if ((!part) || (!strcmp(part, "video"))) part = "elm.swallow.content";
- eo_do_super(obj, MY_CLASS,
+ eo_do_super(obj, MY_CLASS,
elm_obj_container_content_set(part, content, &int_ret));
if (ret) *ret = int_ret;
-
+
if (!_elm_video_check(content)) return;
if (sd->video == content) goto end;
elm_object_disabled_set(sd->slider, !seekable);
elm_slider_min_max_set(sd->slider, 0, length);
elm_slider_value_set(sd->slider, pos);
-
+
elm_slider_value_set(sd->vslider,
elm_video_audio_level_get(sd->video) * 100.0);
// XXX: get mute
Evas_Coord minw = -1, minh = -1;
Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
-
+
// 7x8 (1 month+year, days, 6 dates.)
elm_coords_finger_size_adjust(7, &minw, 8, &minh);
edje_object_size_min_restricted_calc
_set_headers(obj);
_populate(obj);
- elm_layout_thaw(obj);
+ elm_layout_thaw(obj);
}
static void
static void _x11_elm_cnp_selection_loss_callback_set(Evas_Object *obj __UNUSED__, Elm_Sel_Type selection, Elm_Selection_Loss_Cb func, const void *data);
static Eina_Bool _x11_elm_object_cnp_selection_clear (Evas_Object *obj, Elm_Sel_Type selection);
static Eina_Bool _x11_elm_cnp_selection_get (Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Format format, Elm_Drop_Cb datacb, void *udata);
-static Eina_Bool _x11_elm_drop_target_add (Evas_Object *obj, Elm_Sel_Format format,
+static Eina_Bool _x11_elm_drop_target_add (Evas_Object *obj, Elm_Sel_Format format,
Elm_Drag_State entercb, void *enterdata,
Elm_Drag_State leavecb, void *leavedata,
Elm_Drag_Pos poscb, void *posdata,
_x11_notify_handler_image,/* Raw image data is the same */
0
},
-/*
+/*
[CNP_ATOM_text_html_utf8] = {
"text/html;charset=utf-8",
ELM_SEL_FORMAT_HTML,
_x11_sel_obj_del2, sel);
sel->widget = NULL;
sel->requestwidget = NULL;
-
+
sel->active = EINA_FALSE;
sel->widget = NULL;
ELM_SAFE_FREE(sel->selbuf, free);
return ECORE_CALLBACK_PASS_ON;
}
cnp_debug("Target is %s\n", ev->target);
-
+
for (i = 0; i < CNP_N_ATOMS; i++)
{
if (!strcmp(ev->target, _x11_atoms[i].name))
free(stripstr);
free(mkupstr);
}
-end:
+end:
if (sel == (_x11_selections + ELM_SEL_TYPE_XDND))
ecore_x_dnd_send_finished();
return 0;
if (data->content == ECORE_X_SELECTION_CONTENT_FILES)
{
int i, len = 0;
-
+
cnp_debug("got a files list\n");
files = notify->data;
/*
{
Eina_List *l;
Dropable *dropable;
-
+
if (!drops) return NULL;
EINA_LIST_FOREACH(drops, l, dropable)
{
Eina_List *l;
Dropable *dropable;
Evas_Coord x, y, w, h;
-
+
if (!drops) return NULL;
EINA_LIST_FOREACH(drops, l, dropable)
{
_x11_dnd_dropable_handle(Dropable *dropable, Evas_Coord x, Evas_Coord y, Eina_Bool have_obj, Elm_Xdnd_Action action)
{
Dropable *dropable_last = NULL;
-
+
if (dropable->last.in)
dropable_last = _x11_dropable_geom_find
- (_x11_elm_widget_xwin_get(dropable->obj),
+ (_x11_elm_widget_xwin_get(dropable->obj),
dropable->last.x, dropable->last.y);
if ((have_obj) && (dropable_last == dropable)) // same
{
Ecore_X_Rectangle rect = { 0, 0, 0, 0 };
Dropable *dropable, *dropable_old;
Elm_Xdnd_Action act;
-
+
/* Need to send a status back */
/* FIXME: Should check I can drop here */
/* FIXME: Should highlight widget */
if (dropable)
{
Evas_Coord x, y, ox = 0, oy = 0, ow = 0, oh = 0;
-
+
x = pos->position.x;
y = pos->position.y;
_x11_dropable_coords_adjust(dropable, &x, &y);
rect.height = oh;
ecore_x_dnd_send_status(EINA_TRUE, EINA_FALSE, rect, pos->action);
cnp_debug("dnd position %i %i %p\n", x - ox, y - oy, dropable);
- _x11_dnd_dropable_handle(dropable, x - ox, y - oy, EINA_TRUE,
+ _x11_dnd_dropable_handle(dropable, x - ox, y - oy, EINA_TRUE,
act);
// CCCCCCC: call dnd exit on last obj if obj != last
// CCCCCCC: call drop position on obj
{
ecore_x_dnd_send_status(EINA_FALSE, EINA_FALSE, rect, pos->action);
cnp_debug("dnd position not in obj\n");
- _x11_dnd_dropable_handle(dropable_old, 0, 0, EINA_FALSE,
+ _x11_dnd_dropable_handle(dropable_old, 0, 0, EINA_FALSE,
act);
// CCCCCCC: call dnd exit on last obj
_x11_dropable_all_set(pos->win, x, y, EINA_TRUE);
cnp_debug("0x%x\n", drop->win);
act = _x11_dnd_action_map(drop->action);
-
+
if (i == CNP_ATOM_text_urilist)
{
cnp_debug("We found a URI... (%scached) %s\n",
if (savedtypes.imgfile)
{
char *entrytag;
- static const char *tagstring =
+ static const char *tagstring =
"<item absize=240x180 href=file://%s></item>";
ddata.x = savedtypes.x;
ddata.y = savedtypes.y;
evas_object_event_callback_del_full(sel->widget, EVAS_CALLBACK_DEL,
_x11_sel_obj_del, sel);
sel->widget = NULL;
-
+
sel->active = EINA_TRUE;
sel->widget = obj;
sel->xwin = xwin;
evas_object_event_callback_add
(sel->widget, EVAS_CALLBACK_DEL, _x11_sel_obj_del, sel);
-
+
if (selbuf)
{
if (format == ELM_SEL_FORMAT_IMAGE)
_x11_elm_cnp_selection_loss_callback_set(Evas_Object *obj __UNUSED__, Elm_Sel_Type selection, Elm_Selection_Loss_Cb func, const void *data)
{
X11_Cnp_Selection *sel;
-
+
_x11_elm_cnp_init();
sel = _x11_selections + selection;
sel->loss_cb = func;
X11_Cnp_Selection *sel;
_x11_elm_cnp_init();
-
+
sel = _x11_selections + selection;
/* No longer this selection: Consider it gone! */
sel->requestwidget = NULL;
sel->loss_cb = NULL;
sel->loss_data = NULL;
-
+
sel->active = EINA_FALSE;
ELM_SAFE_FREE(sel->selbuf, free);
sel->clear();
X11_Cnp_Selection *sel;
_x11_elm_cnp_init();
-
+
sel = _x11_selections + selection;
if (sel->requestwidget)
evas_object_event_callback_del_full(sel->requestwidget, EVAS_CALLBACK_DEL,
_x11_sel_obj_del2, sel);
sel->requestwidget = NULL;
-
+
sel->requestformat = format;
sel->requestwidget = obj;
sel->xwin = xwin;
evas_object_event_callback_add
(sel->requestwidget, EVAS_CALLBACK_DEL, _x11_sel_obj_del2, sel);
-
+
return EINA_TRUE;
}
Eina_List *item, *l;
int first;
Eina_Bool have_drops = EINA_FALSE;
-
+
_x11_elm_cnp_init();
/* TODO: check if obj is already a drop target. Do not add twice! */
(Evas_Object_Event_Cb)elm_drop_target_del,
obj);
if (!have_drops) ecore_x_dnd_aware_set(xwin, EINA_TRUE);
-
+
/* TODO BUG: should handle dnd-aware per window, not just the first
* window that requested it! */
/* If not the first: We're done */
Eina_Bool have_drops = EINA_FALSE;
_x11_elm_cnp_init();
-
+
del = NULL;
EINA_LIST_FOREACH(drops, item, drop)
{
evas_object_event_callback_del(obj, EVAS_CALLBACK_FREE,
(Evas_Object_Event_Cb)elm_drop_target_del);
if (del) free(del);
-
+
/* TODO BUG: we should handle dnd-aware per window, not just the last that reelased it */
/* If still drops there: All fine.. continue */
_x11_elm_drag_action_set(Evas_Object *obj, Elm_Xdnd_Action action)
{
Ecore_X_Atom actx;
-
+
_x11_elm_cnp_init();
if (!dragwin) return EINA_FALSE;
-
+
if (dragwidget != obj) return EINA_FALSE;
if (dragaction == action) return EINA_TRUE;
dragaction = action;
if (sel->requestwidget == obj) sel->requestwidget = NULL;
}
-static Eina_Bool
+static Eina_Bool
_wl_elm_cnp_selection_set(Evas_Object *obj __UNUSED__, Elm_Sel_Type selection, Elm_Sel_Format format __UNUSED__, const void *selbuf, size_t buflen)
{
const char *types[10] = {0, };
_wl_elm_cnp_init();
/* TODO: other EML_SEL_TYPE and ELM_SEL_FORMAT */
- if (ELM_SEL_TYPE_CLIPBOARD == selection)
+ if (ELM_SEL_TYPE_CLIPBOARD == selection)
{
types[0] = "text/plain;charset=utf-8";
ecore_wl_dnd_selection_set(ecore_wl_input_get(), types);
return EINA_FALSE;
}
-static Eina_Bool
+static Eina_Bool
_wl_elm_cnp_selection_get(Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Format format __UNUSED__, Elm_Drop_Cb datacb __UNUSED__, void *udata __UNUSED__)
{
_wl_elm_cnp_init();
wl_cnp_selection.requestwidget = obj;
evas_object_event_callback_add(wl_cnp_selection.requestwidget, EVAS_CALLBACK_DEL,
_wl_sel_obj_del2, &wl_cnp_selection);
- ecore_wl_dnd_selection_get(ecore_wl_input_get(),
+ ecore_wl_dnd_selection_get(ecore_wl_input_get(),
"text/plain;charset=utf-8");
}
return EINA_TRUE;
}
-static Eina_Bool
+static Eina_Bool
_wl_elm_cnp_selection_clear(Evas_Object *obj EINA_UNUSED, Elm_Sel_Type selection)
{
_wl_elm_cnp_init();
- if (ELM_SEL_TYPE_CLIPBOARD == selection)
+ if (ELM_SEL_TYPE_CLIPBOARD == selection)
{
wl_cnp_selection.requestwidget = NULL;
if (wl_cnp_selection.selbuf) free(wl_cnp_selection.selbuf);
return ECORE_CALLBACK_PASS_ON;
}
-static Eina_Bool
+static Eina_Bool
_wl_elm_cnp_init(void)
{
static int _init_count = 0;
if (_init_count > 0) return EINA_TRUE;
_init_count++;
- ecore_event_handler_add(ECORE_WL_EVENT_DATA_SOURCE_SEND,
+ ecore_event_handler_add(ECORE_WL_EVENT_DATA_SOURCE_SEND,
_wl_selection_send, &wl_cnp_selection);
- ecore_event_handler_add(ECORE_WL_EVENT_SELECTION_DATA_READY,
+ ecore_event_handler_add(ECORE_WL_EVENT_SELECTION_DATA_READY,
_wl_selection_receive, &wl_cnp_selection);
return EINA_TRUE;
}
-static Eina_Bool
+static Eina_Bool
_wl_elm_dnd_init(void)
{
static int _init_count = 0;
text_uri = eina_stringshare_add("text/uri-list");
- ecore_event_handler_add(ECORE_WL_EVENT_DATA_SOURCE_SEND,
+ ecore_event_handler_add(ECORE_WL_EVENT_DATA_SOURCE_SEND,
_wl_dnd_send, &wl_cnp_selection);
- ecore_event_handler_add(ECORE_WL_EVENT_SELECTION_DATA_READY,
+ ecore_event_handler_add(ECORE_WL_EVENT_SELECTION_DATA_READY,
_wl_dnd_receive, &wl_cnp_selection);
- ecore_event_handler_add(ECORE_WL_EVENT_DND_END,
+ ecore_event_handler_add(ECORE_WL_EVENT_DND_END,
_wl_dnd_end, &wl_cnp_selection);
return EINA_TRUE;
}
-static Eina_Bool
+static Eina_Bool
_wl_elm_drop_target_add(Evas_Object *obj, Elm_Sel_Format format, Elm_Drag_State entercb, void *enterdata, Elm_Drag_State leavecb, void *leavedata, Elm_Drag_Pos poscb, void *posdata, Elm_Drop_Cb dropcb, void *cbdata)
{
Dropable *drop;
}
}
- if (!(drop = calloc(1, sizeof(Dropable))))
+ if (!(drop = calloc(1, sizeof(Dropable))))
return EINA_FALSE;
if (!(drops = eina_list_append(drops, drop)))
if (first)
{
- handler_enter =
- ecore_event_handler_add(ECORE_WL_EVENT_DND_ENTER,
+ handler_enter =
+ ecore_event_handler_add(ECORE_WL_EVENT_DND_ENTER,
_wl_dnd_enter, NULL);
- handler_leave =
- ecore_event_handler_add(ECORE_WL_EVENT_DND_LEAVE,
+ handler_leave =
+ ecore_event_handler_add(ECORE_WL_EVENT_DND_LEAVE,
_wl_dnd_leave, NULL);
- handler_pos =
- ecore_event_handler_add(ECORE_WL_EVENT_DND_POSITION,
+ handler_pos =
+ ecore_event_handler_add(ECORE_WL_EVENT_DND_POSITION,
_wl_dnd_position, NULL);
- handler_drop =
- ecore_event_handler_add(ECORE_WL_EVENT_DND_DROP,
+ handler_drop =
+ ecore_event_handler_add(ECORE_WL_EVENT_DND_DROP,
_wl_dnd_drop, NULL);
}
return EINA_TRUE;
}
-static Eina_Bool
+static Eina_Bool
_wl_elm_drop_target_del(Evas_Object *obj)
{
Dropable *drop;
return EINA_TRUE;
}
-static Eina_Bool
+static Eina_Bool
_wl_elm_drag_action_set(Evas_Object *obj, Elm_Xdnd_Action action)
{
if (!dragwin) return EINA_FALSE;
wl_cnp_selection.buflen = strlen(wl_cnp_selection.selbuf);
/* setup callback to notify if this object gets deleted */
- evas_object_event_callback_add(obj, EVAS_CALLBACK_DEL,
+ evas_object_event_callback_add(obj, EVAS_CALLBACK_DEL,
_wl_drag_source_del, obj);
dragwidget = obj;
elm_win_borderless_set(dragwin, EINA_TRUE);
elm_win_override_set(dragwin, EINA_TRUE);
- ecore_wl_window_type_set(elm_win_wl_window_get(dragwin),
+ ecore_wl_window_type_set(elm_win_wl_window_get(dragwin),
ECORE_WL_WINDOW_TYPE_DND);
if (createicon)
else
{
icon = elm_icon_add(dragwin);
- evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND,
+ evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND,
EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, EVAS_HINT_FILL);
}
ecore_wl_dnd_drag_start(ecore_wl_input_get(),
elm_win_wl_window_get(obj),
- elm_win_wl_window_get(dragwin),
+ elm_win_wl_window_get(dragwin),
x3, y3, w, h);
return EINA_TRUE;
}
-static void
+static void
_wl_drag_source_del(void *data EINA_UNUSED, Evas *evas EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED)
{
if (dragwidget == obj)
dragwidget = NULL;
}
-static Eina_Bool
+static Eina_Bool
_wl_dnd_enter(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
{
Ecore_Wl_Event_Dnd_Enter *ev;
return ECORE_CALLBACK_PASS_ON;
}
-static Eina_Bool
+static Eina_Bool
_wl_dnd_leave(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
{
Ecore_Wl_Event_Dnd_Leave *ev;
return ECORE_CALLBACK_PASS_ON;
}
-static Eina_Bool
+static Eina_Bool
_wl_dnd_position(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
{
Ecore_Wl_Event_Dnd_Position *ev;
{
case ELM_SEL_FORMAT_TARGETS:
case ELM_SEL_FORMAT_IMAGE:
- if ((!strncmp(savedtypes.types[i], "text/uri", 8)) ||
+ if ((!strncmp(savedtypes.types[i], "text/uri", 8)) ||
(!strncmp(savedtypes.types[i], "image/", 6)))
{
wl_cnp_selection.requestwidget = drop->obj;
return ECORE_CALLBACK_PASS_ON;
}
-static Eina_Bool
+static Eina_Bool
_wl_dnd_drop(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
{
Ecore_Wl_Event_Dnd_Drop *ev;
ev = event;
- if (!(drop = _wl_dropable_find(ev->win)))
+ if (!(drop = _wl_dropable_find(ev->win)))
return ECORE_CALLBACK_PASS_ON;
savedtypes.x = ev->position.x;
for (i = 0; i < savedtypes.ntypes; i++)
{
- if ((savedtypes.types[i] == text_uri) &&
- ((drop->types & ELM_SEL_FORMAT_MARKUP) ||
+ if ((savedtypes.types[i] == text_uri) &&
+ ((drop->types & ELM_SEL_FORMAT_MARKUP) ||
(drop->types & ELM_SEL_FORMAT_IMAGE)))
{
wl_cnp_selection.requestwidget = drop->obj;
- evas_object_event_callback_add(wl_cnp_selection.requestwidget,
+ evas_object_event_callback_add(wl_cnp_selection.requestwidget,
EVAS_CALLBACK_DEL,
- _wl_sel_obj_del2,
+ _wl_sel_obj_del2,
&wl_cnp_selection);
ecore_wl_dnd_drag_get(ecore_wl_input_get(), text_uri);
break;
return ECORE_CALLBACK_PASS_ON;
}
-static Eina_Bool
+static Eina_Bool
_wl_dnd_send(void *data, int type EINA_UNUSED, void *event)
{
char *buf;
return ECORE_CALLBACK_PASS_ON;
}
-static Eina_Bool
+static Eina_Bool
_wl_dnd_receive(void *data, int type EINA_UNUSED, void *event)
{
Wl_Cnp_Selection *sel;
_wl_dropable_data_handle(sel, ev->data);
else
{
- evas_object_event_callback_del_full(sel->requestwidget,
+ evas_object_event_callback_del_full(sel->requestwidget,
EVAS_CALLBACK_DEL,
_wl_sel_obj_del2, sel);
sel->requestwidget = NULL;
return ECORE_CALLBACK_PASS_ON;
}
-static Eina_Bool
+static Eina_Bool
_wl_dnd_end(void *data EINA_UNUSED, int type EINA_UNUSED, void *event EINA_UNUSED)
{
/* Ecore_Wl_Event_Dnd_End *ev; */
return ECORE_CALLBACK_PASS_ON;
}
-static void
+static void
_wl_dropable_data_handle(Wl_Cnp_Selection *sel, char *data)
{
Dropable *drop;
unsigned int win = 0;
char *p, *s = NULL, *entrytag;
Elm_Selection_Data sdata;
- static const char *tagstring =
+ static const char *tagstring =
"<item absize=240x180 href=file://%s></item>";
win = _wl_elm_widget_window_get(sel->requestwidget);
if (!savedtypes.imgfile) return;
- if ((drop->types & ELM_SEL_FORMAT_MARKUP) &&
+ if ((drop->types & ELM_SEL_FORMAT_MARKUP) &&
(drop->types & ELM_SEL_FORMAT_IMAGE))
{
int l = 0;
{
Eina_List *l;
Dropable *dropable;
-
+
if (!drops) return NULL;
EINA_LIST_FOREACH(drops, l, dropable)
- if (_wl_elm_widget_window_get(dropable->obj) == win)
+ if (_wl_elm_widget_window_get(dropable->obj) == win)
return dropable;
return NULL;
}
return NULL;
}
-static void
+static void
_wl_dropable_handle(Dropable *drop, Evas_Coord x, Evas_Coord y, Eina_Bool have_obj)
{
Dropable *last = NULL;
if (drop->last.in)
- last = _wl_dropable_find_geom(_wl_elm_widget_window_get(drop->obj),
+ last = _wl_dropable_find_geom(_wl_elm_widget_window_get(drop->obj),
drop->last.x, drop->last.y);
if ((have_obj) && (last == drop))
{
- if (drop->poscb)
+ if (drop->poscb)
drop->poscb(drop->posdata, drop->obj, x, y, dragaction);
}
else if ((have_obj) && (!last))
}
}
-static void
+static void
_wl_dropable_all_set(unsigned int win, Evas_Coord x, Evas_Coord y, Eina_Bool set)
{
Eina_List *l;
}
}
-static Eina_Bool
+static Eina_Bool
_wl_drops_accept(const char *type)
{
Eina_List *l;
{
case ELM_SEL_FORMAT_TARGETS:
case ELM_SEL_FORMAT_IMAGE:
- if ((!strncmp(type, "text/uri", 8)) ||
+ if ((!strncmp(type, "text/uri", 8)) ||
(!strncmp(type, "image/", 6)))
{
wl_cnp_selection.requestwidget = drop->obj;
return will_accept;
}
-static unsigned int
+static unsigned int
_wl_elm_widget_window_get(Evas_Object *obj)
{
Evas_Object *top;
{
Local_Selinfo *info = data;
Elm_Selection_Data ev;
-
+
info->get.job = NULL;
ev.x = 0;
ev.y = 0;
_local_elm_cnp_init(void)
{
static int _init_count = 0;
-
+
if (_init_count > 0) return EINA_TRUE;
_init_count++;
memset(&(_local_selinfo), 0, sizeof(_local_selinfo));
_local_selinfo[selection].get.obj = obj;
_local_selinfo[selection].get.func = datacb;
_local_selinfo[selection].get.data = udata;
- _local_selinfo[selection].get.job =
+ _local_selinfo[selection].get.job =
ecore_job_add(_local_get_job, &(_local_selinfo[selection]));
return EINA_TRUE;
}
char *tmp;
/* And before someone says anything see POSIX 1003.1-2008 page 400 */
long pid;
-
+
pid = (long)getpid();
/* Use pid instead of /proc/self: That way if can be passed around */
len = snprintf(NULL,0,"/proc/%li/fd/%i", pid, info->fd);
#ifdef HAVE_ELEMENTARY_X
if (_x11_elm_widget_xwin_get(obj))
_x11_elm_cnp_selection_loss_callback_set(obj, selection, func, data);
-#endif
+#endif
_local_elm_cnp_selection_loss_callback_set(obj, selection, func, data);
}
if (!_elm_cnp_init_count) _elm_cnp_init();
#ifdef HAVE_ELEMENTARY_X
if (_x11_elm_widget_xwin_get(obj))
- return _x11_elm_drag_start(obj, format, data, action,
- createicon, createdata,
+ return _x11_elm_drag_start(obj, format, data, action,
+ createicon, createdata,
dragpos, dragdata,
acceptcb, acceptdata,
dragdone, donecbdata);
#endif
#ifdef HAVE_ELEMENTARY_WAYLAND
- return _wl_elm_drag_start(obj, format, data, action,
- createicon, createdata,
+ return _wl_elm_drag_start(obj, format, data, action,
+ createicon, createdata,
dragpos, dragdata,
acceptcb, acceptdata,
dragdone, donecbdata);
{
Item_Container_Drag_Info *st = data;
elm_widget_scroll_freeze_pop(st->obj);
- if (st->user_info.dragdone)
+ if (st->user_info.dragdone)
st->user_info.dragdone(st->user_info.donecbdata, dragwidget, doaccept);
}
}
color = (sd->a << 24) |
- (((sd->r * sd->a) / 255) << 16) |
- (((sd->g * sd->a) / 255) << 8) |
+ (((sd->r * sd->a) / 255) << 16) |
+ (((sd->g * sd->a) / 255) << 8) |
(((sd->b * sd->a) / 255));
if (sd->a == 255)
evas_object_image_alpha_set(sd->picker_display, EINA_FALSE);
else
evas_object_image_alpha_set(sd->picker_display, EINA_TRUE);
-
+
pixels = evas_object_image_data_get(sd->picker_display, EINA_TRUE);
copy = pixels;
for (y = 0; y < 17; y++)
return EINA_TRUE;
}
-#endif
+#endif
static void
_mouse_in_canvas(void *data, Evas *e __UNUSED__, void *event_info __UNUSED__)
item->color->a = color->a;
elm_box_pack_end(sd->palette_box, VIEW(item));
- evas_object_color_set(item->color_obj,
- (item->color->r * item->color->a) / 255,
- (item->color->g * item->color->a) / 255,
- (item->color->b * item->color->a) / 255,
+ evas_object_color_set(item->color_obj,
+ (item->color->r * item->color->a) / 255,
+ (item->color->g * item->color->a) / 255,
+ (item->color->b * item->color->a) / 255,
item->color->a);
sd->items = eina_list_append(sd->items, item);
elm_layout_content_set(obj, "selector", priv->col_bars_area);
elm_layout_signal_emit(obj, "elm,state,both", "elm");
-
+
/* setup the color picker */
priv->picker = elm_box_add(obj);
elm_box_horizontal_set(priv->picker, EINA_TRUE);
elm_layout_signal_emit(obj, "elm,state,picker", "elm");
sd->focused = ELM_COLORSELECTOR_PICKER;
break;
-
+
case ELM_COLORSELECTOR_ALL:
if (!elm_layout_content_set(obj, "elm.palette", sd->palette_box))
elm_layout_content_set(obj, "palette", sd->palette_box);
item->color->b = b;
item->color->a = a;
evas_object_color_set(item->color_obj,
- (item->color->r * item->color->a) / 255,
- (item->color->g * item->color->a) / 255,
- (item->color->b * item->color->a) / 255,
+ (item->color->r * item->color->a) / 255,
+ (item->color->g * item->color->a) / 255,
+ (item->color->b * item->color->a) / 255,
item->color->a);
_colors_save(WIDGET(it));
}
elm_box_pack_end(sd->palette_box, VIEW(item));
evas_object_color_set(item->color_obj,
- (item->color->r * item->color->a) / 255,
- (item->color->g * item->color->a) / 255,
- (item->color->b * item->color->a) / 255,
+ (item->color->r * item->color->a) / 255,
+ (item->color->g * item->color->a) / 255,
+ (item->color->b * item->color->a) / 255,
item->color->a);
sd->items = eina_list_append(sd->items, item);
(dst, size, '/', home, strlen(home),
ELEMENTARY_BASE_DIR, sizeof(ELEMENTARY_BASE_DIR) - 1);
#else
-#ifdef DOXDG
+#ifdef DOXDG
home = getenv("XDG_CONFIG_HOME");
if (home)
{
"elementary", sizeof("elementary") - 1);
}
else
-#endif
+#endif
{
home = getenv("HOME");
if (!home) home = "/";
user_dir_len = eina_str_join_len
(dst, size, '/', home, strlen(home),
ELEMENTARY_BASE_DIR, sizeof(ELEMENTARY_BASE_DIR) - 1);
-#endif
+#endif
}
#endif
if (ecore_x_init(NULL))
{
_root_1st = ecore_x_window_root_first_get();
-
+
if (!ecore_x_screen_is_composited(0))
_elm_config->compositing = 0;
-
+
ecore_x_atoms_get(_atom_names, ATOM_COUNT, _atom);
ecore_x_event_mask_set(_root_1st,
ECORE_X_EVENT_MASK_WINDOW_PROPERTY);
if (!getenv("ELM_PROFILE"))
{
char *s;
-
+
s = ecore_x_window_prop_string_get(_root_1st,
_atom[ATOM_E_PROFILE]);
if (s)
{
int changed = 0;
-
+
if (_elm_profile)
{
if (strcmp(_elm_profile, s)) changed = 1;
if (_elm_config->access_mode == ELM_ACCESS_MODE_ON)
{
Elm_Access_Info *ai;
-
+
priv->access_obj = _elm_access_edje_object_part_object_register
(obj, elm_layout_edje_get(obj), "elm.access");
if (!priv->access_obj)
priv->access_obj = _elm_access_edje_object_part_object_register
(obj, elm_layout_edje_get(obj), "access");
-
+
ai = _elm_access_info_get(priv->access_obj);
_elm_access_text_set(ai, ELM_ACCESS_TYPE, "date time");
_elm_access_callback_set(ai, ELM_ACCESS_INFO, _access_info_cb, obj);
if (min > max) return;
field = sd->field_list + fieldtype;
- if (((min >= mapping[fieldtype].def_min) &&
+ if (((min >= mapping[fieldtype].def_min) &&
(min <= mapping[fieldtype].def_max)) ||
(field->type == ELM_DATETIME_YEAR))
field->min = min;
- if (((max >= mapping[fieldtype].def_min) &&
+ if (((max >= mapping[fieldtype].def_min) &&
(max <= mapping[fieldtype].def_max)) ||
(field->type == ELM_DATETIME_YEAR))
field->max = max;
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_THEME), _elm_datetime_smart_theme),
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ON_FOCUS), _elm_datetime_smart_on_focus),
EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_DISABLE), _elm_datetime_smart_disable),
-
+
EO_OP_FUNC(ELM_OBJ_LAYOUT_ID(ELM_OBJ_LAYOUT_SUB_ID_SIZING_EVAL), _elm_datetime_smart_sizing_eval),
EO_OP_FUNC(ELM_OBJ_DATETIME_ID(ELM_OBJ_DATETIME_SUB_ID_FORMAT_GET), _format_get),
if (sd->scroll)
{
Eina_Bool ok = EINA_FALSE;
-
+
eo_do(obj, elm_scrollable_interface_mirrored_set(elm_widget_mirrored_get(obj)));
if (sd->single_line)
sd->downx = ev->canvas.x;
sd->downy = ev->canvas.y;
sd->long_pressed = EINA_FALSE;
-
+
if (ev->button == 1)
{
ELM_SAFE_FREE(sd->longpress_timer, ecore_timer_del);
else
{
#ifdef HAVE_ELEMENTARY_X
- elm_drop_target_add(obj, ELM_SEL_FORMAT_MARKUP,
+ elm_drop_target_add(obj, ELM_SEL_FORMAT_MARKUP,
NULL, NULL,
NULL, NULL,
NULL, NULL,
#ifdef HAVE_ELEMENTARY_X
if (editable)
- elm_drop_target_add(obj, ELM_SEL_FORMAT_MARKUP,
+ elm_drop_target_add(obj, ELM_SEL_FORMAT_MARKUP,
NULL, NULL,
NULL, NULL,
NULL, NULL,
else
_flip_do(obj, t, sd->mode, 0, 0);
}
-
+
if (t >= 1.0)
{
#if 0 // this breaks manual flipping. :/
item = DATA_GET(sd->current);
if (!item) return;
if (sd->deleting) return;
-
+
if (item->func)
item->func((void *)item->base.data, WIDGET(item), item);
if (!item->deleted)
Elm_Flipselector_Smart_Data *sd = _pd;
sd->deleting = EINA_TRUE;
-
+
if (sd->walking) ERR("flipselector deleted while walking.\n");
while (sd->items)
unsigned idx = it->item->order_num_in;
ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
-
+
if (!it->item->nostacking)
{
if ((idx & 0x1) ^ it->item->stacking_even)
_item_unhighlight(Elm_Gen_Item *it)
{
ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
-
+
if ((it->generation < GL_IT(it)->wsd->generation) || (!it->highlighted))
return;
minw /= 2;
minh /= 2;
-
+
// gah! annoying drag detection - leave this alone
if (h < w)
{
}
if (minw < 5) minw = 5;
if (minh < 5) minh = 5;
-
+
if ((adx > minw) || (ady > minh))
{
it->dragging = EINA_TRUE;
priv->stack[i] = evas_object_rectangle_add(evas_object_evas_get(obj));
evas_object_smart_member_add(priv->stack[i], priv->pan_obj);
}
-
+
eo_do(obj, elm_scrollable_interface_extern_pan_set(priv->pan_obj));
edje_object_size_min_calc(wd->resize_obj, &minw, &minh);
_elm_image_internal_sizing_eval(obj, sd);
if (ret) *ret = EINA_TRUE;
-}
+}
static void
_elm_image_smart_download_done(void *data, Elm_Url *url EINA_UNUSED, Eina_Binbuf *download)
Eina_Bool go_left = EINA_TRUE, go_right = EINA_TRUE;
Eina_Bool go_up = EINA_TRUE, go_down = EINA_TRUE;
Evas_Coord x = 0, y = 0, mx = 0, my = 0, minx = 0, miny = 0;
-
+
if (!sid->edje_obj || !sid->pan_obj) return;
-
+
eo_do(sid->pan_obj, elm_obj_pan_pos_max_get(&mx, &my));
eo_do(sid->pan_obj, elm_obj_pan_pos_min_get(&minx, &miny));
eo_do(sid->pan_obj, elm_obj_pan_pos_get(&x, &y));
if (sid->cb_func.content_min_limit)
sid->cb_func.content_min_limit(sid->obj, sid->min_w, sid->min_h);
}
-
+
_elm_direction_arrows_eval(sid);
return scroll_h_vis_change;
}
if (modules)
{
Eina_List *tl = NULL;
-
+
it = eina_hash_iterator_data_new(modules);
EINA_ITERATOR_FOREACH(it, m) tl = eina_list_append(tl, m);
const char *str;
Evas_Coord minw = 0, minh = 0;
Elm_Panel_Smart_Data *sd = _pd;
-
+
Eina_Bool int_ret = EINA_FALSE;
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
elm_widget_highlight_in_theme_set(obj, EINA_FALSE);
_orient_set_do(obj);
-
+
evas_object_hide(sd->event);
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
evas_object_size_hint_min_set(sd->event, minw, minh);
-
+
if (edje_object_part_exists
(wd->resize_obj, "elm.swallow.event"))
elm_layout_content_set(obj, "elm.swallow.event", sd->event);
-
+
elm_layout_sizing_eval(obj);
if (ret) *ret = EINA_TRUE;
(wd->resize_obj, "elm.swallow.event"))
{
Evas_Coord minw = 0, minh = 0;
-
+
elm_coords_finger_size_adjust(1, &minw, 1, &minh);
evas_object_size_hint_min_set(priv->event, minw, minh);
elm_layout_content_set(obj, "elm.swallow.event", priv->event);
}
elm_widget_sub_object_add(obj, priv->event);
-
+
elm_layout_sizing_eval(obj);
}
}
name = strrchr(path, ':');
- if (!name)
+ if (!name)
{
ERR("invalid item path: %s", path);
return EINA_FALSE;
if (!values)
{
/* new key, must add one */
- values = eina_hash_string_superfast_new(_data_values_hash_free_cb);
+ values = eina_hash_string_superfast_new(_data_values_hash_free_cb);
eina_hash_set(prefs_data->keys, key, values);
}
EINA_SAFETY_ON_NULL_RETURN_VAL(value, EINA_FALSE);
name = strrchr(path, ':');
- if (!name)
+ if (!name)
{
ERR("invalid item path: %s", path);
return EINA_FALSE;
if (sd->popup)
edje_object_scale_set(sd->popup, elm_widget_scale_get(obj) *
elm_config_scale_get());
-
+
if (sd->horizontal)
evas_object_size_hint_min_set
(sd->spacer, (double)sd->size * elm_widget_scale_get(obj) *
(_elm_access_info_get(obj), ELM_ACCESS_INFO, _access_info_cb, NULL);
_elm_access_callback_set
(_elm_access_info_get(obj), ELM_ACCESS_STATE, _access_state_cb, NULL);
-
+
evas_object_smart_changed(obj);
}
const char *units = va_arg(*list, const char *);
Elm_Slider_Smart_Data *sd = _pd;
Elm_Widget_Smart_Data *wd = eo_data_scope_get(obj, ELM_OBJ_WIDGET_CLASS);
-
+
eina_stringshare_replace(&sd->units, units);
if (units)
{
if (url_data->url_con != r->target) return EINA_TRUE;
eina_binbuf_append_length(r->download, url_data->data, url_data->size);
-
+
return EINA_TRUE;
}
_elm_atof(const char *s)
{
char *cradix, *buf, *p;
-
+
if ((!s) || (!s[0])) return 0.0;
cradix = nl_langinfo(RADIXCHAR);
if (!cradix) return atof(s);
{
Elm_Widget_Item_Signal_Data *wisd;
Eina_List *l;
-
+
ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL);
EINA_SAFETY_ON_NULL_RETURN_VAL(func, NULL);
ch_maximized = EINA_TRUE;
}
-
+
profile = ecore_evas_window_profile_get(sd->ee);
ch_profile = _elm_win_profile_set(sd, profile);
evas_object_geometry_get(sd->spacer_obj, &sx, &sy, &sw, &sh);
evas_output_framespace_get(sd->evas, &x, &y, &w, &h);
- if ((x != (ox - fx)) || (y != (oy - fy)) ||
+ if ((x != (ox - fx)) || (y != (oy - fy)) ||
(w != (fw - ow)) || (h != (fh - oh)))
{
- evas_output_framespace_set(sd->evas, (ox - fx), (oy - fy),
+ evas_output_framespace_set(sd->evas, (ox - fx), (oy - fy),
(fw - ow), (fh - oh));
}
evas_object_geometry_get(sd->spacer_obj, &sx, &sy, &sw, &sh);
evas_output_framespace_get(sd->evas, &x, &y, &w, &h);
- if ((x != (ox - fx)) || (y != (oy - fy)) ||
+ if ((x != (ox - fx)) || (y != (oy - fy)) ||
(w != (fw - ow)) || (h != (fh - oh)))
{
- evas_output_framespace_set(sd->evas, (ox - fx), (oy - fy),
+ evas_output_framespace_set(sd->evas, (ox - fx), (oy - fy),
(fw - ow), (fh - oh));
}
sd->spacer_obj = evas_object_rectangle_add(sd->evas);
evas_object_color_set(sd->spacer_obj, 0, 0, 0, 0);
evas_object_repeat_events_set(sd->spacer_obj, EINA_TRUE);
- edje_object_part_swallow(sd->frame_obj, "elm.swallow.frame_spacer",
+ edje_object_part_swallow(sd->frame_obj, "elm.swallow.frame_spacer",
sd->spacer_obj);
sd->client_obj = evas_object_rectangle_add(sd->evas);
evas_object_color_set(sd->client_obj, 0, 0, 0, 0);
/* NB: Tried pass_events here, but that fails to send events */
evas_object_repeat_events_set(sd->client_obj, EINA_TRUE);
- edje_object_part_swallow(sd->frame_obj, "elm.swallow.client",
+ edje_object_part_swallow(sd->frame_obj, "elm.swallow.client",
sd->client_obj);
evas_object_is_frame_object_set(sd->frame_obj, EINA_TRUE);
evas_object_event_callback_add
(sd->frame_obj, EVAS_CALLBACK_RESIZE, _elm_win_frame_obj_resize, sd);
- /* NB: Do NOT remove these calls !! Needed to calculate proper
+ /* NB: Do NOT remove these calls !! Needed to calculate proper
* framespace on inital show of the window */
edje_object_size_min_calc(sd->frame_obj, &mw, &mh);
evas_object_move(sd->frame_obj, 0, 0);
{
int w, h;
- if (sd->client_obj)
+ if (sd->client_obj)
{
evas_object_del(sd->client_obj);
sd->client_obj = NULL;
return sd->floating;
}
-static void
+static void
_window_id_get(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
{
Ecore_Window *ret = va_arg(*list, Ecore_Window *);
*ret = 0;
}
-EAPI Ecore_Window
+EAPI Ecore_Window
elm_win_window_id_get(const Evas_Object *obj)
{
if (!obj) return 0;
_elm_cursor_obj_del(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Elm_Cursor *cur = data;
-
+
if (cur)
{
evas_object_event_callback_del_full(cur->obj, EVAS_CALLBACK_DEL,