diff options
author | Mike Blumenkrantz <zmike@samsung.com> | 2013-09-04 09:31:26 +0100 |
---|---|---|
committer | Mike Blumenkrantz <zmike@samsung.com> | 2014-01-13 01:14:15 -0500 |
commit | 7054311f5097a06464025ffd7374529c5cc2263d (patch) | |
tree | 0f2cf287a2d495fa85160e4efddd147d6c2230f1 | |
parent | 1b36641278e3c435501a1ee8762b55e2b9ce7095 (diff) | |
download | enlightenment-7054311f5097a06464025ffd7374529c5cc2263d.tar.gz |
add E_Win_Cb typedef
this is mostly cosmetic, but I thought it might be a little more descriptive?
-rw-r--r-- | src/bin/e_win.c | 2 | ||||
-rw-r--r-- | src/bin/e_win.h | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/bin/e_win.c b/src/bin/e_win.c index 4ae57b5c88..ade5d0fd41 100644 --- a/src/bin/e_win.c +++ b/src/bin/e_win.c @@ -228,7 +228,7 @@ static void _e_win_hide(void *obj) { E_Win *win = obj; - Ecore_Cb cb; + E_Win_Cb cb; if (!win->client) return; e_object_ref(E_OBJECT(win)); diff --git a/src/bin/e_win.h b/src/bin/e_win.h index f723cef9c6..65bf6b38ac 100644 --- a/src/bin/e_win.h +++ b/src/bin/e_win.h @@ -9,6 +9,8 @@ typedef enum _E_Win_Layer typedef struct _E_Win E_Win; +typedef void (*E_Win_Cb)(E_Win*); + #else #ifndef E_WIN_H #define E_WIN_H @@ -29,9 +31,9 @@ struct _E_Win int min_w, min_h, max_w, max_h, base_w, base_h; int step_x, step_y; double min_aspect, max_aspect; - void (*cb_move) (E_Win *win); - void (*cb_resize) (E_Win *win); - void (*cb_delete) (E_Win *win); + E_Win_Cb cb_move; + E_Win_Cb cb_resize; + E_Win_Cb cb_delete; void *data; struct { |