add E_Win_Cb typedef

this is mostly cosmetic, but I thought it might be a little more descriptive?
This commit is contained in:
Mike Blumenkrantz 2013-09-04 09:31:26 +01:00
parent f637cbf08e
commit a5e52cbc2d
2 changed files with 6 additions and 4 deletions

View File

@ -228,7 +228,7 @@ static void
_e_win_hide(void *obj) _e_win_hide(void *obj)
{ {
E_Win *win = obj; E_Win *win = obj;
Ecore_Cb cb; E_Win_Cb cb;
if (!win->client) return; if (!win->client) return;
e_object_ref(E_OBJECT(win)); e_object_ref(E_OBJECT(win));

View File

@ -9,6 +9,8 @@ typedef enum _E_Win_Layer
typedef struct _E_Win E_Win; typedef struct _E_Win E_Win;
typedef void (*E_Win_Cb)(E_Win*);
#else #else
#ifndef E_WIN_H #ifndef E_WIN_H
#define 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 min_w, min_h, max_w, max_h, base_w, base_h;
int step_x, step_y; int step_x, step_y;
double min_aspect, max_aspect; double min_aspect, max_aspect;
void (*cb_move) (E_Win *win); E_Win_Cb cb_move;
void (*cb_resize) (E_Win *win); E_Win_Cb cb_resize;
void (*cb_delete) (E_Win *win); E_Win_Cb cb_delete;
void *data; void *data;
struct { struct {