forked from enlightenment/enlightenment
parent
9ee4b0e9c4
commit
e0910b16b7
|
@ -133,7 +133,6 @@ _cb_add(void *data, void *data2)
|
||||||
{
|
{
|
||||||
E_Config_Dialog_Data *cfdata;
|
E_Config_Dialog_Data *cfdata;
|
||||||
Evas_List *l = NULL;
|
Evas_List *l = NULL;
|
||||||
Evas_List *selected;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!(cfdata = data)) return;
|
if (!(cfdata = data)) return;
|
||||||
|
@ -141,7 +140,6 @@ _cb_add(void *data, void *data2)
|
||||||
for (i = 0, l = e_widget_ilist_items_get(cfdata->o_avail); l; l = l->next, i++)
|
for (i = 0, l = e_widget_ilist_items_get(cfdata->o_avail); l; l = l->next, i++)
|
||||||
{
|
{
|
||||||
E_Ilist_Item *item = NULL;
|
E_Ilist_Item *item = NULL;
|
||||||
const char *name = NULL;
|
|
||||||
E_Gadcon_Client_Class *cc;
|
E_Gadcon_Client_Class *cc;
|
||||||
E_Gadcon_Client *gcc;
|
E_Gadcon_Client *gcc;
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ E_Gadcon_Client *current;
|
||||||
void
|
void
|
||||||
gadman_init(E_Module *m)
|
gadman_init(E_Module *m)
|
||||||
{
|
{
|
||||||
Evas_List *managers, *l;
|
Evas_List *l;
|
||||||
|
|
||||||
/* Create Manager */
|
/* Create Manager */
|
||||||
Man = calloc(1, sizeof(Manager));
|
Man = calloc(1, sizeof(Manager));
|
||||||
|
@ -188,7 +188,6 @@ gadman_gadget_add(E_Gadcon_Client_Class *cc, int ontop)
|
||||||
E_Config_Gadcon_Client *cf = NULL;
|
E_Config_Gadcon_Client *cf = NULL;
|
||||||
E_Gadcon_Client *gcc;
|
E_Gadcon_Client *gcc;
|
||||||
E_Gadcon *gc;
|
E_Gadcon *gc;
|
||||||
char *id;
|
|
||||||
|
|
||||||
if (ontop)
|
if (ontop)
|
||||||
gc = Man->gc_top;
|
gc = Man->gc_top;
|
||||||
|
@ -492,9 +491,7 @@ _save_widget_position(E_Gadcon_Client *gcc)
|
||||||
static void
|
static void
|
||||||
_apply_widget_position(E_Gadcon_Client *gcc)
|
_apply_widget_position(E_Gadcon_Client *gcc)
|
||||||
{
|
{
|
||||||
Evas_List *l;
|
|
||||||
int x, y, w, h;
|
int x, y, w, h;
|
||||||
int fx, fy, fw, fh;
|
|
||||||
|
|
||||||
x = gcc->cf->geom.pos_x * Man->width;
|
x = gcc->cf->geom.pos_x * Man->width;
|
||||||
y = gcc->cf->geom.pos_y * Man->height;
|
y = gcc->cf->geom.pos_y * Man->height;
|
||||||
|
@ -839,7 +836,7 @@ on_top(void *data, Evas_Object *o, const char *em, const char *src)
|
||||||
}
|
}
|
||||||
else if (action == DRAG_MOVE)
|
else if (action == DRAG_MOVE)
|
||||||
{
|
{
|
||||||
int w, h;
|
int h;
|
||||||
|
|
||||||
evas_pointer_output_xy_get(current->gadcon->evas, &mx, &my);
|
evas_pointer_output_xy_get(current->gadcon->evas, &mx, &my);
|
||||||
|
|
||||||
|
@ -879,7 +876,7 @@ on_right(void *data, Evas_Object *o, const char *em, const char *src)
|
||||||
}
|
}
|
||||||
else if (action == DRAG_MOVE)
|
else if (action == DRAG_MOVE)
|
||||||
{
|
{
|
||||||
int w, h;
|
int w;
|
||||||
|
|
||||||
evas_pointer_output_xy_get(current->gadcon->evas, &mx, &my);
|
evas_pointer_output_xy_get(current->gadcon->evas, &mx, &my);
|
||||||
|
|
||||||
|
@ -916,7 +913,7 @@ on_down(void *data, Evas_Object *o, const char *em, const char *src)
|
||||||
}
|
}
|
||||||
else if (action == DRAG_MOVE)
|
else if (action == DRAG_MOVE)
|
||||||
{
|
{
|
||||||
int w, h;
|
int h;
|
||||||
|
|
||||||
evas_pointer_output_xy_get(current->gadcon->evas, &mx, &my);
|
evas_pointer_output_xy_get(current->gadcon->evas, &mx, &my);
|
||||||
h = my - oy - 15;
|
h = my - oy - 15;
|
||||||
|
@ -952,7 +949,7 @@ on_left(void *data, Evas_Object *o, const char *em, const char *src)
|
||||||
}
|
}
|
||||||
else if (action == DRAG_MOVE)
|
else if (action == DRAG_MOVE)
|
||||||
{
|
{
|
||||||
int w, h;
|
int w;
|
||||||
|
|
||||||
evas_pointer_output_xy_get(current->gadcon->evas, &mx, &my);
|
evas_pointer_output_xy_get(current->gadcon->evas, &mx, &my);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue