/net/R-cran-twitteR/

g/~lantw44/git/gsoc2013-evolution' title='gsoc2013-evolution Git repository'/>
aboutsummaryrefslogblamecommitdiffstats
path: root/e-util/e-util.h
blob: e1e620558368a93e23ddecb090c499bee80206ee (plain) (tree)
1
2
3
4
5
6
7

                  
                             
                      
 



                        
















                                                        
 
 





















                                                            
              


                        
         






























































                                                                                                          
 
                                                                                                         








                                                                                                                         
                                                                                


                                                                                                        
 



                                                                                                        
 



                                                                                                        
 



                                                                                                                
 
                                                                                                                         




























                                                                                                                                         
 

                        
 
                       
#ifndef _E_UTIL_H_
#define _E_UTIL_H_

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

#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */

#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;\
}


#define E_MAKE_X_TYPE(l,str,t,ci,i,parent,poa_init,offset) \
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 */\