platform/upstream/gobject-introspection.git
14 years ago[g_property_info_get_flags] Document properly
Johan Dahlin [Sat, 12 Jun 2010 00:06:02 +0000 (21:06 -0300)]
[g_property_info_get_flags] Document properly

14 years ago[docs] Add missing symbols
Johan Dahlin [Sat, 12 Jun 2010 00:05:48 +0000 (21:05 -0300)]
[docs] Add missing symbols

14 years ago[gitypelib-internal.h] Add missing <public>
Johan Dahlin [Sat, 12 Jun 2010 00:05:42 +0000 (21:05 -0300)]
[gitypelib-internal.h] Add missing <public>

14 years ago[GIObjectInfo] Document and check types
Johan Dahlin [Fri, 11 Jun 2010 23:51:32 +0000 (20:51 -0300)]
[GIObjectInfo] Document and check types

14 years ago[GICallableInfo] Fix a typo in the doc
Johan Dahlin [Fri, 11 Jun 2010 23:16:29 +0000 (20:16 -0300)]
[GICallableInfo] Fix a typo in the doc

14 years ago[docs] Add struct hierarchy to each section
Johan Dahlin [Fri, 11 Jun 2010 23:16:00 +0000 (20:16 -0300)]
[docs] Add struct hierarchy to each section

14 years ago[GIVFuncInfo] Document and check args
Johan Dahlin [Fri, 11 Jun 2010 14:11:01 +0000 (11:11 -0300)]
[GIVFuncInfo] Document and check args

14 years ago[GIPropertyInfo] Document and check args
Johan Dahlin [Fri, 11 Jun 2010 14:10:52 +0000 (11:10 -0300)]
[GIPropertyInfo] Document and check args

14 years ago[cachestore] Add versioning
Johan Dahlin [Thu, 10 Jun 2010 17:27:16 +0000 (14:27 -0300)]
[cachestore] Add versioning

Version the cache by checking the SHA1 of the content of all
python source files. If the SHA1 hash differs, just regenerate the
cache.

https://bugzilla.gnome.org/show_bug.cgi?id=568842

14 years agoAllow for methods in GLib
Tomeu Vizoso [Wed, 9 Jun 2010 08:26:26 +0000 (10:26 +0200)]
Allow for methods in GLib

* girepository/gitypelib.c: Don't complain about constructors
  returning types other than objects or interfaces if the container
  type isn't an object or interface itself.

* giscanner/glibtransformer.py: Don't give up parsing a method just
  because it's in the GLib namespace.

https://bugzilla.gnome.org/show_bug.cgi?id=621069

14 years agoUse a default value for transfer-ownership in properties.
Tomeu Vizoso [Tue, 8 Jun 2010 17:20:06 +0000 (19:20 +0200)]
Use a default value for transfer-ownership in properties.

14 years agoSupport the (transfer) annotation for properties.
Tomeu Vizoso [Tue, 8 Jun 2010 14:40:35 +0000 (16:40 +0200)]
Support the (transfer) annotation for properties.

* girepository/*: Add g_property_info_get_ownership_transfer() and write
  the transfer attribute of properties into the typelib.

* giscanner/*: Parse the (transfer) annotation and write it into the .gir.

* tools/generate.c: Read the transfer annotation for properties and write
  to the .tgir.

https://bugzilla.gnome.org/show_bug.cgi?id=620484

14 years agoPhilip, you didn't write all of this
Johan Dahlin [Tue, 8 Jun 2010 14:25:12 +0000 (11:25 -0300)]
Philip, you didn't write all of this

14 years agoAnnotate GVariant as a foreign struct
Tomeu Vizoso [Tue, 8 Jun 2010 13:42:10 +0000 (15:42 +0200)]
Annotate GVariant as a foreign struct

14 years ago[gisignalinfo] Document and check parameters
Johan Dahlin [Mon, 7 Jun 2010 20:20:02 +0000 (17:20 -0300)]
[gisignalinfo] Document and check parameters

14 years agoMakefile.introspection: add support for gir_LDFLAGS
Steve Frécinaux [Mon, 7 Jun 2010 17:58:57 +0000 (19:58 +0200)]
Makefile.introspection: add support for gir_LDFLAGS

This allows specifying LDFLAGS for the introspection scanner.

LDFLAGS are currently just appended to the CFLAGS as the current scanner
doesn't make the difference between both, but it looked wrong to include
LDFLAGS in the middle of CFLAGS for g-ir-scanner.

https://bugzilla.gnome.org/show_bug.cgi?id=620875

14 years ago[girwriter] Refactor out of generate.c
Johan Dahlin [Mon, 7 Jun 2010 13:52:43 +0000 (10:52 -0300)]
[girwriter] Refactor out of generate.c

Move out the girwriter out of generate.c. Still a private API,
but that will probably change in the future.

14 years ago[generate] Get rid of globals
Johan Dahlin [Mon, 7 Jun 2010 13:41:00 +0000 (10:41 -0300)]
[generate] Get rid of globals

Get rid of all globals in gir generator, in preparation for
moving all code into libgirepository

14 years ago[Makefile.am] Reindent
Johan Dahlin [Mon, 7 Jun 2010 13:29:53 +0000 (10:29 -0300)]
[Makefile.am] Reindent

14 years ago[girepository] Kill girffi-private.h
Johan Dahlin [Mon, 7 Jun 2010 02:22:57 +0000 (23:22 -0300)]
[girepository] Kill girffi-private.h

14 years ago[girepository] Don't include girffi.h everywhere
Johan Dahlin [Mon, 7 Jun 2010 02:17:46 +0000 (23:17 -0300)]
[girepository] Don't include girffi.h everywhere

14 years ago[giregisteredtypeinfo] Document and check parameters
Johan Dahlin [Mon, 7 Jun 2010 02:04:15 +0000 (23:04 -0300)]
[giregisteredtypeinfo] Document and check parameters

14 years ago[gitypes] Remove a comment and move G_END_DECLS
Johan Dahlin [Mon, 7 Jun 2010 01:57:28 +0000 (22:57 -0300)]
[gitypes] Remove a comment and move G_END_DECLS

14 years ago[build] Install gistructinfo.h
Johan Dahlin [Mon, 7 Jun 2010 01:57:14 +0000 (22:57 -0300)]
[build] Install gistructinfo.h

14 years ago[giconstantinfo] Document and check parameters
Johan Dahlin [Mon, 7 Jun 2010 01:48:08 +0000 (22:48 -0300)]
[giconstantinfo] Document and check parameters

14 years ago[gifieldinfo] Document g_field_info_get_flags
Johan Dahlin [Mon, 7 Jun 2010 01:47:50 +0000 (22:47 -0300)]
[gifieldinfo] Document g_field_info_get_flags

14 years agoRemove left-over comments
Johan Dahlin [Mon, 7 Jun 2010 01:47:21 +0000 (22:47 -0300)]
Remove left-over comments

14 years ago[giregisteredtype] Flags have a GType
Johan Dahlin [Mon, 7 Jun 2010 01:47:02 +0000 (22:47 -0300)]
[giregisteredtype] Flags have a GType

14 years ago[gifunction.h] Move GIFunctionInfoFlags to gitypes.h
Johan Dahlin [Sun, 6 Jun 2010 22:53:41 +0000 (19:53 -0300)]
[gifunction.h] Move GIFunctionInfoFlags to gitypes.h

14 years ago[girepository] Move the rest out of ginfo.ch
Johan Dahlin [Sun, 6 Jun 2010 22:52:12 +0000 (19:52 -0300)]
[girepository] Move the rest out of ginfo.ch

14 years ago[girepository] Move GIRegisteredTypeInfo out of ginfo.ch
Johan Dahlin [Sun, 6 Jun 2010 22:28:35 +0000 (19:28 -0300)]
[girepository] Move GIRegisteredTypeInfo out of ginfo.ch

14 years ago[shlib] Use ldd on all non-Darwin platforms
Johan Dahlin [Sun, 6 Jun 2010 22:18:33 +0000 (19:18 -0300)]
[shlib] Use ldd on all non-Darwin platforms

14 years ago[gifieldinfo] Document, indent and check params
Johan Dahlin [Sun, 6 Jun 2010 16:35:14 +0000 (13:35 -0300)]
[gifieldinfo] Document, indent and check params

Document the remaining functions, indent to match coding style
and check so that all info params are set and of the right type.

14 years ago[gifunctioninfo] Move over invoke function
Johan Dahlin [Sun, 6 Jun 2010 16:22:29 +0000 (13:22 -0300)]
[gifunctioninfo] Move over invoke function

Move over g_function_info_invoke to gifunctioninfo.c

14 years ago[gfield] Move over field set/get impl.
Johan Dahlin [Sun, 6 Jun 2010 16:15:14 +0000 (13:15 -0300)]
[gfield] Move over field set/get impl.

Move over the GIFieldInfo set/get value implementation
over to gifieldinfo.c

14 years ago[girepository] Move GIFieldInfo out of ginfo.ch
Johan Dahlin [Sun, 6 Jun 2010 16:11:23 +0000 (13:11 -0300)]
[girepository] Move GIFieldInfo out of ginfo.ch

14 years ago[girepository] Move GIEnumInfo out of ginfo.ch
Johan Dahlin [Sun, 6 Jun 2010 16:06:30 +0000 (13:06 -0300)]
[girepository] Move GIEnumInfo out of ginfo.ch

14 years ago[girepository] Move GIErrorDomainInfo out of ginfo.ch
Johan Dahlin [Sun, 6 Jun 2010 16:01:26 +0000 (13:01 -0300)]
[girepository] Move GIErrorDomainInfo out of ginfo.ch

14 years ago[girepository] Move GITypeInfo out of ginfo.ch
Johan Dahlin [Sun, 6 Jun 2010 15:58:13 +0000 (12:58 -0300)]
[girepository] Move GITypeInfo out of ginfo.ch

14 years ago[configure] Remove gcov leftover
Johan Dahlin [Sat, 5 Jun 2010 16:00:51 +0000 (13:00 -0300)]
[configure] Remove gcov leftover

14 years ago[girepository] Move the enums
Johan Dahlin [Sat, 5 Jun 2010 15:59:33 +0000 (12:59 -0300)]
[girepository] Move the enums

Move the est of the enums over to gitypes.h

14 years ago[girepository] Move GIArgInfo out of ginfo.ch
Johan Dahlin [Sat, 5 Jun 2010 15:40:15 +0000 (12:40 -0300)]
[girepository] Move GIArgInfo out of ginfo.ch

14 years ago[gitypes.h] Do not include gibaseinfo.h
Johan Dahlin [Sat, 5 Jun 2010 15:39:21 +0000 (12:39 -0300)]
[gitypes.h] Do not include gibaseinfo.h

To avoid cyclic dependencies

14 years ago[girepository] Fix a couple of typos
Johan Dahlin [Sat, 5 Jun 2010 15:39:00 +0000 (12:39 -0300)]
[girepository] Fix a couple of typos

14 years ago[girepository] Move GICallableInfo out of ginfo.ch
Johan Dahlin [Sat, 5 Jun 2010 15:11:58 +0000 (12:11 -0300)]
[girepository] Move GICallableInfo out of ginfo.ch

14 years ago[shlibs] Make pep8.py happy
Johan Dahlin [Sat, 5 Jun 2010 15:10:35 +0000 (12:10 -0300)]
[shlibs] Make pep8.py happy

14 years ago[scanner] Barf if running on unsupported platform
Johan Dahlin [Fri, 4 Jun 2010 12:59:15 +0000 (09:59 -0300)]
[scanner] Barf if running on unsupported platform

Let us know explicitly if the platform is unsupported by
the scanner.

14 years agouse "otool -L" instead of "ldd" on Darwin
Alexey Zakhlestin [Fri, 4 Jun 2010 10:44:01 +0000 (14:44 +0400)]
use "otool -L" instead of "ldd" on Darwin

https://bugzilla.gnome.org/show_bug.cgi?id=606686

14 years agoDo not include preprocessor flags into GLib_2_0_gir_CFLAGS
Alexey Zakhlestin [Fri, 4 Jun 2010 10:35:24 +0000 (14:35 +0400)]
Do not include preprocessor flags into GLib_2_0_gir_CFLAGS

https://bugzilla.gnome.org/show_bug.cgi?id=606686

14 years agoPost-release version bump
Colin Walters [Thu, 3 Jun 2010 20:14:21 +0000 (16:14 -0400)]
Post-release version bump

14 years agoPost-release version bump GOBJECT_INTROSPECTION_0_6_14
Colin Walters [Thu, 3 Jun 2010 19:04:04 +0000 (15:04 -0400)]
Post-release version bump

14 years agoFix marshalling of GStrv. GOBJECT_INTROSPECTION_0_6_13
Tomeu Vizoso [Wed, 2 Jun 2010 17:36:59 +0000 (19:36 +0200)]
Fix marshalling of GStrv.

* gir/gimarshallingtests.[hc]: Add a test for GStrv in function args and
as struct fields.

* girepository/giroffsets.c: Correctly compute the size of structs with
  array fields

* girepository/girparser.c: Set is_pointer to FALSE for arrays with
  fixed size that are inside structs.

* giscanner/glibtransformer.py: Special case GStrv as arrays of utf8.

* giscanner/annotationparser.py: Make full transfer the default for
arrays of char* returned by functions.

https://bugzilla.gnome.org/show_bug.cgi?id=620170

14 years agoFix the relative path that contains the girepositoryheaders
Tomeu Vizoso [Tue, 1 Jun 2010 13:41:51 +0000 (15:41 +0200)]
Fix the relative path that contains the girepositoryheaders

14 years agoAdd Cursor record to xlib-2.0.gir
Tomeu Vizoso [Tue, 1 Jun 2010 13:33:12 +0000 (15:33 +0200)]
Add Cursor record to xlib-2.0.gir

14 years ago[girepository] Fix the remaning headers as well
Johan Dahlin [Tue, 1 Jun 2010 13:23:46 +0000 (10:23 -0300)]
[girepository] Fix the remaning headers as well

14 years ago[girepository] Fix include path
Johan Dahlin [Tue, 1 Jun 2010 13:15:12 +0000 (10:15 -0300)]
[girepository] Fix include path

We're installing the headers without the girepository/ prefix,
so remove that in all internal headers to not break the out of
tree scanning.

14 years ago[gifunctioninfo] Move out to another file
Johan Dahlin [Mon, 31 May 2010 20:54:42 +0000 (17:54 -0300)]
[gifunctioninfo] Move out to another file

Move out GIFunctionInfo to gifunctioninfo.[ch]

14 years agoUpdate .gitignore
Johan Dahlin [Mon, 31 May 2010 20:45:48 +0000 (17:45 -0300)]
Update .gitignore

14 years ago[gtypelib.ch] Rename to gitypelib.ch
Johan Dahlin [Mon, 31 May 2010 20:44:46 +0000 (17:44 -0300)]
[gtypelib.ch] Rename to gitypelib.ch

Rename gtypelib.h -> gitypelib-internal.h and rename
gtypelib.c to gitypelib.c

14 years ago[girepository] Split out GIBaseInfo
Johan Dahlin [Mon, 31 May 2010 20:41:45 +0000 (17:41 -0300)]
[girepository] Split out GIBaseInfo

Split out GIBaseInfo to a separate source file.
Move out definitions to gibaseinfo.h/gitypelib.h/gitypes.h
and girepository-private.h

Install gibaseinfo.h/gitypelib.h and gitypes.h as well, but
require users to include girepository.h

14 years ago[everything] Re-generate after doc changes
Johan Dahlin [Mon, 31 May 2010 20:28:07 +0000 (17:28 -0300)]
[everything] Re-generate after doc changes

The gtk-doc parser is a big stricter now, which
changed the weird comments written in everything.c

14 years ago[common.mk] Add -I$(top_srcdir)
Johan Dahlin [Mon, 31 May 2010 20:27:02 +0000 (17:27 -0300)]
[common.mk] Add -I$(top_srcdir)

This is needed to be able to find the public headers without
having them installed.

14 years ago[giscanner] Parse multiline gtk-doc comments
Johan Dahlin [Mon, 31 May 2010 19:13:45 +0000 (16:13 -0300)]
[giscanner] Parse multiline gtk-doc comments

14 years ago[docs] Fix a typo in the overview
Johan Dahlin [Mon, 31 May 2010 13:20:30 +0000 (10:20 -0300)]
[docs] Fix a typo in the overview

Regenerate PNG

14 years ago[docs] Add an overview page
Johan Dahlin [Mon, 31 May 2010 02:33:47 +0000 (23:33 -0300)]
[docs] Add an overview page

Add an overview page for the documentation with a simple
diagram explaining the relationship between the main components.

14 years ago[girepository] Correct GI_IS_ENUM_INFO macro
Johan Dahlin [Mon, 31 May 2010 00:56:25 +0000 (21:56 -0300)]
[girepository] Correct GI_IS_ENUM_INFO macro

A GIEnumInfo represents either an enum or a set of flags

14 years ago[ginfo] Document enum and enum values
Johan Dahlin [Mon, 31 May 2010 00:55:55 +0000 (21:55 -0300)]
[ginfo] Document enum and enum values

Document GIEnumInfo and GIValueInfo

14 years ago[info] Fix-up prototype indentation
Johan Dahlin [Mon, 31 May 2010 00:55:45 +0000 (21:55 -0300)]
[info] Fix-up prototype indentation

14 years ago[build] Remove gcov support
Johan Dahlin [Fri, 28 May 2010 23:49:54 +0000 (20:49 -0300)]
[build] Remove gcov support

It's been broken for some time, remove it instead of letting
it bitrot.

14 years ago[doc] Document GIErrorDomainInfo methods
Johan Dahlin [Fri, 28 May 2010 23:49:39 +0000 (20:49 -0300)]
[doc] Document GIErrorDomainInfo methods

14 years ago[docs] Link to top of pages
Johan Dahlin [Fri, 28 May 2010 23:49:26 +0000 (20:49 -0300)]
[docs] Link to top of pages

14 years ago[GITypeInfo] Document and check type
Johan Dahlin [Fri, 28 May 2010 16:47:48 +0000 (13:47 -0300)]
[GITypeInfo] Document and check type

Document GITypeInfo and check the info type in all functions.

14 years agoRemove leftover function
Johan Dahlin [Fri, 28 May 2010 11:49:49 +0000 (08:49 -0300)]
Remove leftover function

14 years ago[girepository] Check types function/callable/arg
Johan Dahlin [Fri, 28 May 2010 02:24:42 +0000 (23:24 -0300)]
[girepository] Check types function/callable/arg

Check the info types for functions, callable and args.
Verifies that the right type is sent in

14 years ago[girepository] Add macros for checking struct type
Johan Dahlin [Fri, 28 May 2010 02:18:58 +0000 (23:18 -0300)]
[girepository] Add macros for checking struct type

Add macros for checking the sub-struct type. These are
similar to the standard GObject macros.

14 years ago[docs] SignalInfo is a sub-struct of CallableInfo
Johan Dahlin [Fri, 28 May 2010 02:17:58 +0000 (23:17 -0300)]
[docs] SignalInfo is a sub-struct of CallableInfo

14 years ago[GIMarshallingTests] Fix incorrect array sizes
Colin Walters [Thu, 27 May 2010 18:23:17 +0000 (14:23 -0400)]
[GIMarshallingTests] Fix incorrect array sizes

14 years agoRemove g_arg_info_is_dipper from documentation
Johan Dahlin [Thu, 27 May 2010 13:18:56 +0000 (10:18 -0300)]
Remove g_arg_info_is_dipper from documentation

14 years agoAdd type annotation for properties
Johan Dahlin [Mon, 10 May 2010 22:00:14 +0000 (19:00 -0300)]
Add type annotation for properties

Add type annotation syntax for GObject properties. This makes
it possible to override the type of a property. For instance,
this will allow function pointers with a G_TYPE_POINTER type set
to be used from a language binding which reads the typelib information
in addition g_object_class_find_property.

https://bugzilla.gnome.org/show_bug.cgi?id=618318

14 years ago[g-ir-generate] Write out array type
Johan Dahlin [Thu, 27 May 2010 03:17:56 +0000 (00:17 -0300)]
[g-ir-generate] Write out array type

For GLib arrays, write out the array type to the tgir

14 years ago[scanner] Element-type annotation for GArray types
Johan Dahlin [Thu, 27 May 2010 03:08:20 +0000 (00:08 -0300)]
[scanner] Element-type annotation for GArray types

Add support for (element-type) annotations for G*Array
types.

https://bugzilla.gnome.org/show_bug.cgi?id=619545

14 years ago[annotationparser] Avoid a couple of \
Johan Dahlin [Thu, 27 May 2010 03:04:28 +0000 (00:04 -0300)]
[annotationparser] Avoid a couple of \

14 years agoRemove g_arg_info_is_dipper from public API
Colin Walters [Wed, 26 May 2010 22:14:39 +0000 (18:14 -0400)]
Remove g_arg_info_is_dipper from public API

It wasn't useful, the new g_arg_info_is_caller_allocates is.

14 years ago[girparser] Don't hard require caller-allocates since it breaks parsing
Colin Walters [Wed, 26 May 2010 17:52:36 +0000 (13:52 -0400)]
[girparser] Don't hard require caller-allocates since it breaks parsing

We need to support parsing older .girs for inclusion purposes.  (But
we should probably have an explicit .gir version, and require the
attribute for newer versions)

14 years ago[common.mk] Add builddir,srcdir and top_srcdir/gir
Johan Dahlin [Wed, 26 May 2010 17:05:19 +0000 (14:05 -0300)]
[common.mk] Add builddir,srcdir and top_srcdir/gir

They are now required with the updated Makefile.introspection rules,
as the path to cairo-1.0.gir is no longer absolute we will have to add
the src manually as it's references when srcdir != builddir, for instance
in make distcheck.

14 years ago[common.mk] Clean up, avoid excessive variables
Johan Dahlin [Wed, 26 May 2010 17:04:37 +0000 (14:04 -0300)]
[common.mk] Clean up, avoid excessive variables

Just define the ones we need, that are actually used by
the other makefiles.

14 years agoSupport (out caller-allocates)
Colin Walters [Wed, 16 Dec 2009 16:47:19 +0000 (11:47 -0500)]
Support (out caller-allocates)

People have wanted support for marking (out) on functions of the
form:

/**
 * clutter_color_from_pixel:
 * @pixel: A pixel
 * @color: (out): Color to initialize with value of @pixel
 */
void
clutter_color_from_pixel (guint32 pixel, ClutterColor *color);

Where the caller is supposed to have allocated the argument; the
C function just initializes it.  This patch adds support for this
argument passing style to introspection.  In this case, we see the
(out), and notice that there's only a single indirection (*) on
the argument, and assume that this means (out caller-allocates).

https://bugzilla.gnome.org/show_bug.cgi?id=604749

14 years ago[scanner] Support unsigned long/short int
Alan Knowles [Sat, 3 Apr 2010 10:09:31 +0000 (18:09 +0800)]
[scanner] Support unsigned long/short int

14 years ago[sourcescanner] Support for line numbers on Symbol
Alan Knowles [Sun, 4 Apr 2010 08:52:24 +0000 (16:52 +0800)]
[sourcescanner] Support for line numbers on Symbol

Add line numbers to symbols, which can be useful
in later stages of the scanner.

14 years ago[glib] Skip g_date_to_struct_tm as skip
Johan Dahlin [Tue, 25 May 2010 17:02:17 +0000 (14:02 -0300)]
[glib] Skip g_date_to_struct_tm as skip

14 years ago[docs] Add a struct hierarchy page
Johan Dahlin [Tue, 25 May 2010 12:49:36 +0000 (09:49 -0300)]
[docs] Add a struct hierarchy page

14 years agoPost-release version bump
Colin Walters [Mon, 24 May 2010 21:22:36 +0000 (17:22 -0400)]
Post-release version bump

14 years agoAdd support for the 'foreign' annotation to g-i-scanner GOBJECT_INTROSPECTION_0_6_12
Tomeu Vizoso [Sun, 23 May 2010 18:38:55 +0000 (20:38 +0200)]
Add support for the 'foreign' annotation to g-i-scanner

https://bugzilla.gnome.org/show_bug.cgi?id=619450

14 years agoAdd GInitiallyUnknowned subclass to Everything for testing floating references
Tomeu Vizoso [Sat, 22 May 2010 12:08:45 +0000 (14:08 +0200)]
Add GInitiallyUnknowned subclass to Everything for testing floating references

14 years ago[docs] Document GICallableInfo and GIArgInfo
Johan Dahlin [Fri, 21 May 2010 21:30:58 +0000 (18:30 -0300)]
[docs] Document GICallableInfo and GIArgInfo

Make docs more consistent and also fix a couple of broken links

14 years agoremove unnecessary $(srcdir)s from Makefile.am
Dan Winship [Thu, 20 May 2010 14:29:32 +0000 (10:29 -0400)]
remove unnecessary $(srcdir)s from Makefile.am

https://bugzilla.gnome.org/show_bug.cgi?id=616425

14 years agoMakefile.introspection: use $^, simplifying non-srcdir builds
Dan Winship [Wed, 21 Apr 2010 18:55:17 +0000 (14:55 -0400)]
Makefile.introspection: use $^, simplifying non-srcdir builds

In the .gir-building rule, use "$^" to refer to the source files,
since that automatically looks in both $(srcdir) and $(builddir). This
is particularly important since certain generated files will be in
$(builddir) when building from git, but in $(srcdir) when building
from tarballs

If you were previously prefixing $(srcdir) to the Foo_gir_FILES
members by hand, you should stop now.

(Also, removed the dependencies on $(INTROSPECTION_SCANNER) and
$(INTROSPECTION_COMPILER) for the .gir/.typelib rules, since the
scanner one was broken anyway, and we don't have that kind of
dependency for other rules (eg, making .o files depend on
/usr/bin/gcc).)

https://bugzilla.gnome.org/show_bug.cgi?id=616425

14 years ago[girepository] Use g_slice
Johan Dahlin [Thu, 20 May 2010 14:33:49 +0000 (11:33 -0300)]
[girepository] Use g_slice

Use g_slice to allocate instead of g_new(x, 1); It uses a memory
pool internally and should be faster, especially for GBaseInfo/GRealInfo,
structs which are tiny.

14 years ago[docs] Make gtk-doc language consistent.
Johan Dahlin [Wed, 19 May 2010 23:57:19 +0000 (20:57 -0300)]
[docs] Make gtk-doc language consistent.

Make the language we use in the gtk-doc comments
more consistent. Add transfer annotation for all functions
returning a struct and mention how they should be freed.

14 years ago[docs] Reorganize sections
Johan Dahlin [Wed, 19 May 2010 23:56:18 +0000 (20:56 -0300)]
[docs] Reorganize sections

Mark macros as standard and a couple of structs
as private. Remove multiple defintion of GITypelib to reduce
gtk-doc spew.