tested and working... todo FIXME's still left...

SVN revision: 13017
This commit is contained in:
Carsten Haitzler 2005-01-19 15:55:27 +00:00
parent 4985a2f3a5
commit 5795d70068
2 changed files with 15 additions and 12 deletions

View File

@ -6,10 +6,10 @@
/* FIXME: corner case if module is sized to full screen... cant stop edit or */
/* re-enter edit mode (cant access root menu) */
/* FIXME: handle drag from zone to zone */
/* FIXME: evas_clip to the zone - make a zone clip for gadman obj's */
/* FIXME: actully call callbacks */
/* FIXME: handle save */
/* FIXME: handle load */
/* FIXME: start move - raise and callback */
/* FIXME: if u set align, or minmax size or edge then figure out new-coords */
/* FIXME: handle move resist */
/* FIXME: handle resize resist */
@ -610,7 +610,7 @@ _e_gadman_cb_signal_move_go(void *data, Evas_Object *obj, const char *emission,
E_Zone *nz;
nz = e_container_zone_at_point_get(gmc->zone->container, x, y);
if (nz != gmc->zone)
if ((nz) && (nz != gmc->zone))
{
gmc->zone = nz;
new_zone = 1;
@ -690,7 +690,7 @@ _e_gadman_cb_signal_move_go(void *data, Evas_Object *obj, const char *emission,
E_Zone *nz;
nz = e_container_zone_at_point_get(gmc->zone->container, x, y);
if (nz != gmc->zone)
if ((nz) && (nz != gmc->zone))
{
gmc->zone = nz;
new_zone = 1;

View File

@ -539,18 +539,21 @@ _e_main_screens_init(void)
E_Gadman_Client *gmc;
gmc = e_gadman_client_new(con->gadman);
gmc->x = 20;
gmc->y = 0;
gmc->w = 200;
gmc->h = 100;
gmc->x = 0;
gmc->y = 300;
gmc->w = 100;
gmc->h = 200;
e_gadman_client_policy_set(gmc,
E_GADMAN_POLICY_EDGES |
// E_GADMAN_POLICY_EDGES |
E_GADMAN_POLICY_ANYWHERE |
E_GADMAN_POLICY_HMOVE |
E_GADMAN_POLICY_VMOVE |
E_GADMAN_POLICY_HSIZE |
E_GADMAN_POLICY_VSIZE);
e_gadman_client_min_size_set(gmc, 20, 20);
e_gadman_client_auto_size_set(gmc, 200, 50);
e_gadman_client_align_set(gmc, 0.5, 0.0);
e_client_gadman_edge_set(gmc, E_GADMAN_EDGE_TOP);
e_gadman_client_auto_size_set(gmc, 50, 200);
e_gadman_client_align_set(gmc, 0.0, 0.5);
e_client_gadman_edge_set(gmc, E_GADMAN_EDGE_LEFT);
}
}
free(roots);