Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_border.c e_hints.c e_hints.h
Log Message:
Don't need to pass coords to e_hints_window_saved_size_(get|set)()
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.338
retrieving revision 1.339
diff -u -3 -r1.338 -r1.339
--- e_border.c 19 Jul 2005 08:51:02 -0000 1.338
+++ e_border.c 19 Jul 2005 09:11:21 -0000 1.339
@@ -1131,7 +1131,7 @@
bd->saved.y = bd->y;
bd->saved.w = bd->w;
bd->saved.h = bd->h;
- e_hints_window_saved_size_set(bd, bd->x, bd->y, bd->w, bd->h);
+ e_hints_window_saved_size_set(bd);
}
e_border_raise(bd);
@@ -1274,7 +1274,7 @@
e_border_move_resize(bd, bd->saved.x, bd->saved.y, bd->saved.w,
bd->saved.h);
bd->saved.x = bd->saved.y = bd->saved.w = bd->saved.h = 0;
- e_hints_window_saved_size_set(bd, 0, 0, 0, 0);
+ e_hints_window_saved_size_set(bd);
edje_object_signal_emit(bd->bg_object, "unmaximize", "");
}
@@ -1302,7 +1302,7 @@
bd->saved.y = bd->y;
bd->saved.w = bd->w;
bd->saved.h = bd->h;
- e_hints_window_saved_size_set(bd, bd->x, bd->y, bd->w, bd->h);
+ e_hints_window_saved_size_set(bd);
}
bd->client_inset.sl = bd->client_inset.l;
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_hints.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -3 -r1.57 -r1.58
--- e_hints.c 10 Jul 2005 17:12:01 -0000 1.57
+++ e_hints.c 19 Jul 2005 09:11:21 -0000 1.58
@@ -399,7 +399,7 @@
e_border_shade(bd, e_hints_window_shade_direction_get(bd));
if ((bd->client.netwm.state.maximized_v) &&
(bd->client.netwm.state.maximized_h))
{
- e_hints_window_saved_size_get(bd, &bd->saved.x, &bd->saved.y,
&bd->saved.w, &bd->saved.h);
+ e_hints_window_saved_size_get(bd);
e_border_maximize(bd, e_config->maximize_policy);
}
if (bd->client.netwm.state.fullscreen)
@@ -998,19 +998,19 @@
}
void
-e_hints_window_saved_size_set(E_Border *bd, int x, int y, int w, int h)
+e_hints_window_saved_size_set(E_Border *bd)
{
unsigned int sizes[4];
- sizes[0] = x;
- sizes[1] = y;
- sizes[2] = w;
- sizes[3] = h;
+ sizes[0] = bd->saved.x;
+ sizes[1] = bd->saved.y;
+ sizes[2] = bd->saved.w;
+ sizes[3] = bd->saved.h;
ecore_x_window_prop_card32_set(bd->client.win, E_ATOM_SAVED_SIZE, sizes, 4);
}
int
-e_hints_window_saved_size_get(E_Border *bd, int *x, int *y, int *w, int *h)
+e_hints_window_saved_size_get(E_Border *bd)
{
int ret;
int sizes[4];
@@ -1018,10 +1018,10 @@
memset(sizes, 0, sizeof(sizes));
ret = ecore_x_window_prop_card32_get(bd->client.win, E_ATOM_SAVED_SIZE,
sizes, 4);
- if (x) *x = sizes[0];
- if (y) *y = sizes[1];
- if (w) *w = sizes[2];
- if (h) *h = sizes[3];
+ bd->saved.x = sizes[0];
+ bd->saved.y = sizes[1];
+ bd->saved.w = sizes[2];
+ bd->saved.h = sizes[3];
return ret;
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_hints.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- e_hints.h 10 Jul 2005 17:12:01 -0000 1.18
+++ e_hints.h 19 Jul 2005 09:11:21 -0000 1.19
@@ -30,10 +30,8 @@
EAPI void e_hints_window_shade_direction_set(E_Border *bd, E_Direction dir);
EAPI E_Direction e_hints_window_shade_direction_get(E_Border *bd);
-EAPI void e_hints_window_saved_size_set(E_Border *bd,
- int x, int y, int w, int h);
-EAPI int e_hints_window_saved_size_get(E_Border *bd,
- int *x, int *y, int *w, int *h);
+EAPI void e_hints_window_saved_size_set(E_Border *bd);
+EAPI int e_hints_window_saved_size_get(E_Border *bd);
EAPI void e_hints_window_shaded_set(E_Border *bd, int on);
EAPI void e_hints_window_maximized_set(E_Border *bd, int on);
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs