OSDN Git Service
Stef Walter [Thu, 28 Jun 2012 12:41:39 +0000 (14:41 +0200)]
GTlsInteraction: Fix incorrect locking of mutex
* Fix incorrect locking of mutex in g_tls_interaction_invoke_ask_password()
https://bugzilla.gnome.org/show_bug.cgi?id=678758
Martin Pitt [Wed, 27 Jun 2012 07:25:37 +0000 (09:25 +0200)]
gio/tests/contenttype: Call g_content_type_guess() with valid data len
g_content_type_guess() requires specifying a valid data length. Fixes a
segfault when running the test.
Also add an explicit check for this and return XDG_MIME_TYPE_UNKNOWN when
data_size is specified as -1, to avoid crashing.
https://bugzilla.gnome.org/show_bug.cgi?id=674452
Martin Pitt [Wed, 27 Jun 2012 09:46:28 +0000 (11:46 +0200)]
/mainloop/timeouts test: Reduce race condition
Due to load, particular traits of the architecture, or other circumstances, the
/mainloop/timeouts sometimes manages to call the "every
100 ms" timer loop only 9 times in 1050 ms.
This is an inherent race-condition in the test; allow it some slack and accept
9 times as well.
https://bugzilla.gnome.org/show_bug.cgi?id=678959
Philipp Kern [Wed, 27 Jun 2012 08:57:50 +0000 (10:57 +0200)]
valuetransform: Fix definition of ulong_bool
On big endian 64 bit machines such as s390x, an uint is too small to hold a
ulong_bool; it needs to be an actual ulong.
https://bugzilla.gnome.org/show_bug.cgi?id=678949
http://bugs.debian.org/662057
Martin Pitt [Tue, 26 Jun 2012 16:32:29 +0000 (18:32 +0200)]
Allow slightly too small poll duration in /socket/timed_wait test
Sometimes the poll duration in the /socket/timed_wait test is slightly lower
than the requested 100000, causing failures like
ERROR:/build/buildd/glib2.0-2.33.2/./gio/tests/socket.c:619:test_timed_wait:
assertion failed (poll_duration > = 100000): (99240 >= 100000)
FAIL
Adjust the test to also allow some jitter in the "too small" direction, similar
to the already existing span for "slightly too large".
https://bugzilla.gnome.org/show_bug.cgi?id=678881
Lars Uebernickel [Mon, 25 Jun 2012 16:29:01 +0000 (18:29 +0200)]
GDbusActionGroup: always set strict when _query_action fails
Matthias Clasen [Sat, 23 Jun 2012 21:58:51 +0000 (17:58 -0400)]
Remove a few redundant ;s
Phil Clayton [Tue, 12 Jun 2012 15:09:19 +0000 (16:09 +0100)]
Add missing annotation to GDBusConnection::closed
Add annotation (allow-none) to the parameter error.
https://bugzilla.gnome.org/show_bug.cgi?id=677952
Emmanuele Bassi [Thu, 31 May 2012 22:48:35 +0000 (23:48 +0100)]
Update the comment in gmarshal.list
The current note makes it look like the marshaller code generation has
been deprecated in favour of the libffi-based generic marshaller; this
is not the case, so we should probably clarify the point a bit.
https://bugzilla.gnome.org/show_bug.cgi?id=677235
Christian Persch [Sun, 17 Jun 2012 20:51:44 +0000 (22:51 +0200)]
regex: Fix unicode othercasing
The old _pcre_ucp_othercase() function was wrong in returning
NOTACHAR (0xffffffff) for characters that aren't changed by upper-
and lower-casing. This led to PCRE internally using incorrect (or
at least inefficient) character classes when using G_REGEX_CASELESS.
E.g. [Z-\x{100}] turned into:
[Z\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{39c}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{178}z-\x{101}]
instead of the expected and efficient
[Z\x{39c}\x{178}z-\x{101}]
https://bugzilla.gnome.org/show_bug.cgi?id=678273
Colin Walters [Thu, 21 Jun 2012 19:44:16 +0000 (15:44 -0400)]
GRand: Check return value of fopen directly
This doesn't fix anything, it should just silence some static analysis
tools.
Colin Walters [Thu, 21 Jun 2012 19:37:39 +0000 (15:37 -0400)]
gspawn: Abort if we can't open /dev/null
This really "shouldn't happen", but if we have an assertion here, it
will help static analysis tools know we're not hitting undefined
state.
Colin Walters [Thu, 21 Jun 2012 19:33:51 +0000 (15:33 -0400)]
tests/unix: Ensure buffer is NUL terminated
Colin Walters [Thu, 21 Jun 2012 16:12:53 +0000 (12:12 -0400)]
gsignal: Properly handle NULL nodes
Colin Walters [Thu, 21 Jun 2012 16:12:33 +0000 (12:12 -0400)]
gresourcefile.c: Remove stray semicolon
Colin Walters [Thu, 21 Jun 2012 16:08:05 +0000 (12:08 -0400)]
gmenu: Remove stray semicolon in g_menu_clear_item()
Colin Walters [Thu, 21 Jun 2012 16:06:34 +0000 (12:06 -0400)]
tests: Add missing initializer for return value
Colin Walters [Thu, 21 Jun 2012 16:05:39 +0000 (12:05 -0400)]
tests: Add missing va_end()
Colin Walters [Thu, 21 Jun 2012 16:00:04 +0000 (12:00 -0400)]
gfileutils: Remove extra fclose()
This is a regression introduced by:
commit
6ac8e6108cf15884e28fe1ecd3042dfce0e11dfd
Author: Matthias Clasen <mclasen@redhat.com>
Date: Tue Jun 14 10:12:46 2011 -0400
Don't leak resources in error cases
Matthias Clasen [Thu, 21 Jun 2012 10:11:58 +0000 (06:11 -0400)]
Install bash completion files in /usr/share/
The bash-completion code nowadays expects completion files to
be installed in /usr/share/bash-completion/completions, and
expects them to be named like the command they are completing
for.
https://bugzilla.gnome.org/show_bug.cgi?id=677782
Dan Winship [Mon, 18 Jun 2012 19:31:47 +0000 (15:31 -0400)]
gdbus: fix generated code to not warn under -Wfloat-equal
https://bugzilla.gnome.org/show_bug.cgi?id=678333
Martin Pitt [Mon, 18 Jun 2012 05:39:23 +0000 (07:39 +0200)]
Fix g_utf8_validate() out argument transfer mode
The "end" argument is unusual in g_utf8_validate(): it's not a classic out
argument which gets allocated by the called function, but merely points into
one of its input arguments. Thus it is "transfer none".
https://bugzilla.gnome.org/show_bug.cgi?id=672889
Dan Winship [Sat, 16 Jun 2012 14:38:45 +0000 (10:38 -0400)]
docs: fix an example
Matthias Clasen [Fri, 15 Jun 2012 22:53:09 +0000 (18:53 -0400)]
GKeyFile: Deal better with blank lines
There is no need to store a has_trailing_blank_line boolean for
each group, we can just check this at the time we assemble the data.
This fixes a problem without roundtrips where we would sometimes
add an extra blank line between groups.
The testcase here is inspired by
https://bugzilla.gnome.org/show_bug.cgi?id=677817
Matthias Clasen [Fri, 15 Jun 2012 19:16:13 +0000 (15:16 -0400)]
GWakeup: Avoid extraneous wakeups
We were checking the wrong number here, and waking up unnecessarily.
https://bugzilla.gnome.org/show_bug.cgi?id=678052
Paolo Borelli [Fri, 15 Jun 2012 12:41:20 +0000 (14:41 +0200)]
Improve g_find_program_in_path documentation
Document that g_find_program_in_path returns a newly-allocated string
Benjamin Otte [Wed, 13 Jun 2012 15:33:01 +0000 (17:33 +0200)]
glib-compile-resources: Forward errors from spawned processes
We just grab stderr from gdk-pixbuf-to-csource and xmllint and include
it in the error message. It's the best we can do.
Matthias Clasen [Mon, 11 Jun 2012 14:24:03 +0000 (10:24 -0400)]
Correct the docs for g_time_zone_adjust_time
March 13, 2010 is very ordinary.
March 14, 2010 is the special day.
Matthias Clasen [Mon, 11 Jun 2012 11:18:29 +0000 (07:18 -0400)]
Fix a typo
It is 'entries', not 'entires'.
Daniel Macks [Tue, 5 Jun 2012 18:16:24 +0000 (14:16 -0400)]
configure: Require libelf 0.8.12
Older versions don't have the required API.
(Commit message written by Colin Walters <walters@verbum.org>)
https://bugzilla.gnome.org/show_bug.cgi?id=673253
Martin Pitt [Tue, 5 Jun 2012 16:50:36 +0000 (18:50 +0200)]
g_dbus_gvariant_to_gvalue(): Add missing out annotation
Marc-Antoine Perennou [Tue, 22 May 2012 19:56:10 +0000 (21:56 +0200)]
glib: fix g_reload_user_special_dirs_cache
We handle a special case for G_USER_DIRECTORY_DESKTOP
when we init the values but drop it when we reload them.
Fix this by preferring old values to NULL
https://bugzilla.gnome.org/show_bug.cgi?id=676594
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Christian Persch [Tue, 29 May 2012 17:10:57 +0000 (19:10 +0200)]
build: Add missing AM_V_GEN to silence the build
Guillaume Desmottes [Fri, 27 Apr 2012 08:02:54 +0000 (10:02 +0200)]
Link to gvariant-format-strings-pointers in getter API
https://bugzilla.gnome.org/show_bug.cgi?id=674777
Colin Walters [Sat, 26 May 2012 15:53:14 +0000 (11:53 -0400)]
gappinfo: Fix uninitialized-variable gcc warning
Colin Walters [Fri, 25 May 2012 12:59:09 +0000 (08:59 -0400)]
Annotate API introduced for 2.32 with GLIB_AVAILABLE_IN_2_32
https://bugzilla.gnome.org/show_bug.cgi?id=676816
Colin Walters [Fri, 25 May 2012 12:42:50 +0000 (08:42 -0400)]
Annotate API introduced for 2.30 with GLIB_AVAILABLE_IN_2_30
I didn't do this comprehensively, since there's a lot of it, mainly
due to the GDBus object manager stuff, but anyone trying to use
that would fail fast due to lack of the gdbus code generator.
My main goal was to get API additions to existing classes like
g_data_input_stream_read_line_utf8(), as well as the lower level new
API like glib-unix.h.
https://bugzilla.gnome.org/show_bug.cgi?id=676816
Christian Persch [Sat, 5 May 2012 15:29:44 +0000 (17:29 +0200)]
application: Save a few bytes in the library
There's really no need to put useless whitespace into the .so.
Marc-Antoine Perennou [Tue, 22 May 2012 18:38:52 +0000 (20:38 +0200)]
glib: fix build
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Christian Persch [Sat, 19 May 2012 21:59:01 +0000 (23:59 +0200)]
environ: Allow NULL envp
https://bugzilla.gnome.org/show_bug.cgi?id=676397
Dan Winship [Wed, 21 Mar 2012 13:22:38 +0000 (09:22 -0400)]
g_utf8_validate: @str shouldn't end up annotated as utf8
In order for this function to have any point, it has to be possible to
pass non-UTF-8 data to it, so annotate @str as being array-of-guint8
instead of utf8.
https://bugzilla.gnome.org/show_bug.cgi?id=672548
Dan Winship [Fri, 18 May 2012 12:49:05 +0000 (08:49 -0400)]
g_app_info_launch_default_for_uri: don't use GFile if we don't have to
GFile doesn't handle some "real" URIs, so check if there's a default
handler for the URI scheme first, and only use g_file_new_for_uri()
and g_file_query_default_handler() if not. Eg, this fixes the case of
opening http URIs with "%2F" in the path.
https://bugzilla.gnome.org/show_bug.cgi?id=666386
Holger Berndt [Thu, 17 May 2012 20:24:10 +0000 (22:24 +0200)]
Document that g_app_info_create_from_commandline() does unquoting according to fd.o
https://bugzilla.gnome.org/show_bug.cgi?id=676277
Dan Winship [Thu, 17 May 2012 17:48:21 +0000 (13:48 -0400)]
gnetworkmonitornetlink: don't leak the list of networks
https://bugzilla.gnome.org/show_bug.cgi?id=676265
Matthias Clasen [Thu, 17 May 2012 04:44:36 +0000 (00:44 -0400)]
gsettings: add reset-recursively to bash completion
https://bugzilla.gnome.org/show_bug.cgi?id=675832
Ravi Sankar Guntur [Mon, 19 Mar 2012 15:47:32 +0000 (21:17 +0530)]
glib: fix memory leaks in gutils, protocol, and strfuncs tests
https://bugzilla.gnome.org/show_bug.cgi?id=672329
Signed-off-by: Ravi Sankar Guntur <ravi.g@samsung.com>
Paolo Borelli [Tue, 15 May 2012 15:38:44 +0000 (17:38 +0200)]
gfile: add g_return_if_fail to g_file_make_directory_with_parents()
Colin Walters [Fri, 4 May 2012 14:03:12 +0000 (10:03 -0400)]
gfile: Plug memory leak in g_file_make_directory_with_parents()
The logic here is pretty twisted, but basically we were leaking a ref
for each non-existent parent. The clearest way to fix this was to
move to more explicit refcounting logic; when a variable is pointing
to an object, it holds a ref.
https://bugzilla.gnome.org/show_bug.cgi?id=675446
Matthias Clasen [Sun, 13 May 2012 04:46:39 +0000 (00:46 -0400)]
Use non-deprecated api in tests
https://bugzilla.gnome.org/show_bug.cgi?id=660851
Jasper St. Pierre [Wed, 2 May 2012 16:53:27 +0000 (12:53 -0400)]
gkeyfile: Fix annotations for g_key_file_load_from_data
https://bugzilla.gnome.org/show_bug.cgi?id=675309
Lars Uebernickel [Thu, 10 May 2012 16:35:03 +0000 (09:35 -0700)]
docs: reference g_menu_item_new in gmenu convenience menuitem API
Chun-wei Fan [Wed, 20 Jun 2012 02:19:14 +0000 (10:19 +0800)]
msvc_recommended_pragmas.h: Re-enable C4819 warnings
Apparently the C4819 warnings appear due to a bug on Visual C++ on DBCS
locales, so re-enable this.
Add a note in the Visual C++ Readme.txt's regarding this.
Nilamdyuti Goswami [Tue, 19 Jun 2012 13:11:23 +0000 (18:41 +0530)]
Assamese translation reviewed
David Zeuthen [Fri, 8 Jun 2012 17:30:48 +0000 (13:30 -0400)]
GDBusProxy: Treat org.freedesktop.systemd1.Masked error as non-fatal
This is useful otherwise we'll fail if a systemd service is
masked. See bug 677718 for details.
https://bugzilla.gnome.org/show_bug.cgi?id=677718
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
Rūdolfs Mazurs [Tue, 5 Jun 2012 14:27:15 +0000 (17:27 +0300)]
Updated Latvian translation
Debarshi Ray [Thu, 17 May 2012 04:43:54 +0000 (06:43 +0200)]
gio: The tmpl parameter to g_file_new_tmp can be NULL
Fixes: https://bugzilla.gnome.org/676208
Daniel Nylander [Fri, 18 May 2012 08:02:20 +0000 (10:02 +0200)]
Updated Swedish translation
Matthias Clasen [Mon, 14 May 2012 23:52:34 +0000 (19:52 -0400)]
bump version
Matthias Clasen [Mon, 14 May 2012 22:06:02 +0000 (18:06 -0400)]
Keep interface age in sync with micro
Matthias Clasen [Mon, 14 May 2012 22:05:48 +0000 (18:05 -0400)]
Updates
Matthias Clasen [Mon, 14 May 2012 22:02:59 +0000 (18:02 -0400)]
NEWS: correct title
Dan Winship [Tue, 17 Apr 2012 15:46:50 +0000 (11:46 -0400)]
GConverterInputStream: fix an infinite loop when fill_buffer returns an error
The loop was using a GConverterResult variable where it meant to use a
gssize, and since GConverterResult was ending up as an unsigned type,
this meant the (res < 0) check always failed.
Dan Winship [Sun, 22 Apr 2012 19:20:14 +0000 (15:20 -0400)]
gio: fix error handling in async case of GProxyAddressEnumerator
In the async case, a failed DNS lookup was causing the proxy
resolution to bail out immediately, rather than just moving on to the
next potential proxy (which might not need us to do the DNS lookup
beforehand). Fix that.
Sasi Bhushan [Mon, 14 May 2012 08:02:06 +0000 (13:32 +0530)]
Updated Telugu Translations
Jiro Matsuzawa [Sun, 13 May 2012 10:22:24 +0000 (19:22 +0900)]
[l10n] Update Japanese translation
Christian Kirbach [Tue, 8 May 2012 17:15:09 +0000 (19:15 +0200)]
[l10n] Updated German translation
Jiro Matsuzawa [Tue, 8 May 2012 11:24:53 +0000 (20:24 +0900)]
[l10n] Update Japanese translation
Alexander Shopov [Sat, 28 Apr 2012 04:55:20 +0000 (07:55 +0300)]
Updated Bulgarian translation
Gil Forcada [Sun, 6 May 2012 14:20:22 +0000 (16:20 +0200)]
[l10n] Updated Catalan translation
Matej Urbančič [Fri, 4 May 2012 11:42:36 +0000 (13:42 +0200)]
Updated Slovenian translation
Marek Černocký [Fri, 4 May 2012 07:32:11 +0000 (09:32 +0200)]
Updated Czech translation
Chun-wei Fan [Wed, 2 May 2012 03:06:14 +0000 (11:06 +0800)]
Fix GIO/GObject Visual C++ projects
-Make up for the missed DLL_EXPORT-it's actually needed for all GLib DLL
builds, omitting this caused problems to surface due to recent works to
make GDBus work on Windows.
-Also use the FFI_BULIDING macro for GObject builds as the suggessted
workaround for using static LibFFI builds (as we do now)-please see
ffi.h.in. This will fix the build of GObject against LibFFI 3.0.11, but
it is probable that this will change at some point for LibFFI.
Michael Biebl [Tue, 1 May 2012 16:42:12 +0000 (18:42 +0200)]
configure: Reset LIBS after ELF check
If action-if-found is not specified, AC_CHECK_LIB will append the library
to LIBS. As we don't want to link everything against libelf, reset LIBS
after doing the checks.
Rafał Mużyło [Sun, 15 Apr 2012 15:17:07 +0000 (11:17 -0400)]
configure: Fix typo in ELF check
Signed-off-by: Colin Walters <walters@verbum.org>
Ryan Lortie [Tue, 1 May 2012 05:18:04 +0000 (01:18 -0400)]
bump version
Ryan Lortie [Tue, 1 May 2012 05:04:49 +0000 (01:04 -0400)]
GLib 2.32.2
Alexander Larsson [Thu, 26 Apr 2012 08:05:41 +0000 (10:05 +0200)]
Dist gio/dbus-daemon.xml and fix dependency for builddir != srcdir
Cosimo Cecchi [Mon, 16 Apr 2012 14:45:12 +0000 (10:45 -0400)]
tests/date: force English locale running the GDateTime tests
The parsing test needs to make some assumption about the locale
representation of the string to be parsed, so we need to explicitly
override the locale here.
Ryan Lortie [Sat, 3 Mar 2012 16:31:05 +0000 (11:31 -0500)]
GApplication: allow null application_id
GApplication application ID is now permitted to be NULL, in which case
G_APPLICATION_NON_UNIQUE will be implicitly enabled.
https://bugzilla.gnome.org/show_bug.cgi?id=671249
Bruno Brouard [Mon, 30 Apr 2012 19:54:22 +0000 (21:54 +0200)]
Updated French translation
Xavier Claessens [Wed, 25 Apr 2012 13:02:25 +0000 (15:02 +0200)]
Fix g_clear_object macro with C++ compilers
In C++ it is invalid to cast a void* to void**.
Also add a static check to ensure
sizeof(*object_ptr) == sizeof (gpointer).
This avoid common mistake of missing '&'
in g_clear_object(&obj);
https://bugzilla.gnome.org/show_bug.cgi?id=674634
Fran Diéguez [Mon, 30 Apr 2012 14:22:09 +0000 (16:22 +0200)]
Updated Galician translations
Luca Ferretti [Mon, 30 Apr 2012 13:41:08 +0000 (15:41 +0200)]
l10n: Updated Italian translation
Мирослав Николић [Sun, 29 Apr 2012 10:08:04 +0000 (12:08 +0200)]
Updated Serbian translation
Piotr Drąg [Sat, 28 Apr 2012 16:03:13 +0000 (18:03 +0200)]
Updated Polish translation
Jonh Wendell [Sat, 28 Apr 2012 13:11:25 +0000 (10:11 -0300)]
Updated Brazilian Portuguese translation
Daniel Mustieles [Sat, 28 Apr 2012 09:30:41 +0000 (11:30 +0200)]
Updated Spanish translation
Aurimas Černius [Fri, 27 Apr 2012 19:17:10 +0000 (22:17 +0300)]
Updated Lithuanian translation
Debarshi Ray [Mon, 16 Apr 2012 21:00:01 +0000 (23:00 +0200)]
GAppInfo: overwrite the DISPLAY only if it is set in the launch context
If the launch context is a GAppLaunchContext, and not a
GdkAppLaunchContext, then g_app_launch_context_get_display will return
NULL because the get_display virtual method is undefined. The DISPLAY
might still be inherited from the parent process, in which case
overwriting it with NULL breaks the launch.
This is a regression introduced in:
de834bed306565c0652050665eafff4dfcdf0d8b
Fixes: https://bugzilla.gnome.org/672786
Michael Olbrich [Wed, 25 Apr 2012 07:46:35 +0000 (09:46 +0200)]
make sure configure fails if AC_CHECK_ALIGNOF cannot detect the alignment
When cross-compiling with gcc >= 4.5 AC_CHECK_ALIGNOF fails to detect the
correct alignment. Without a previous AC_CHECK_TYPE for the same type, the
alignment is silently set to '0'.
This makes sure that configure fails and reports the problem.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
https://bugzilla.gnome.org/show_bug.cgi?id=674483
Alexander Larsson [Tue, 24 Apr 2012 12:53:49 +0000 (14:53 +0200)]
win32: Fix build with srcdir != builddir
Missed this part in the last commit
(cherry picked from commit
62905cda0b42163bbd582278260f659f94e4d2bf)
Alexander Larsson [Tue, 24 Apr 2012 12:03:38 +0000 (14:03 +0200)]
win32: Fix build of gdbus-daemon-generated.[ch]
gdbus-daemon-generated.[ch] failed to build because it depended
on gdbus-2.0/codegen/gdbus-codegen which was build during the SUBDIRS part
of the build, however SUBDIRS are done *after* processing BUILT_SOURCES,
and these files are in BUILT_SOURCES.
The fix is simple, instead of running the gdbus-codegen code we
run the gdbus-codegen.in code, which works fine for uninstalled execution.
I also removed Makefile from the dependencies to avoid rebuilding the file
in tarballs, as Makefiles are written at configure time. We should be able to
ship the prebuilt files in the tarballs.
When running uninstalled
(cherry picked from commit
88bfc9b289e2b40bd7bff94dcdb06eb0b7b53f67)
Chun-wei Fan [Mon, 23 Apr 2012 16:03:33 +0000 (00:03 +0800)]
Visual C++ projects: Clean/fix up
Clean/fix up the Preprocessor Definitions for the various projects, where
we purge out the unneeded macros and add _DEBUG to the Debug builds of
various projects that somehow lacked this.
This will also fix the GIO build under Visual C++ 2008, as the _DEBUG macro
in the release builds will cause a debug entry to appear in its manifest
file during the build, which will cause GIO-using applications to fail
to run on systems not running Visual C++/Studio 2008 due to its embedding
of a badly-generated manifest file.
Alexandre Rostovtsev [Mon, 16 Apr 2012 02:57:25 +0000 (22:57 -0400)]
Do not detect GNUstep as Cocoa
GNUstep also installs Foundation/Foundation.h
https://bugzilla.gnome.org/show_bug.cgi?id=674172
Signed-off-by: William Hua <william@attente.ca>
William Hua [Wed, 18 Apr 2012 03:49:47 +0000 (23:49 -0400)]
Use Cocoa header for Cocoa test instead of Foundation.
Alexander Larsson [Tue, 17 Apr 2012 13:50:01 +0000 (15:50 +0200)]
Fix build on win32
Some errnos don't exist on win32
(cherry picked from commit
2414d7d6a197e0c4b184607160d6cd8a378df177)
Alexander Larsson [Fri, 20 Apr 2012 08:23:34 +0000 (10:23 +0200)]
win32: Implement _g_dbus_get_machine_id using machine guid
This is what libdbus uses, so we're compatible.
(cherry picked from commit
5fb44f70dcac16ff6f13d3d36c330ddd617a5d97)
Alexander Larsson [Wed, 18 Apr 2012 15:09:37 +0000 (17:09 +0200)]
win32: Support autolaunching dbus daemon
(cherry picked from commit
dccce383670592f12510019e92ea91a618a1810c)
Alexander Larsson [Wed, 18 Apr 2012 14:25:29 +0000 (16:25 +0200)]
Add _g_io_win32_get_module to get the gio HMODULE
(cherry picked from commit
bd148e127a5863de4aef260cd879e0eda370c711)
Alexander Larsson [Mon, 16 Apr 2012 08:16:04 +0000 (10:16 +0200)]
Add GDBusDAaemon, an implementation of a message bus
This is mostly complete, sans support for activation. However, its
not as picky as the libdbus implementation in terms like validation
and limits checking, nor is it as tested.
Its can be useful to test gdbus if dbus-daemon is not availible, but
its main reason for existance is to implement a default session bus
on win32 so that e.g. GApplication is guaranteed to work.
(cherry picked from commit
25581738a8d5ee7db2a6d9ebd908d59b2837cd70)