Bertrand Lorentz
687e986c55
generator: Add using statements in generated code for generics
2012-11-03 17:03:31 +01:00
Bertrand Lorentz
f748be34c1
generator: Implement Parameters using the generics class List<T>
...
A first step in the wonderful world of strong-typed collections. We
don't need to limit ourselves to the old ways of the .NET 1.1 profile.
2012-11-03 16:56:51 +01:00
Bertrand Lorentz
d467cce6e6
generator: Move some classes from Parameters.cs into their own file
...
This is just code being moved around, there are no real code changes.
2012-11-03 15:46:06 +01:00
Bertrand Lorentz
b8b1cfa5d7
generator: Convert all .cs files to Unix line endings
...
There are no real code changes in this commit.
2012-11-03 15:20:06 +01:00
Bertrand Lorentz
4f29defd5c
generator: Add validation check for return values that are arrays
...
When a C function returns an array, we need to be able to determine its
length. This is done either through a parameter to that function, or
because the array is null-terminated. If we don't know about either of
those, we print out a warning and fail the validation for the return
value. This means the corresponding method will not be generated.
This fixes a crash when trying to generate a method for which this
information is missing.
This wasn't a problem until now because the parser doesn't handle array
return values, so they were always handled through fix-ups. But now we
can get a GAPI XML converted from GIR which contains the "array"
attribute for a return value but no other information.
2012-11-03 14:17:02 +01:00
Bertrand Lorentz
c3b3036441
gtk: Fix return type of RecentChooser.GetUris
...
The native function returns a NULL-terminated array of strings, so add
this as a fix-up.
2012-11-02 19:48:02 +01:00
Bertrand Lorentz
60ff43e3ca
release: Small changes to NEWS
2012-10-23 18:58:53 +02:00
Bertrand Lorentz
870d46a056
release: Update NEWS for 2.99.0
...
CNN is not what it used to be, let's get some real news in here.
2012-10-22 22:41:52 +02:00
Bertrand Lorentz
7ab1ead8c7
Fix indentation configured in gtk-sharp.sln
2012-10-21 18:22:13 +02:00
Bertrand Lorentz
482dec1900
generator: Fix compilation warnings
2012-10-21 18:22:13 +02:00
Bertrand Lorentz
4d19e5ac2a
generator: Properly handle boolean attributes when parsing the XML
...
In a lot of places, we were only checking the presence of boolean
attributes, like "array", automatically assuming they were true. This
meant that we didn't allow setting them explicitly to false, which
apparently is needed for some bindings.
For all boolean attributes, we now use the GetAttributeAsBoolean method
added in the previous commit, to correctly check the value of the
attribute. As before, if the attribute is not present, it is considered
to be false.
Thanks to Stephan Sundermann for noticing this issue.
2012-10-21 18:22:13 +02:00
Bertrand Lorentz
d35ef48f86
generator: Add a XmlElement.GetAttributeAsBoolean extension method
...
This will make it easier to correctly handle attributes that contain a
boolean value.
2012-10-21 18:21:54 +02:00
Bertrand Lorentz
f1c737923f
Update AUTHORS
2012-10-21 14:27:59 +02:00
Stephan Sundermann
0b355e0335
generator: Fix abstract class generation
...
Signed-off-by: Bertrand Lorentz <bertrand.lorentz@gmail.com>
2012-10-21 12:40:56 +02:00
Bertrand Lorentz
496992cb25
build: Remove GDK_BACKEND variable in configure.ac
...
It isn't used anymore, and GTK+ can now be compiled with several
backends.
2012-10-14 16:20:47 +02:00
Bertrand Lorentz
5934e35e2d
build: Update some macro calls in configure.ac
2012-10-14 16:10:30 +02:00
Bertrand Lorentz
f20744c9ae
build: Remove inexisting configure options from autogen.sh
2012-10-14 16:10:30 +02:00
Bertrand Lorentz
96d910177d
Archive Changelog as Changelog.old
...
Also mention that it's not used anymore.
2012-10-14 16:10:05 +02:00
Bertrand Lorentz
d43817456f
Update AUTHORS file
...
This is the result of the merge of the existing AUTHORS file and the
committer names grabbed from the git log.
2012-10-14 15:25:02 +02:00
Bertrand Lorentz
03490d7db6
Update various bits of documentation in READMEs and HACKING
2012-10-14 15:22:47 +02:00
Bertrand Lorentz
7b292538bb
Update TODO
2012-10-14 15:11:43 +02:00
Bertrand Lorentz
e02738bad6
build: Remove BUILD_GTK_CFLAGS and BUILD_GTK_LIBS variables
...
They're not used anywhere anymore.
2012-10-14 15:10:31 +02:00
Bertrand Lorentz
12c3202b73
sources.xml: Exclude pango-language-sample-table.h
...
This file only contains text samples, so it doesn't need to be parsed.
Also fix up indentation to be consistent throughout the file.
2012-10-14 12:51:18 +02:00
Bertrand Lorentz
8a46935237
Ignore sources subfolders for all versions
2012-10-14 12:20:49 +02:00
Bertrand Lorentz
a3fe34995d
Add *.pidb and *.userprefs to .gitignore
...
Those are generated by MonoDevelop and should not be tracked.
2012-10-13 16:44:18 +02:00
Bertrand Lorentz
60612071c1
Add a MonoDevelop solution and projects for browsing the codebase
...
This is just to be able to use MonoDevelop to browse the codebase, both
custom and generated code. It is NOT intended to be used to build
anything.
2012-10-13 16:44:10 +02:00
Andrés G. Aragoneses
61b67120c2
glib: add missing lock statements for Objects collection
...
When accessing the static Objects collection in GLib.Object
class, a lock was held in some places but not all of them.
Brought up by Alan McGovern.
Signed-off-by: Bertrand Lorentz <bertrand.lorentz@gmail.com>
2012-10-13 15:54:50 +02:00
Michael Hutchinson
b5e0d297bb
Fix resurrection cycles in container subclasses (bxc#3801)
2012-10-13 15:07:03 +02:00
Michael Hutchinson
d686a4d6aa
Added Object.TryGetObject that gets wrapper only if already surfaced
2012-10-13 15:06:51 +02:00
Michael Hutchinson
3a044d6faf
Fix stack overflow in subclasses of managed containers
2012-10-13 15:06:51 +02:00
Andreia Gaita
97046739b7
Merge pull request #52 from meebey/master
...
Fixed P/Invokes and Dllmap to use GDK 3.0 instead of 2.0
2012-10-03 06:14:51 -07:00
Mirco Bauer
bc2a18749a
gtkdotnet: Fixed P/Invokes and Dllmap to use GDK 3.0 instead of 2.0
2012-10-02 17:20:45 +02:00
Lluis Sanchez
2808b49059
Merge pull request #2 from knocte/micro_optimization
...
micro-optimization: return early after setting guithread
2012-09-21 23:48:44 -07:00
Lluis Sanchez
cf9c865ecc
Merge pull request #1 from knocte/do_not_report_gtk_init_itself
...
do not report yet violations if guithread is not set yet
2012-09-21 23:48:21 -07:00
Andres G. Aragoneses
1ba19069e9
micro-optimization: return early after setting guithread
...
No need to compare thread ids in this call.
2012-09-21 21:35:51 +01:00
Andres G. Aragoneses
9eff181e46
do not report yet violations if guithread is not set yet
...
Without this change, the call to Gtk.Application.Init() would
be reported as a violation itself.
(Detected, and bugfix tested, in MonoDevelop & Banshee)
2012-09-21 21:33:46 +01:00
Bertrand Lorentz
446f2e7c7a
gtk: Fix a small issue in the previous commit to IconTheme
...
The native array has an extra NULL element, so we pass the length of the
managed array, which is the real length of the array.
2012-09-05 22:40:50 +02:00
Carlos Martín Nieto
9c54fd5ae7
gtk: Use the GLib marshaller in IconTheme.SearchPath
...
This makes the code 64-bit clean (instead of assuming that a pointer
fits in a Int32) and simplifies the code.
Although the GTK doc doesn't say so, the C code shows the array is NULL
terminated, so we should be OK here.
Signed-off-by: Bertrand Lorentz <bertrand.lorentz@gmail.com>
2012-09-05 21:16:54 +02:00
Bertrand Lorentz
dd2cf949c1
doc: Run the automatic documentation updater
2012-08-05 20:06:32 +02:00
Bertrand Lorentz
54f5025375
gtk: Remove commented-out code from Gtk.Style
...
Gdk.GC is gone for good, so there no point in keeping anything that was
using it.
2012-08-05 19:42:34 +02:00
Bertrand Lorentz
140cad141f
gtk: Remove the custom code for ColorSelectionDialog
...
It has been obsolete for quite a while, and had a scary warning.
2012-08-05 19:33:52 +02:00
Bertrand Lorentz
0b155d2603
gtk: Remove the custom code for Table
...
It was commented out anyway, and the Table widget is deprecated.
2012-08-05 19:12:22 +02:00
Bertrand Lorentz
4bc7edb4b1
gtk: Add license header in TreeModelFilter.cs
...
Copyright information is based on the data from "git blame -w"
2012-08-05 19:06:18 +02:00
Bertrand Lorentz
c1e9a8c613
generator: Remove support for .custom files
...
We don't use any .custom file anymore, and nobody should. You can
do the same things with partial classes, and they're much nicer.
2012-08-05 18:29:18 +02:00
Bertrand Lorentz
5b22918f4f
pango: Re-indent code that was moved inside partial classes
...
No real code change, just whitespace.
2012-08-05 18:00:11 +02:00
Bertrand Lorentz
094a49f69a
pango: Move all .custom files to partial classes
...
No real code change, just renaming and adding boilerplate.
Files will be re-indented in another commit, to avoid confusing git.
2012-08-05 17:51:13 +02:00
Bertrand Lorentz
a8e1e8fd7d
gtk: Re-indent code that was moved inside partial classes
...
No real code change in this commit, just whitespace changes.
2012-08-05 17:24:05 +02:00
Bertrand Lorentz
a410d42975
gtk: Move all .custom files to partial classes
...
There are no real code changes in this commit, just a lot of file
renaming and boilerplate additions.
A few .custom files are just removed, because the corresponding class in
GTK is gone, so they were not really used anymore.
Some files need to be re-indented, but that will be done in a separate
commit, so that git can track the renamed files correctly and not be
confused by all the changes.
2012-08-05 16:32:41 +02:00
Alex Rønne Petersen
f00fd36dd3
Merge pull request #47 from cameronwhite/cairo-path-finalize-message
...
Fix finalization warning message for Cairo.Path.
2012-08-04 21:24:17 -07:00
Cameron White
3d0117c9db
Fix finalization warning message for Cairo.Path.
2012-08-04 23:32:37 -04:00