add E_Win_Cb typedef
authorMike Blumenkrantz <zmike@samsung.com>
Wed, 4 Sep 2013 08:31:26 +0000 (09:31 +0100)
committerMike Blumenkrantz <zmike@samsung.com>
Wed, 15 Jan 2014 01:28:58 +0000 (20:28 -0500)
this is mostly cosmetic, but I thought it might be a little more descriptive?

src/bin/e_win.c
src/bin/e_win.h

index 4ae57b5..ade5d0f 100644 (file)
@@ -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));
index f723cef..65bf6b3 100644 (file)
@@ -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 {