introspection support

Bug #1080117 reported by Alan Knowles on 2012-11-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GtkHotkey
Undecided
Unassigned

Bug Description

Changes below - it's a 2 minute fix..

build test:
autoreconf --force --install ; make

A)
remove two duplicate definitions in gtk-hotkey-info.h

B)
Add this to configure.m4
GOBJECT_INTROSPECTION_CHECK([1.30.0])

C)
Add the below to src/Makefile.am

include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)

if HAVE_INTROSPECTION
  introspection_sources = \
  gtk-hotkey-info.h \
  gtk-hotkey-key-file-registry.h \
  gtk-hotkey-listener.h \
  gtk-hotkey-registry.h \
  gtk-hotkey-x11-listener.h \
 gtk-hotkey-private.h \
    gtk-hotkey-marshal.h \
  gtk-hotkey-error.h \
  gtk-hotkey-utils.h

  GtkHotkey-1.0.gir: libgtkhotkey.la
  GtkHotkey_1_0_gir_INCLUDES = GObject-2.0
  GtkHotkey_1_0_gir_CFLAGS = $(INCLUDES)
  GtkHotkey_1_0_gir_LIBS = libgtkhotkey.la
  GtkHotkey_1_0_gir_FILES = $(introspection_sources)
  INTROSPECTION_GIRS += GtkHotkey-1.0.gir

  girdir = $(datadir)/gir-1.0
  gir_DATA = $(INTROSPECTION_GIRS)

  typelibdir = $(libdir)/girepository-1.0
  typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)

  CLEANFILES = $(gir_DATA) $(typelib_DATA)
endif

Alan Knowles (alan-akbkhome) wrote :

--- correction --- INCLUDES - should be Gio-2.0

include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)

if HAVE_INTROSPECTION
  introspection_sources = \
  gtk-hotkey-info.h \
  gtk-hotkey-key-file-registry.h \
  gtk-hotkey-listener.h \
  gtk-hotkey-registry.h \
  gtk-hotkey-x11-listener.h \
 gtk-hotkey-private.h \
    gtk-hotkey-marshal.h \
  gtk-hotkey-error.h \
  gtk-hotkey-utils.h

  GtkHotkey-1.0.gir: libgtkhotkey.la
  GtkHotkey_1_0_gir_INCLUDES = Gio-2.0
  GtkHotkey_1_0_gir_CFLAGS = $(INCLUDES)
  GtkHotkey_1_0_gir_LIBS = libgtkhotkey.la
  GtkHotkey_1_0_gir_FILES = $(introspection_sources)
  INTROSPECTION_GIRS += GtkHotkey-1.0.gir

  girdir = $(datadir)/gir-1.0
  gir_DATA = $(INTROSPECTION_GIRS)

  typelibdir = $(libdir)/girepository-1.0
  typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)

  CLEANFILES = $(gir_DATA) $(typelib_DATA)
endif

Alan Knowles (alan-akbkhome) wrote :

Annotation needed on info_new - for allow-none
/**
 * gtk_hotkey_info_new:
 * @app_id:
 * @key_id:
 * @signature:
 * @app_info: (allow-none):
 */

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers