aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-util.h-29002
blob: 132c89e9a0757c7dcea39e1b99e2c3c1e1aa5420 (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
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef _E_UTIL_H_
#define _E_UTIL_H_

#include <glib.h>
#include <gtk/gtktypeutils.h>

#define E_MAKE_TYPE(l,str,t,ci,i,parent) \
GtkType l##_get_type(void)\
{\
    static GtkType type = 0;\
    if (!type){\
        GtkTypeInfo info = {\
            str,\
            sizeof (t),\
            sizeof (t##Class),\
            (GtkClassInitFunc) ci,\
            (GtkObjectInitFunc) i,\
            NULL, /* reserved 1 */\
            NULL, /* reserved 2 */\
            (GtkClassInitFunc) NULL\
        };\
                type = gtk_type_unique (parent, &info);\
    }\
    return type;\
}

typedef enum {
  E_FOCUS_NONE,
  E_FOCUS_CURRENT,
  E_FOCUS_START,
  E_FOCUS_END
} EFocus;

int  g_str_compare  (const void *x, const void *y);
int  g_int_compare  (const void *x, const void *y);

char *e_strdup_strip  (char *string);

void  e_free_object_list  (GList *list);
void  e_free_string_list  (GList *list);

char *e_read_file  (const char *filename);
gint e_write_file(const char *filename, const char *data, int flags);

#endif /* _E_UTIL_H_ */
id=33c5c3328a4ad0042e5972154fee00801a495e55'>ve
Commit message (Expand)AuthorAgeFilesLines
* - Unbreak build after tty changespav2008-05-071-3/+3
* - Use termios instead of sgtty.chinsan2008-05-013-0/+113
* - Remove chinsan2.twbbs.org, distfiles moved to LOCALrafan2007-01-291-2/+1
* Change the following ports to my FreeBSD.org email.chinsan2006-10-031-1/+1
* NTHU-CS Maple BBS 2.36 BBS-like editorpav2006-03-216-0/+113
* - Remove expired portspav2006-01-156-114/+0
* - Add SHA256pav2005-11-251-0/+1
* - Mark it as DEPRECATEDgarga2005-10-261-0/+3
* Reset bouncing maintainer address. These ports are now available forlinimon2005-07-261-1/+1
* - Pass maintainership to submittersem2005-01-081-1/+1
* Clean up time for email addresses MIA!edwin2004-10-251-1/+1
* SIZEify (maintainer timeout)trevor2004-03-31