aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-cursors.h
blob: 771e5f6d4d2d153bccaa0359227f71b6fcdae7f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef E_CURSORS_H
#define E_CURSORS_H

/* Copied from Gnumeric */

typedef enum {
    E_CURSOR_THIN_CROSS,
    E_CURSOR_ARROW,
    E_CURSOR_MOVE,
    E_CURSOR_SIZE_X,
    E_CURSOR_SIZE_Y,
    E_NUM_CURSORS
} ECursorType;

void    e_cursors_init      (void);
void    e_cursors_shutdown  (void);

#define e_cursor_set(win, c)                       \
G_STMT_START {                             \
     if (win)                              \
         gdk_window_set_cursor (win, e_cursor_get (c)); \
} G_STMT_END

#define e_cursor_set_widget(w, c)                            \
G_STMT_START {                                       \
     if (GTK_WIDGET (w)->window)                             \
    gdk_window_set_cursor (GTK_WIDGET (w)->window, e_cursor_get (c)); \
} G_STMT_END

GdkCursor *e_cursor_get (ECursorType type);

#endif /* E_CURSORS_H */

15-09-031-6/+5 * over to enlightenment@bapt2015-04-171-1/+1 * Back to the pool.gblach2015-04-171-1/+1 * Update to 1.0.16gblach2015-02-222-4/+3 * - Remove Mk/bsd.efl.mkgblach2014-12-271-1/+3 * Update to 1.0.15gblach2014-12-132-4/+4 * Take maintainershipgblach2014-12-111-1/+1 * - Reset maintainership of my portsgahr2014-12-111-1/+1 * - Update to 1.0.14.001gahr2014-10-173-108/+23 * - Add LICENSEgahr2014-09-051-0/+2 * - Switch to USES=libtoolamdmi32014-07-311-2/+1 * - Update to 1.0.14gahr2014-03-312-4/+5 * - Update to 1.0.13.004gahr2014-02-172-4/+5 * - Fix COMMENT and pkg-descrgahr2013-10-282-4/+5 * - Remove manual creation and removal of share/applications, as it's now in th...amdmi32013-10-221-1/+0 * - Get rid of MAN1 macrogahr2013-10-172-1/+1 * - Update to 1.0.13.003gahr2013-10-142-7/+6 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * Add explicit dependency on pkgconfbapt2013-08-311-2/+1 * - Update to 1.0.13.0gahr2013-08-213-4/+5 * - Remove debug CFLAGS introduced by my last commitgahr2013-06-051-1/+0 * - Convert USE_ICONV=yes to USES=iconvmva2013-04-281-2/+1 * - Convert USE_GETTEXT to USES (part 3)ak2013-04-251-2/+2 * - Update to 1.0.13gahr2013-04-222-3/+4 * - Update to 1.0.12gahr2013-03-282-4/+4 * - Remove debug flagsgahr2013-03-201-1/+0 * - Fix post-patch targetgahr2013-03-151-2/+3 * - Update to 1.0.11.002gahr2013-03-072-3/+4 * - Fix NLSgahr2013-02-181-4/+7 * - Update to 1.0.11.001gahr2013-02-183-13/+16 * - Update to 1.0.11gahr2012-10-102-13/+12 * - Update to 1.0.10.002gahr2012-09-103-9/+8 * - Update to 1.0.10.001gahr2012-07-103-6/+5