forked from enlightenment/enlightenment
parent
6c2a7724c2
commit
78b294c4a8
|
@ -763,9 +763,12 @@ _e_dbus_format_error_msg(char **buf, E_Volume *v, DBusError *error)
|
||||||
tmp = *buf = malloc(size);
|
tmp = *buf = malloc(size);
|
||||||
|
|
||||||
strcpy(tmp, v->udi);
|
strcpy(tmp, v->udi);
|
||||||
strcpy(tmp += vu, v->mount_point);
|
tmp += vu;
|
||||||
strcpy(tmp += vm, error->name);
|
strcpy(tmp, v->mount_point);
|
||||||
strcpy(tmp += en, error->message);
|
tmp += vm;
|
||||||
|
strcpy(tmp, error->name);
|
||||||
|
tmp += en;
|
||||||
|
strcpy(tmp, error->message);
|
||||||
|
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
@ -971,7 +974,7 @@ e_volume_mount(E_Volume *v)
|
||||||
v->guard = ecore_timer_add(E_FM_MOUNT_TIMEOUT, _e_dbus_vol_mount_timeout, v);
|
v->guard = ecore_timer_add(E_FM_MOUNT_TIMEOUT, _e_dbus_vol_mount_timeout, v);
|
||||||
v->op = e_hal_device_volume_mount(_e_dbus_conn, v->udi, mount_point,
|
v->op = e_hal_device_volume_mount(_e_dbus_conn, v->udi, mount_point,
|
||||||
v->fstype, opt, _e_dbus_cb_vol_mounted, v);
|
v->fstype, opt, _e_dbus_cb_vol_mounted, v);
|
||||||
opt = eina_list_free(opt);
|
eina_list_free(opt);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -1184,9 +1187,6 @@ _e_ipc_cb_server_add(void *data, int type, void *event)
|
||||||
static int
|
static int
|
||||||
_e_ipc_cb_server_del(void *data, int type, void *event)
|
_e_ipc_cb_server_del(void *data, int type, void *event)
|
||||||
{
|
{
|
||||||
Ecore_Ipc_Event_Server_Del *e;
|
|
||||||
|
|
||||||
e = event;
|
|
||||||
/* quit now */
|
/* quit now */
|
||||||
ecore_main_loop_quit();
|
ecore_main_loop_quit();
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -324,12 +324,10 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
|
||||||
Evas_Object *o, *ot, *ob, *of, *oi;
|
Evas_Object *o, *ot, *ob, *of, *oi;
|
||||||
E_Radio_Group *rg;
|
E_Radio_Group *rg;
|
||||||
char buf[4096];
|
char buf[4096];
|
||||||
E_Fm2_Config *cfg;
|
|
||||||
const char *itype = NULL;
|
const char *itype = NULL;
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "%s/%s",
|
snprintf(buf, sizeof(buf), "%s/%s",
|
||||||
e_fm2_real_path_get(cfdata->fi->fm), cfdata->fi->file);
|
e_fm2_real_path_get(cfdata->fi->fm), cfdata->fi->file);
|
||||||
cfg = e_fm2_config_get(cfdata->fi->fm);
|
|
||||||
o = e_widget_table_add(evas, 0);
|
o = e_widget_table_add(evas, 0);
|
||||||
|
|
||||||
ot = e_widget_table_add(evas, 0);
|
ot = e_widget_table_add(evas, 0);
|
||||||
|
|
|
@ -3997,8 +3997,8 @@ _e_gadcon_layout_smart_gadcons_position(E_Smart_Data *sd, Eina_List **list)
|
||||||
{
|
{
|
||||||
int ok, lc_moving_prev_pos;
|
int ok, lc_moving_prev_pos;
|
||||||
Eina_List *l, *l2, *l3;
|
Eina_List *l, *l2, *l3;
|
||||||
E_Layout_Item_Container *lc_moving = NULL, *lc_back, *lc, *lc3;
|
E_Layout_Item_Container *lc_moving = NULL, *lc_back = NULL, *lc, *lc3;
|
||||||
E_Gadcon_Layout_Item *bi, *bi_moving;
|
E_Gadcon_Layout_Item *bi, *bi_moving = NULL;
|
||||||
|
|
||||||
if ((!list) || (!*list)) return;
|
if ((!list) || (!*list)) return;
|
||||||
|
|
||||||
|
@ -4345,8 +4345,11 @@ _e_gadcon_layout_smart_gadcons_position(E_Smart_Data *sd, Eina_List **list)
|
||||||
LC_FREE(lc_back);
|
LC_FREE(lc_back);
|
||||||
}
|
}
|
||||||
|
|
||||||
bi_moving->gcc->config.pos = bi_moving->ask.pos = bi_moving->x;
|
if (bi_moving)
|
||||||
bi_moving->gcc->config.size = bi_moving->w;
|
{
|
||||||
|
bi_moving->gcc->config.pos = bi_moving->ask.pos = bi_moving->x;
|
||||||
|
bi_moving->gcc->config.size = bi_moving->w;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -775,7 +775,6 @@ e_ilist_multi_select(Evas_Object *obj, int n)
|
||||||
EAPI void
|
EAPI void
|
||||||
e_ilist_range_select(Evas_Object *obj, int n)
|
e_ilist_range_select(Evas_Object *obj, int n)
|
||||||
{
|
{
|
||||||
E_Ilist_Item *si = NULL;
|
|
||||||
int i, j, dir;
|
int i, j, dir;
|
||||||
|
|
||||||
API_ENTRY return;
|
API_ENTRY return;
|
||||||
|
@ -788,7 +787,7 @@ e_ilist_range_select(Evas_Object *obj, int n)
|
||||||
if (n < sd->selected) dir = 0;
|
if (n < sd->selected) dir = 0;
|
||||||
else dir = 1;
|
else dir = 1;
|
||||||
|
|
||||||
if (!(si = eina_list_nth(sd->items, n))) return;
|
if (!eina_list_nth(sd->items, n)) return;
|
||||||
if (dir == 1)
|
if (dir == 1)
|
||||||
{
|
{
|
||||||
for (j = (sd->selected + 1); ((j < i) && (j <= n)); j++)
|
for (j = (sd->selected + 1); ((j < i) && (j <= n)); j++)
|
||||||
|
|
|
@ -128,8 +128,6 @@ main(int argc, char **argv)
|
||||||
/* else create new imc */
|
/* else create new imc */
|
||||||
if (write_ops != 0)
|
if (write_ops != 0)
|
||||||
{
|
{
|
||||||
int write_ok;
|
|
||||||
|
|
||||||
write_imc = calloc(sizeof(E_Input_Method_Config), 1);
|
write_imc = calloc(sizeof(E_Input_Method_Config), 1);
|
||||||
write_imc->version = E_INTL_INPUT_METHOD_CONFIG_VERSION;
|
write_imc->version = E_INTL_INPUT_METHOD_CONFIG_VERSION;
|
||||||
if (read_imc != NULL)
|
if (read_imc != NULL)
|
||||||
|
@ -157,7 +155,7 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
|
|
||||||
/* write imc to file */
|
/* write imc to file */
|
||||||
write_ok = e_intl_input_method_config_write(ef, write_imc);
|
e_intl_input_method_config_write(ef, write_imc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -170,9 +170,6 @@ _e_ipc_cb_server_add(void *data, int type, void *event)
|
||||||
static int
|
static int
|
||||||
_e_ipc_cb_server_del(void *data, int type, void *event)
|
_e_ipc_cb_server_del(void *data, int type, void *event)
|
||||||
{
|
{
|
||||||
Ecore_Ipc_Event_Server_Del *e;
|
|
||||||
|
|
||||||
e = event;
|
|
||||||
/* quit now */
|
/* quit now */
|
||||||
ecore_main_loop_quit();
|
ecore_main_loop_quit();
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -228,7 +228,6 @@ e_int_border_menu_create(E_Border *bd)
|
||||||
{
|
{
|
||||||
mi = e_menu_item_new(m);
|
mi = e_menu_item_new(m);
|
||||||
e_menu_item_separator_set(mi, 1);
|
e_menu_item_separator_set(mi, 1);
|
||||||
separator = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!bd->lock_close) && (!bd->internal))
|
if ((!bd->lock_close) && (!bd->internal))
|
||||||
|
@ -269,13 +268,10 @@ e_int_border_menu_show(E_Border *bd, Evas_Coord x, Evas_Coord y, int key, Ecore_
|
||||||
EAPI void
|
EAPI void
|
||||||
e_int_border_menu_del(E_Border *bd)
|
e_int_border_menu_del(E_Border *bd)
|
||||||
{
|
{
|
||||||
int was_menu = 0;
|
|
||||||
|
|
||||||
if (bd->border_menu)
|
if (bd->border_menu)
|
||||||
{
|
{
|
||||||
e_object_del(E_OBJECT(bd->border_menu));
|
e_object_del(E_OBJECT(bd->border_menu));
|
||||||
bd->border_menu = NULL;
|
bd->border_menu = NULL;
|
||||||
was_menu = 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -962,7 +958,6 @@ _e_border_menu_cb_border_pre(void *data, E_Menu *m, E_Menu_Item *mi)
|
||||||
E_Menu *subm;
|
E_Menu *subm;
|
||||||
E_Menu_Item *submi;
|
E_Menu_Item *submi;
|
||||||
E_Border *bd;
|
E_Border *bd;
|
||||||
Evas *evas;
|
|
||||||
|
|
||||||
if (!(bd = data)) return;
|
if (!(bd = data)) return;
|
||||||
|
|
||||||
|
@ -993,7 +988,6 @@ _e_border_menu_cb_border_pre(void *data, E_Menu *m, E_Menu_Item *mi)
|
||||||
e_menu_item_callback_set(submi, _e_border_menu_cb_iconpref_e, bd);
|
e_menu_item_callback_set(submi, _e_border_menu_cb_iconpref_e, bd);
|
||||||
|
|
||||||
submi = e_menu_item_new(subm);
|
submi = e_menu_item_new(subm);
|
||||||
evas = submi->menu->evas;
|
|
||||||
e_menu_item_label_set(submi, _("Use Application Provided Icon "));
|
e_menu_item_label_set(submi, _("Use Application Provided Icon "));
|
||||||
e_menu_item_radio_set(submi, 1);
|
e_menu_item_radio_set(submi, 1);
|
||||||
e_menu_item_radio_group_set(submi, 2);
|
e_menu_item_radio_group_set(submi, 2);
|
||||||
|
|
|
@ -98,12 +98,9 @@ e_manager_new(Ecore_X_Window root, int num)
|
||||||
ecore_x_window_size_get(man->root, &(man->w), &(man->h));
|
ecore_x_window_size_get(man->root, &(man->w), &(man->h));
|
||||||
if (e_config->use_virtual_roots)
|
if (e_config->use_virtual_roots)
|
||||||
{
|
{
|
||||||
Ecore_X_Window mwin;
|
|
||||||
|
|
||||||
man->win = ecore_x_window_override_new(man->root, man->x, man->y, man->w, man->h);
|
man->win = ecore_x_window_override_new(man->root, man->x, man->y, man->w, man->h);
|
||||||
ecore_x_icccm_title_set(man->win, "Enlightenment Manager");
|
ecore_x_icccm_title_set(man->win, "Enlightenment Manager");
|
||||||
ecore_x_netwm_name_set(man->win, "Enlightenment Manager");
|
ecore_x_netwm_name_set(man->win, "Enlightenment Manager");
|
||||||
mwin = e_menu_grab_window_get();
|
|
||||||
ecore_x_window_raise(man->win);
|
ecore_x_window_raise(man->win);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -172,12 +169,10 @@ e_manager_manage_windows(E_Manager *man)
|
||||||
"KWM_DOCKWINDOW"
|
"KWM_DOCKWINDOW"
|
||||||
};
|
};
|
||||||
Ecore_X_Atom atoms[3];
|
Ecore_X_Atom atoms[3];
|
||||||
Ecore_X_Atom atom_xmbed, atom_kde_netwm_systray, atom_kwm_dockwindow,
|
Ecore_X_Atom atom_xmbed, atom_kde_netwm_systray, atom_kwm_dockwindow;
|
||||||
atom_window;
|
|
||||||
unsigned char *data = NULL;
|
unsigned char *data = NULL;
|
||||||
int count;
|
int count;
|
||||||
|
|
||||||
atom_window = ECORE_X_ATOM_WINDOW;
|
|
||||||
ecore_x_atoms_get(atom_names, 3, atoms);
|
ecore_x_atoms_get(atom_names, 3, atoms);
|
||||||
atom_xmbed = atoms[0];
|
atom_xmbed = atoms[0];
|
||||||
atom_kde_netwm_systray = atoms[1];
|
atom_kde_netwm_systray = atoms[1];
|
||||||
|
@ -666,7 +661,6 @@ _e_manager_cb_frame_extents_request(void *data, int ev_type __UNUSED__, void *ev
|
||||||
if (state)
|
if (state)
|
||||||
{
|
{
|
||||||
int maximized = 0;
|
int maximized = 0;
|
||||||
int fullscreen = 0;
|
|
||||||
|
|
||||||
for (i = 0; i < num; i++)
|
for (i = 0; i < num; i++)
|
||||||
{
|
{
|
||||||
|
@ -679,7 +673,6 @@ _e_manager_cb_frame_extents_request(void *data, int ev_type __UNUSED__, void *ev
|
||||||
maximized++;
|
maximized++;
|
||||||
break;
|
break;
|
||||||
case ECORE_X_WINDOW_STATE_FULLSCREEN:
|
case ECORE_X_WINDOW_STATE_FULLSCREEN:
|
||||||
fullscreen = 1;
|
|
||||||
border = "borderless";
|
border = "borderless";
|
||||||
key = border;
|
key = border;
|
||||||
break;
|
break;
|
||||||
|
@ -815,11 +808,9 @@ _e_manager_cb_screensaver_notify(void *data __UNUSED__, int ev_type __UNUSED__,
|
||||||
static int
|
static int
|
||||||
_e_manager_cb_client_message(void *data, int ev_type, void *ev)
|
_e_manager_cb_client_message(void *data, int ev_type, void *ev)
|
||||||
{
|
{
|
||||||
E_Manager *man;
|
|
||||||
Ecore_X_Event_Client_Message *e;
|
Ecore_X_Event_Client_Message *e;
|
||||||
E_Border *bd;
|
E_Border *bd;
|
||||||
|
|
||||||
man = data;
|
|
||||||
e = ev;
|
e = ev;
|
||||||
|
|
||||||
if (e->message_type == ECORE_X_ATOM_NET_ACTIVE_WINDOW)
|
if (e->message_type == ECORE_X_ATOM_NET_ACTIVE_WINDOW)
|
||||||
|
|
|
@ -1010,6 +1010,7 @@ e_menu_idler_before(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// TODO: This is meaningless
|
||||||
changed = 0;
|
changed = 0;
|
||||||
}
|
}
|
||||||
if (changed)
|
if (changed)
|
||||||
|
@ -1034,7 +1035,7 @@ e_menu_idler_before(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* del refcount to all menus we worked with */
|
/* del refcount to all menus we worked with */
|
||||||
tmp = _e_menu_list_free_unref(tmp);
|
_e_menu_list_free_unref(tmp);
|
||||||
|
|
||||||
if (!_e_active_menus)
|
if (!_e_active_menus)
|
||||||
{
|
{
|
||||||
|
|
|
@ -56,7 +56,7 @@ e_msg_send(const char *name, const char *info, int val, E_Object *obj)
|
||||||
unsigned int size, pos, name_len, info_len;
|
unsigned int size, pos, name_len, info_len;
|
||||||
E_Msg_Event *ev;
|
E_Msg_Event *ev;
|
||||||
|
|
||||||
name_len = info_len = size = 0;
|
name_len = info_len = 0;
|
||||||
size = sizeof(E_Msg_Event);
|
size = sizeof(E_Msg_Event);
|
||||||
if (name) name_len = strlen(name) + 1;
|
if (name) name_len = strlen(name) + 1;
|
||||||
if (info) info_len = strlen(info) + 1;
|
if (info) info_len = strlen(info) + 1;
|
||||||
|
|
|
@ -169,8 +169,6 @@ e_place_zone_region_smart(E_Zone *zone, Eina_List *skiplist, int x, int y, int w
|
||||||
a_alloc_w = 2;
|
a_alloc_w = 2;
|
||||||
a_alloc_h = 2;
|
a_alloc_h = 2;
|
||||||
|
|
||||||
x -= zone->x;
|
|
||||||
y -= zone->y;
|
|
||||||
zw = zone->w;
|
zw = zone->w;
|
||||||
zh = zone->h;
|
zh = zone->h;
|
||||||
|
|
||||||
|
|
|
@ -459,11 +459,9 @@ _e_pointer_active_handle(E_Pointer *p)
|
||||||
static int
|
static int
|
||||||
_e_pointer_cb_mouse_down(void *data, int type, void *event)
|
_e_pointer_cb_mouse_down(void *data, int type, void *event)
|
||||||
{
|
{
|
||||||
Ecore_Event_Mouse_Button *ev;
|
|
||||||
Eina_List *l;
|
Eina_List *l;
|
||||||
E_Pointer *p;
|
E_Pointer *p;
|
||||||
|
|
||||||
ev = event;
|
|
||||||
EINA_LIST_FOREACH(_e_pointers, l, p)
|
EINA_LIST_FOREACH(_e_pointers, l, p)
|
||||||
{
|
{
|
||||||
_e_pointer_active_handle(p);
|
_e_pointer_active_handle(p);
|
||||||
|
@ -501,11 +499,9 @@ _e_pointer_cb_mouse_up(void *data, int type, void *event)
|
||||||
static int
|
static int
|
||||||
_e_pointer_cb_mouse_move(void *data, int type, void *event)
|
_e_pointer_cb_mouse_move(void *data, int type, void *event)
|
||||||
{
|
{
|
||||||
Ecore_Event_Mouse_Move *ev;
|
|
||||||
Eina_List *l;
|
Eina_List *l;
|
||||||
E_Pointer *p;
|
E_Pointer *p;
|
||||||
|
|
||||||
ev = event;
|
|
||||||
EINA_LIST_FOREACH(_e_pointers, l, p)
|
EINA_LIST_FOREACH(_e_pointers, l, p)
|
||||||
{
|
{
|
||||||
_e_pointer_active_handle(p);
|
_e_pointer_active_handle(p);
|
||||||
|
@ -522,11 +518,9 @@ _e_pointer_cb_mouse_move(void *data, int type, void *event)
|
||||||
static int
|
static int
|
||||||
_e_pointer_cb_mouse_wheel(void *data, int type, void *event)
|
_e_pointer_cb_mouse_wheel(void *data, int type, void *event)
|
||||||
{
|
{
|
||||||
Ecore_Event_Mouse_Wheel *ev;
|
|
||||||
Eina_List *l;
|
Eina_List *l;
|
||||||
E_Pointer *p;
|
E_Pointer *p;
|
||||||
|
|
||||||
ev = event;
|
|
||||||
EINA_LIST_FOREACH(_e_pointers, l, p)
|
EINA_LIST_FOREACH(_e_pointers, l, p)
|
||||||
{
|
{
|
||||||
_e_pointer_active_handle(p);
|
_e_pointer_active_handle(p);
|
||||||
|
|
Loading…
Reference in New Issue