Commit Graph

7 Commits

Author SHA1 Message Date
Bertrand Lorentz
691de4e606 gtk: Fix dll name and use a const for all DllImports in custom code
In Windows builds of GTK+ 3.x, the dll filename is libgtk-3-0.dll.

We use this opportunity to use a common const in the DllImport
statement for all custom code.
2014-02-23 15:12:20 +01:00
Bertrand Lorentz
2d34ed8351 gtk: Remove unused P/Invoke in IconTheme
Now that it uses the Marshaller, IconTheme doesn't call g_strfreev
directly anymore.
2013-04-21 16:39:52 +02:00
Bertrand Lorentz
6850b343ca gtk: Switch to generic collections in some classes 2012-11-04 16:58:50 +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
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