reflow some code

SVN revision: 77254
This commit is contained in:
Mike Blumenkrantz 2012-10-01 08:54:36 +00:00
parent 119f7014fa
commit 8a7477d9a8
1 changed files with 70 additions and 77 deletions

View File

@ -2840,15 +2840,14 @@ _e_gadcon_cb_dnd_enter(void *data, const char *type __UNUSED__, void *event)
gc->new_gcc = NULL; gc->new_gcc = NULL;
} }
if (ev->data) while (ev->data)
{ {
/* Create a new gadcon to show where the gadcon will end up */ /* Create a new gadcon to show where the gadcon will end up */
E_Gadcon_Client_Class *cc; E_Gadcon_Client_Class *cc;
gcc = ev->data; gcc = ev->data;
cc = eina_hash_find(providers, gcc->name); cc = eina_hash_find(providers, gcc->name);
if (cc) if (!cc) break;
{
if (!gcc->style) if (!gcc->style)
gc->new_gcc = cc->func.init(gc, gcc->name, gcc->cf->id, gc->new_gcc = cc->func.init(gc, gcc->name, gcc->cf->id,
cc->default_style); cc->default_style);
@ -2856,8 +2855,7 @@ _e_gadcon_cb_dnd_enter(void *data, const char *type __UNUSED__, void *event)
gc->new_gcc = cc->func.init(gc, gcc->name, gcc->cf->id, gc->new_gcc = cc->func.init(gc, gcc->name, gcc->cf->id,
gcc->style); gcc->style);
if (gc->new_gcc) if (!gc->new_gcc) break;
{
gc->new_gcc->cf = gcc->cf; gc->new_gcc->cf = gcc->cf;
gc->new_gcc->client_class = cc; gc->new_gcc->client_class = cc;
gc->new_gcc->config.pos = gcc->config.pos; gc->new_gcc->config.pos = gcc->config.pos;
@ -2921,12 +2919,7 @@ _e_gadcon_cb_dnd_enter(void *data, const char *type __UNUSED__, void *event)
gc->new_gcc->state_info.resist = 1; gc->new_gcc->state_info.resist = 1;
if (gc->instant_edit) if (gc->instant_edit)
e_gadcon_client_util_menu_attach(gc->new_gcc); e_gadcon_client_util_menu_attach(gc->new_gcc);
} break;
}
}
else
{
/* TODO: Create a placeholder to show where the gadcon will end up */
} }
e_gadcon_layout_thaw(gc->o_container); e_gadcon_layout_thaw(gc->o_container);
} }