qulogic/libgnt

Enable introspection for GNT
soc.2013.gobjectification.plugins
2014-02-07, Ankit Vani
54ff9fb64abd
Parents ce87619dd973
Children 1a745e722aba
Enable introspection for GNT
  • +32 -0
    Makefile.am
  • +2 -2
    gntbindable.h
  • +4 -4
    gntbox.h
  • +4 -4
    gntbutton.h
  • +4 -4
    gntlabel.h
  • +5 -2
    gnttree.h
  • +4 -4
    gntwidget.h
  • --- a/Makefile.am Thu Feb 06 23:00:37 2014 +0530
    +++ b/Makefile.am Fri Feb 07 01:06:02 2014 +0530
    @@ -89,6 +89,7 @@
    $(GLIB_LIBS) \
    $(GNT_LIBS) \
    $(LIBXML_LIBS) \
    + $(INTROSPECTION_LIBS) \
    $(PY_LIBS)
    AM_CPPFLAGS = \
    @@ -96,5 +97,36 @@
    $(GNT_CFLAGS) \
    $(DEBUG_CFLAGS) \
    $(LIBXML_CFLAGS) \
    + $(INTROSPECTION_CFLAGS) \
    $(PY_CFLAGS)
    +-include $(INTROSPECTION_MAKEFILE)
    +INTROSPECTION_GIRS =
    +INTROSPECTION_SCANNER_ARGS = --add-include-path=$(builddir)
    +INTROSPECTION_COMPILER_ARGS =
    +
    +if HAVE_INTROSPECTION
    +introspection_sources = $(libgnt_lainclude_HEADERS)
    +
    +Gnt-$(GNT_MAJOR_VERSION).$(GNT_MINOR_VERSION).gir: $(builddir)/libgnt.la
    +Gnt_2_8_gir_INCLUDES = GObject-2.0
    +Gnt_2_8_gir_CFLAGS = \
    + $(INCLUDES) \
    + $(GLIB_CFLAGS) \
    + $(GNT_CFLAGS) \
    + $(LIBXML_CFLAGS) \
    + $(INTROSPECTION_CFLAGS) \
    + $(PY_CFLAGS)
    +
    +Gnt_2_8_gir_LIBS = $(builddir)/libgnt.la
    +Gnt_2_8_gir_FILES = $(introspection_sources)
    +INTROSPECTION_GIRS += Gnt-$(GNT_MAJOR_VERSION).$(GNT_MINOR_VERSION).gir
    +
    +girdir = $(INTROSPECTION_GIRDIR)
    +gir_DATA = $(INTROSPECTION_GIRS)
    +
    +typelibdir = $(INTROSPECTION_TYPELIBDIR)
    +typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
    +
    +CLEANFILES += $(gir_DATA) $(typelib_DATA)
    +endif
    --- a/gntbindable.h Thu Feb 06 23:00:37 2014 +0530
    +++ b/gntbindable.h Fri Feb 07 01:06:02 2014 +0530
    @@ -89,8 +89,8 @@
    {
    char *name; /* The name of the action */
    union {
    - gboolean (*action)(GntBindable *bindable, GList *params);
    - gboolean (*action_noparam)(GntBindable *bindable);
    + GntBindableActionCallback action;
    + GntBindableActionCallbackNoParam action_noparam;
    } u;
    };
    --- a/gntbox.h Thu Feb 06 23:00:37 2014 +0530
    +++ b/gntbox.h Fri Feb 07 01:06:02 2014 +0530
    @@ -72,10 +72,10 @@
    GList *focus; /* List of widgets to cycle focus (only valid for parent boxes) */
    /*< private >*/
    - void (*gnt_reserved1)(void);
    - void (*gnt_reserved2)(void);
    - void (*gnt_reserved3)(void);
    - void (*gnt_reserved4)(void);
    + void *res1;
    + void *res2;
    + void *res3;
    + void *res4;
    };
    struct _GntBoxClass
    --- a/gntbutton.h Thu Feb 06 23:00:37 2014 +0530
    +++ b/gntbutton.h Fri Feb 07 01:06:02 2014 +0530
    @@ -57,10 +57,10 @@
    GntButtonPriv *priv;
    /*< private >*/
    - void (*gnt_reserved1)(void);
    - void (*gnt_reserved2)(void);
    - void (*gnt_reserved3)(void);
    - void (*gnt_reserved4)(void);
    + void *res1;
    + void *res2;
    + void *res3;
    + void *res4;
    };
    struct _GntButtonClass
    --- a/gntlabel.h Thu Feb 06 23:00:37 2014 +0530
    +++ b/gntlabel.h Fri Feb 07 01:06:02 2014 +0530
    @@ -51,10 +51,10 @@
    GntTextFormatFlags flags;
    /*< private >*/
    - void (*gnt_reserved1)(void);
    - void (*gnt_reserved2)(void);
    - void (*gnt_reserved3)(void);
    - void (*gnt_reserved4)(void);
    + void *res1;
    + void *res2;
    + void *res3;
    + void *res4;
    };
    struct _GntLabelClass
    --- a/gnttree.h Thu Feb 06 23:00:37 2014 +0530
    +++ b/gnttree.h Fri Feb 07 01:06:02 2014 +0530
    @@ -42,6 +42,9 @@
    #define GNT_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_TREE))
    #define GNT_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_TREE, GntTreeClass))
    +typedef guint (*GntTreeHashFunc)(gconstpointer);
    +typedef gboolean (*GntTreeHashEqualityFunc)(gconstpointer, gconstpointer);
    +
    typedef struct _GntTree GntTree;
    typedef struct _GntTreePriv GntTreePriv;
    typedef struct _GntTreeClass GntTreeClass;
    @@ -78,8 +81,8 @@
    GList *list; /* List of GntTreeRow s */
    GHashTable *hash; /* We need this for quickly referencing the rows */
    - guint (*hash_func)(gconstpointer);
    - gboolean (*hash_eq_func)(gconstpointer, gconstpointer);
    + GntTreeHashFunc hash_func;
    + GntTreeHashEqualityFunc hash_eq_func;
    GDestroyNotify key_destroy;
    GDestroyNotify value_destroy;
    --- a/gntwidget.h Thu Feb 06 23:00:37 2014 +0530
    +++ b/gntwidget.h Fri Feb 07 01:06:02 2014 +0530
    @@ -107,10 +107,10 @@
    WINDOW *window;
    /*< private >*/
    - void (*gnt_reserved1)(void);
    - void (*gnt_reserved2)(void);
    - void (*gnt_reserved3)(void);
    - void (*gnt_reserved4)(void);
    + void *res1;
    + void *res2;
    + void *res3;
    + void *res4;
    };
    struct _GntWidgetClass