whoops, forgot to use zone geom for saving gadget sizes as well as placing them

SVN revision: 74593
This commit is contained in:
Mike Blumenkrantz 2012-07-30 15:14:57 +00:00
parent cfb4c8e0ca
commit 4033f4c720
1 changed files with 4 additions and 4 deletions

View File

@ -715,10 +715,10 @@ _save_widget_position(E_Gadcon_Client *gcc)
int x, y, w, h;
evas_object_geometry_get(gcc->o_frame, &x, &y, &w, &h);
current->config.pos_x = current->cf->geom.pos_x = (double)x / (double)Man->width;
current->config.pos_y = current->cf->geom.pos_y = (double)y / (double)Man->height;
current->config.size_w = current->cf->geom.size_w = (double)w / (double)Man->width;
current->config.size_h = current->cf->geom.size_h = (double)h / (double)Man->height;
current->config.pos_x = current->cf->geom.pos_x = (double)x / (double)gcc->gadcon->zone->w;
current->config.pos_y = current->cf->geom.pos_y = (double)y / (double)gcc->gadcon->zone->h;
current->config.size_w = current->cf->geom.size_w = (double)w / (double)gcc->gadcon->zone->w;
current->config.size_h = current->cf->geom.size_h = (double)h / (double)gcc->gadcon->zone->h;
e_config_save_queue();
}