Philip Withnall [Fri, 12 Jun 2015 07:32:11 +0000 (08:32 +0100)]
gsocket: Factor out blocking parameter from g_socket_send_messages()
This will make future API additions easier. The factored version is
internal for the time being.
https://bugzilla.gnome.org/show_bug.cgi?id=751924
TingPing [Sat, 20 Dec 2014 23:59:15 +0000 (18:59 -0500)]
win32: Fix leak in g_win32_get_command_line()
https://bugzilla.gnome.org/show_bug.cgi?id=741822
TingPing [Sat, 20 Dec 2014 23:39:00 +0000 (18:39 -0500)]
win32: Replace usage of __wgetmainargs()
It was an internal function that has been removed with VS 2015
Use g_win32_get_command_line() or CommandLineToArgvW() directly.
https://bugzilla.gnome.org/show_bug.cgi?id=741822
Arun Raghavan [Tue, 21 Jul 2015 06:39:16 +0000 (12:09 +0530)]
gdbusconnection: Fix signal subscription documentation
https://bugzilla.gnome.org/show_bug.cgi?id=752656
Chun-wei Fan [Tue, 21 Jul 2015 03:26:29 +0000 (11:26 +0800)]
config.h.win32.in: Clean Up and Update
Merge the parts that has things to do with stdint.h and inttypes.h with
the !_MSC_VER portions, and add initial support for Visual Studio 2015,
which added support for C99 snprintf() and vsnprintf().
Not too sure about the !_MSC_VER for C99 snprintf() and vsnprintf(), but
since this file is mainly for Visual Studio builds, anyways...
Matthias Clasen [Mon, 20 Jul 2015 20:00:16 +0000 (16:00 -0400)]
2.45.4
Dan Winship [Mon, 20 Jul 2015 21:33:42 +0000 (17:33 -0400)]
gio/tests/task: fix for change to cancellation behavior
Multiple tasks cancelled at the same time now complete in the opposite
order from how they used to. Fix the test to not assume any particular
order.
Piotr Drąg [Mon, 20 Jul 2015 19:39:49 +0000 (21:39 +0200)]
Updated POTFILES.in
Paolo Borelli [Sun, 19 Jul 2015 21:47:57 +0000 (23:47 +0200)]
Move a unit test to the right file
Move a test for threaded socket service to socket-service.c.
Paolo Borelli [Fri, 10 Jul 2015 19:30:28 +0000 (21:30 +0200)]
socketservice: add an "active" property
We already have start, stop and is_active methods, but turning it
into a real property is useful for a few reasons:
- it allows us to bind the property to an UI or a setting
- it allows us to get notified when the state changes
- it allows us to instantiate objects directly in the stopped state
https://bugzilla.gnome.org/show_bug.cgi?id=752089
Paolo Borelli [Sun, 12 Jul 2015 17:51:17 +0000 (19:51 +0200)]
networkaddress: use free_full
https://bugzilla.gnome.org/show_bug.cgi?id=752293
Yosef Or Boczko [Sun, 19 Jul 2015 09:39:15 +0000 (12:39 +0300)]
Updated Hebrew translation
Matthias Clasen [Fri, 17 Jul 2015 20:46:26 +0000 (16:46 -0400)]
notification: Add an assertion to clarify
Coverity doesn't see that g_enum_get_value will never return
NULL here since we always pass it a valid enum value. Help
it along with an assertion.
Daniel Macks [Wed, 1 Jul 2015 18:36:35 +0000 (14:36 -0400)]
Use GRegexMatchFlags not GRegexCompileFlags for TEST_MATCH _match_opts
Fix the enums used in some test cases to use the correct enum type in
some test cases.
https://bugzilla.gnome.org/show_bug.cgi?id=751798
Ilya Konstantinov [Thu, 11 Jun 2015 18:42:00 +0000 (21:42 +0300)]
gbacktrace: fix G_BREAKPOINT on Darwin (OSX, iOS)
Using __builtin_trap() according to Apple's own documentation:
https://developer.apple.com/library/mac/technotes/tn2124/_index.html#//apple_ref/doc/uid/DTS10003391-CH1-SECCONTROLLEDCRASH
https://bugzilla.gnome.org/show_bug.cgi?id=750807
Xavier Claessens [Wed, 8 Jul 2015 18:38:16 +0000 (14:38 -0400)]
GAsyncInitable: Fix leaked object when using _newv_async
Ryan Lortie [Mon, 6 Jul 2015 14:21:33 +0000 (10:21 -0400)]
file monitors: report MOVED only with both sides
Make sure we know the destination file before reporting a MOVED event.
Otherwise, we should just fall back to reporting it as a DELETED.
https://bugzilla.gnome.org/show_bug.cgi?id=751731
Dimitris Spingos [Sun, 5 Jul 2015 22:50:10 +0000 (01:50 +0300)]
Updated Greek translation
Руслан Ижбулатов [Thu, 2 Jul 2015 11:06:17 +0000 (11:06 +0000)]
W32: Add back the dummy g_app_info_reset_type_associations()
Руслан Ижбулатов [Wed, 24 Jun 2015 10:07:40 +0000 (10:07 +0000)]
W32: Add a g_app_info_get_all_for_type() implementation
Also add g_app_info_get_fallback_for_type() and
g_app_info_get_recommended_for_type() as proxies for
g_app_info_get_all_for_type(), until gcontenttype support is improved.
Руслан Ижбулатов [Wed, 24 Jun 2015 10:07:15 +0000 (10:07 +0000)]
Don't ref a NULL pointer
Stef Walter [Tue, 17 Mar 2015 12:06:02 +0000 (13:06 +0100)]
gsocket: Don't g_error() if file-descriptor is not a socket
This code was out of date with current coding practices.
Nowadays it's common to receive file descriptors over environment
variables from other processes like systemd. The unit files that
control these file descriptors are configurable by sysadmins.
It is not (necessarily) a programmer error when g_socket_details_from_fd()
is called with a file descriptor that is not a socket. It can also
be a system and/or configuration error.
https://bugzilla.gnome.org/show_bug.cgi?id=746339
Pedro Albuquerque [Wed, 1 Jul 2015 21:58:39 +0000 (21:58 +0000)]
Updated Portuguese translation
Iain Lane [Tue, 30 Jun 2015 16:13:49 +0000 (17:13 +0100)]
gio/tests/appmonitor: Delete file before checking for changed event
In
4e7d22e268a4e06beb1c09585a48288c31004da5, deleting the file was moved
after the assertion which checks for the changed event that results from
it being deleted. This is the wrong way around and makes the assertion
fail.
Move the deletion back up before we check the condition. delete_app is
no longer an idle callback so it can be made void. The change
notification might come in when the loop isn't running now, so don't try
to quit if it isn't running. In this case we'll wait for the three
second timeout and the test will still pass.
https://bugzilla.gnome.org/show_bug.cgi?id=751737
Emmanuele Bassi [Mon, 29 Jun 2015 19:14:40 +0000 (20:14 +0100)]
tests: Fix compiler warning
Use `const gchar * const` to define a const array of const strings, and
initialize the array when declaring it.
https://bugzilla.gnome.org/show_bug.cgi?id=751672
Dan Winship [Sun, 21 Jun 2015 16:10:06 +0000 (12:10 -0400)]
gio/tests/socket.c: fix on OS X
The semantics of calling shutdown() on a dup()ed socket aren't
well-specified, so don't require any specific behavior.
https://bugzilla.gnome.org/show_bug.cgi?id=747676
Dan Winship [Sun, 21 Jun 2015 16:00:07 +0000 (12:00 -0400)]
gio/tests/socket.c: clean up a test case a bit
Matthias Clasen [Thu, 18 Jun 2015 14:37:46 +0000 (10:37 -0400)]
GTask: Remove unused function
We no longer resort the queue, so this function can go.
https://bugzilla.gnome.org/show_bug.cgi?id=751160
Matthias Clasen [Thu, 18 Jun 2015 14:36:23 +0000 (10:36 -0400)]
GTask: Avoid resorting
When a task is cancelled, we want to move it to the front
of the queue - our sort function does that for us, but there
is no need to resort the entire queue here, we can just
move the one item and be done with it. This uses just-introduced
threadpool api for this purpose.
https://bugzilla.gnome.org/show_bug.cgi?id=751160
Matthias Clasen [Mon, 29 Jun 2015 15:19:31 +0000 (08:19 -0700)]
GThreadPool: Add some queue manipulation api
GTask has a need for an api that boosts an unprocessed
item to the front of the queue, so add one.
https://bugzilla.gnome.org/show_bug.cgi?id=751160
Matthias Clasen [Mon, 22 Jun 2015 15:35:06 +0000 (11:35 -0400)]
Add tests for new GAsyncQueue api
https://bugzilla.gnome.org/show_bug.cgi?id=751160
Matthias Clasen [Thu, 18 Jun 2015 14:26:14 +0000 (10:26 -0400)]
GAsyncQueue: Add some useful api
The underlying queue supports removing and pushing items to
the front, and these operations can sometimes be useful.
https://bugzilla.gnome.org/show_bug.cgi?id=751160
Ting-Wei Lan [Wed, 29 Apr 2015 06:51:14 +0000 (14:51 +0800)]
tests: Fix tests that fail with non-English locales
Some tests check whether the translated messages are expected, so we have to
force the use of English locales for them.
https://bugzilla.gnome.org/show_bug.cgi?id=748610
Dan Winship [Tue, 9 Jun 2015 13:19:43 +0000 (09:19 -0400)]
Fix a FIXME in the WinXP inet_pton() implementation
https://bugzilla.gnome.org/show_bug.cgi?id=749912
Wouter Paesen [Tue, 26 May 2015 15:03:50 +0000 (17:03 +0200)]
Fix g_inet_address_to_string() on XP
[This patch originally also included an equivalent to the fix that was
committed in
3e29dada, but that was not the complete fix for the bug.]
https://bugzilla.gnome.org/show_bug.cgi?id=749911
Ting-Wei Lan [Wed, 18 Feb 2015 17:18:42 +0000 (01:18 +0800)]
gmessages: Add G_GNUC_NORETURN to g_error static function declaration
https://bugzilla.gnome.org/show_bug.cgi?id=741901
Ting-Wei Lan [Thu, 1 Jan 2015 05:28:21 +0000 (13:28 +0800)]
gmacros: Only set G_ANALYZER_ANALYZING to 1 when clang static analyzer is in use
We set G_ANALYZER_ANALYZING to 1 when clang supporting static analyzing before,
but this will cause compilation error when -Werror=return-type is used and the
static analyzer is not in use because g_error static function only has
__attribute__((analyzer_noreturn)), which is useless for normal compilation.
https://bugzilla.gnome.org/show_bug.cgi?id=741901
Christian Hergert [Sun, 28 Jun 2015 05:41:13 +0000 (22:41 -0700)]
gtypemodule: use G_GNUC_UNUSED in G_DEFINE_DYNAMIC_TYPE_EXTENDED
We already do this in the normal case, might as well support it for the
dynamic type module case as well. This prevents seeing a warning when not
using the get_instance_private() in the dynamic type.
Philip Withnall [Tue, 8 Apr 2014 08:12:24 +0000 (09:12 +0100)]
build: Ensure glibconfig.h.win32 is in DISTCLEANFILES
Otherwise it’s possible for it to not be regenerated when glibconfig.h
is, leading to inconsistencies.
https://bugzilla.gnome.org/show_bug.cgi?id=727829
Kalev Lember [Mon, 22 Jun 2015 17:56:38 +0000 (19:56 +0200)]
gapplication: Initialize backend before withdrawing notifications
Make sure to initialize the notification backend in
g_application_withdraw_notification() the same way as is done in
g_application_send_notification().
This makes it possible for an app to withdraw notifications it has sent
in a previous execution of the application.
https://bugzilla.gnome.org/show_bug.cgi?id=750625
Matthias Clasen [Mon, 22 Jun 2015 16:46:32 +0000 (12:46 -0400)]
2.45.3
Matthias Clasen [Tue, 23 Jun 2015 10:55:28 +0000 (06:55 -0400)]
Fix distcheck
The appmonitor test was sometimes leaving files behind, causing
distcheck some heartburn.
Chun-wei Fan [Tue, 23 Jun 2015 05:52:25 +0000 (13:52 +0800)]
gio/ginetaddress.c: Fix Windows XP inet_pton() Emulation
We need to be more careful when we try to assign values to gpointers, so
that means we have to assign the value to the properly-dereference
gpointer, so that the assigned value will be retained after the function
returns. This code will be dropped soon, but it is done for XP
compatibility's sake for 2.44.
Should fix the issue reported in bug 730352 comment #24.
Tim-Philipp Müller [Wed, 3 Jun 2015 12:06:24 +0000 (13:06 +0100)]
gsocket: avoid unnecessary select in _send_messages() and _receive_message()
For performance reasons we should always try to send or
receive our messages first and only wait for more space
or data to become available if we get an EAGAIN (and
are in blocking mode).
https://bugzilla.gnome.org/show_bug.cgi?id=751122
Paolo Borelli [Thu, 18 Jun 2015 07:36:12 +0000 (09:36 +0200)]
socketclient: annotate the connection param of "event" as nullable
When emitting the RESOLVING/RESOLVED events the connection param is
set to NULL.
Alexander Larsson [Wed, 17 Jun 2015 15:31:19 +0000 (17:31 +0200)]
configure: test have_docbook_style != yes, not have_docbook_dtd
Philip Withnall [Wed, 17 Jun 2015 08:25:49 +0000 (09:25 +0100)]
gfile: Clarify that g_file_replace_contents() uses atomic renames
It uses g_file_replace() internally, so is inherently safe.
Though it might vomit .goutputstream-XXXXXX files all over the place
occasionally.
Matthias Clasen [Tue, 16 Jun 2015 22:38:27 +0000 (18:38 -0400)]
key file: Clarify documentation around comments
The documentation was not very clear about the handling
of the '#' comment markers. State clearly how these are
handled by the getter and the setter.
https://bugzilla.gnome.org/show_bug.cgi?id=479730
Matthias Clasen [Tue, 16 Jun 2015 18:46:04 +0000 (14:46 -0400)]
Updates
Michael Catanzaro [Sun, 14 Jun 2015 03:52:33 +0000 (22:52 -0500)]
genmarshal: silence register storage class warnings
Using the register keyword triggers warnings on noteworthy compilers
(clang), since it's deprecated in C++ and at danger of being removed
from the language. There is no reason to use it since it isn't 1980
anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=750918
Cosimo Cecchi [Thu, 11 Jun 2015 22:56:25 +0000 (15:56 -0700)]
gresource: fix a couple of typos in documentation
Rico Tzschichholz [Thu, 11 Jun 2015 05:52:40 +0000 (07:52 +0200)]
g_log_set_handler_full: Bump "Since" version accordingly
Matthias Clasen [Sat, 29 Nov 2014 04:31:00 +0000 (23:31 -0500)]
Add g_log_set_handler_full
This is a bindable version of g_log_set_handler that takes
a destroy notify for the user_data.
https://bugzilla.gnome.org/show_bug.cgi?id=740516
Matthias Clasen [Sun, 29 Mar 2015 18:00:36 +0000 (14:00 -0400)]
Allow property actions to invert booleans
This can be handy when you want to change the sense of a toggle
in the UI without rewriting the underlying logic. Currently, this
is just exposed as a construct-only property. We may add a
convenience wrapper or a special !property syntax for this later.
https://bugzilla.gnome.org/show_bug.cgi?id=728489
Matthias Clasen [Tue, 9 Jun 2015 23:17:58 +0000 (19:17 -0400)]
Fix deprecation notice
GSimpleAsyncResult has not been deprecated all that long.
Simon McVittie [Mon, 27 Apr 2015 15:26:33 +0000 (16:26 +0100)]
Regression test for falling back to autolaunch: and XDG_RUNTIME_DIR/bus
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=747941
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
Simon McVittie [Wed, 15 Apr 2015 16:57:29 +0000 (17:57 +0100)]
GDBus: try XDG_RUNTIME_DIR/bus before resorting to dbus-launch
This is the right thing to do for the "a session is a user-session"
model implemented in dbus 1.9.14, which is described in
<http://lists.freedesktop.org/archives/dbus/2015-January/016522.html>.
It also resembles sd-bus' behaviour, although sd-bus will only try
kdbus and XDG_RUNTIME_DIR/bus, and never runs dbus-launch.
On systems following the more traditional "a session is a login-session"
model, X_R_D/bus won't exist, so it is harmless to check for it before
falling back to X11 autolaunching. Again, this matches the behaviour
of current libdbus and sd-bus versions.
Now that we do this, g_test_dbus_unset() needs to clear XDG_RUNTIME_DIR
as well as everything else.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=747941
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
Simon McVittie [Wed, 15 Apr 2015 18:59:50 +0000 (19:59 +0100)]
g_dbus_address_connect: specifically use dbus-launch for autolaunch:
This only alters what happens if we specifically connect to
"autolaunch:", for instance via "DBUS_SESSION_BUS_ADDRESS=autolaunch:".
We will still potentially try other platform-specific things if
DBUS_SESSION_BUS_ADDRESS is unset. There are currently no other
platform-specific things, so there is no practical difference yet,
but I'm about to add a more-preferred fallback path before autolaunch.
This matches libdbus' behaviour and the D-Bus Specification, in which
the autolaunch: transport specifically means X11 autolaunch
(as implemented by "dbus-launch --autolaunch") on Unix, or a
shared-memory-based protocol on Windows. Other platform-specific
transports or default/fallback modes, including launchd on Mac OS X
and XDG_RUNTIME_DIR/bus on Unix, are not part of "autolaunch:".
It's rather unfortunate that the same name means two different
platform-specific mechanisms, specific to different platforms -
if they were added today I'd call them x11: and windows-shm: or
something - but it's been like this since 2007 so it's too late now.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=747941
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
Simon McVittie [Mon, 27 Apr 2015 13:38:41 +0000 (14:38 +0100)]
regex: if PCRE is 8.34 or later, disable auto-possessification for DFA
Normally, recent PCRE behaves as if certain patterns were replaced
by a more "possessive" pattern that gives the same answer for normal
regex matching, but is more efficient. However, the modified pattern
produces fewer results under DFA. If we want the full set of results
we have to apply PCRE_NO_AUTO_POSSESS, and that's a compile-time flag.
This currently only affects a system PCRE, but would also work fine for
an internal PCRE 8.34 or later if the embedded copy is updated.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=733325
Reviewed-by: Christian Persch <chpe@gnome.org>
Christophe Fergeau [Wed, 3 Jun 2015 09:30:43 +0000 (11:30 +0200)]
gapplication: Make sure --help output is translated
Currently, applications using g_application_add_main_option_entries()
won't get translated entries in --help output. We need to call
g_option_group_set_translation_domain() with a NULL domain to ensure that the
default application gettext domain (ie the one passed to the
textdomain() call) will be used for the main entries passed by the
application.
If we want to allow more flexibility on which gettext domain should be
used for these entries, new API will be needed.
https://bugzilla.gnome.org/show_bug.cgi?id=750322
Philip Withnall [Fri, 19 Dec 2014 20:43:06 +0000 (20:43 +0000)]
gsettings: Document GSettings build system integration
Add a new section to the main GSettings documentation which documents
the best practices for integrating GSettings into an autoconf/automake
build system using the GLIB_GSETTINGS macro.
Some of this material was adapted from the migrating-gconf.xml guide.
https://bugzilla.gnome.org/show_bug.cgi?id=741788
Philip Withnall [Fri, 19 Dec 2014 20:42:21 +0000 (20:42 +0000)]
gsettings: Expand documentation default value l10n
Mention context, translation category, and the need for syntactic
validity of the translated values.
https://bugzilla.gnome.org/show_bug.cgi?id=741788
Xavier Claessens [Mon, 8 Jun 2015 15:09:39 +0000 (11:09 -0400)]
doc: Add missing GTlsDatabaseClass
https://bugzilla.gnome.org/show_bug.cgi?id=750573
Matthias Clasen [Fri, 5 Jun 2015 23:13:19 +0000 (19:13 -0400)]
Add registry helpers to the docs
Руслан Ижбулатов [Tue, 5 May 2015 02:12:25 +0000 (02:12 +0000)]
Bump W32 Registry API 'Since:' version
https://bugzilla.gnome.org/show_bug.cgi?id=734888
Руслан Ижбулатов [Tue, 5 May 2015 02:09:10 +0000 (02:09 +0000)]
Make W32 registry API compatible with MSVC
* Only check __OBJECT_ATTRIBUTES_DEFINED and __UNICODE_STRING_DEFINED
on MinGW (MSVC doesn't have these)
* MSVC: disable:4005 when including windows.h and ntstatus.h
* Move NTAPI cconv into the parens with the NtQueryKeyFunc
* Fix return values in some functions
https://bugzilla.gnome.org/show_bug.cgi?id=734888
Руслан Ижбулатов [Mon, 25 Aug 2014 03:38:35 +0000 (03:38 +0000)]
Add W32 Registry reading API to gio
https://bugzilla.gnome.org/show_bug.cgi?id=734888
Руслан Ижбулатов [Sun, 17 May 2015 11:42:55 +0000 (11:42 +0000)]
Make GWin32AppInfo MSVC-compatible - use G_VA_COPY
https://bugzilla.gnome.org/show_bug.cgi?id=666831
Руслан Ижбулатов [Fri, 29 Aug 2014 08:53:35 +0000 (08:53 +0000)]
GWin32AppInfo rewrite
- On first call scan the registry, collect information about URI protocols,
file extensions, applications and handlers, store that as a set of
interconnected structures in several hash tables
- Watch the registry keys, re-scan the registry when any one of them changes.
https://bugzilla.gnome.org/show_bug.cgi?id=666831
Mikhail Zabaluev [Mon, 13 Oct 2014 22:25:56 +0000 (01:25 +0300)]
Added g_utf8_validate() to UTF-8 performance testing
https://bugzilla.gnome.org/show_bug.cgi?id=738504
Matthias Clasen [Fri, 5 Jun 2015 19:27:59 +0000 (15:27 -0400)]
Add index for new api
Matthias Clasen [Fri, 5 Jun 2015 19:27:25 +0000 (15:27 -0400)]
Add new API to docs
Ryan Lortie [Wed, 19 Nov 2014 17:45:38 +0000 (12:45 -0500)]
GSettings: deprecate g_settings_list_keys()
This is now possible with g_settings_schema_list_keys().
https://bugzilla.gnome.org/show_bug.cgi?id=740308
Ryan Lortie [Wed, 19 Nov 2014 17:45:06 +0000 (12:45 -0500)]
gsettings tests: use g_settings_schema_list_keys()
Stop using g_settings_list_keys() because soon it will be deprecated.
https://bugzilla.gnome.org/show_bug.cgi?id=740308
Ryan Lortie [Wed, 19 Nov 2014 17:42:10 +0000 (12:42 -0500)]
gsettings tool: use schema for listing keys
Use the newly added g_settings_schema_list_keys() API instead of
g_settings_list_keys() in order to list keys.
Doing this allows the 'list-keys' command to work without creating a
GSettings object, which is more efficient. It also means that we don't
have to provide a (meaningless and ignored) path when listing keys on
relocatable schemas.
While we're at it, update the 'range' command not to require creation of
a GSettings object, in a similar way.
https://bugzilla.gnome.org/show_bug.cgi?id=740308
Ryan Lortie [Wed, 19 Nov 2014 17:40:22 +0000 (12:40 -0500)]
GSettingsSchema: add g_settings_schema_list_keys()
The list of keys in a GSettings object depends entirely on the schema,
so it makes sense to expose this API there.
Move the implementation out of gsettings.c and into gsettingsschema.c,
replacing the earlier with a simple call to the new location.
We don't do the same for children because the children can change.
https://bugzilla.gnome.org/show_bug.cgi?id=740308
Patrick Griffis [Wed, 25 Mar 2015 19:51:29 +0000 (15:51 -0400)]
Implement GNotification on OSX
https://bugzilla.gnome.org/show_bug.cgi?id=747146
Patrick Griffis [Mon, 13 Apr 2015 17:39:28 +0000 (13:39 -0400)]
configure: Require OSX >= 10.9
https://bugzilla.gnome.org/show_bug.cgi?id=747146
Ryan Lortie [Thu, 26 Mar 2015 20:35:06 +0000 (16:35 -0400)]
kqueue: add a bit of extra paranoia on cancel
Cancellation of GPollFileMonitor is now handled correctly (in the sense
that no further signals will follow) but let's be extra paranoid and
disconnect our handler anyway, for good measure.
https://bugzilla.gnome.org/show_bug.cgi?id=739424
Ryan Lortie [Thu, 26 Mar 2015 20:31:48 +0000 (16:31 -0400)]
gpollfilemonitor: send 'changes done' for creates
The new rules of GFileMonitor says that users should expect to see a
CHANGES_DONE_HINT following a CREATED as well as CHANGED.
https://bugzilla.gnome.org/show_bug.cgi?id=739424
Ryan Lortie [Thu, 26 Mar 2015 20:29:19 +0000 (16:29 -0400)]
gpollfilemonitor: don't emit after cancellation
GPollFileMonitor emits CHANGES_DONE_HINT after CHANGED signals, but it
doesn't check to ensure that the file monitor wasn't cancelled before it
does that.
If the original signal caused the monitor to be unreffed, cancelled and
destroyed, we would still end up emitting an extra signal on it.
Avoid that by checking first for cancellation.
https://bugzilla.gnome.org/show_bug.cgi?id=739424
Mikhail Zabaluev [Sun, 5 Oct 2014 23:01:38 +0000 (02:01 +0300)]
glib/genviron.c, GSubprocessLauncher: ain't no "filename encoding"
Removed all mentions of GLib file name encoding referring to
the environment strings. The env var content has no defined relation
to GLib's notion of filename encoding, or any encoding whatsoever.
It would be wrong to pass all UTF-8 strings through
g_filename_from_utf8() in order to put them into the environment,
for one thing.
https://bugzilla.gnome.org/show_bug.cgi?id=738185
Jan Safranek [Tue, 4 Nov 2014 11:54:00 +0000 (11:54 +0000)]
GDBus: Add new call flag to allow interactive authorization
DBus has recently introduced new message flag
DBUS_HEADER_FLAG_ALLOW_INTERACTIVE_AUTHORIZATION, which tells that
caller is willing to wait for unspecified amount of time for the call
to return, as the service may perform interactive authorization (e.g.
using polkit).
https://bugzilla.gnome.org/show_bug.cgi?id=739616
Ryan Lortie [Thu, 21 May 2015 17:32:20 +0000 (12:32 -0500)]
GActionGroupExporter: flush queue on requests
In order to maintain a logical stream of events, we need to make sure we
flush and queued change notifications before responding to any requests
for information from clients.
If we don't do this, it's possible that we emit an 'add' event that was
queued at the time of a 'DescribeAll' call _after_ the reply to that
call (which already contained the description of the new action).
In practice, this is not only logically incorrect, but it can also cause
problems. If a change to action 'state' or 'enabled' occurs after the
DescribeAll but before the signal has been dispatched, it will be
ignored because an 'add' signal is already pending. When that add
signal is sent, it will contain the correct data, but the receiver will
ignore it because it already saw the action in the DescribeAll reply.
https://bugzilla.gnome.org/show_bug.cgi?id=749693
Ryan Lortie [Sun, 25 May 2014 09:21:06 +0000 (11:21 +0200)]
GActionGroup: fix an annotation
.get_action_state_type() does not return a copy.
We remove the annotation entirely because it is evident from the 'const'
on the return type.
https://bugzilla.gnome.org/show_bug.cgi?id=730168
Matthias Clasen [Fri, 5 Jun 2015 16:30:15 +0000 (12:30 -0400)]
win32: Make g_content_type_get_mime_type work for directories
Now that we are using inode/directory for directories, handle
this case in g_content_type_get_mime_type() as well.
Руслан Ижбулатов [Thu, 30 Apr 2015 23:09:30 +0000 (23:09 +0000)]
W32: Special treatment for inode/directory mime/type
This is a hack for GLocalFileInfo to correctly get icons for directories.
Without this change content type for any W32 directory is NULL
(because there's no registry entry for "inode/directory" by default,
and in any way there's no file extension that means "directory" to put there),
and GLocalFileInfo uses content type to grab icons.
https://bugzilla.gnome.org/show_bug.cgi?id=748727
Matthias Clasen [Fri, 5 Jun 2015 16:26:41 +0000 (12:26 -0400)]
win32: Return proper icon names
The code here was returning gtk-directory and similar names as
fallback, with a comment claiming that these are 'builtin gtk'.
But they aren't, anymore, so just return the standard names.
Matthias Clasen [Fri, 5 Jun 2015 15:30:17 +0000 (11:30 -0400)]
Fix a markup confusion
"0." at the beginning of a line is interpreted as a numeric list
by the gtk-doc markdown parser, so be careful to avoid that.
https://bugzilla.gnome.org/show_bug.cgi?id=750399
Matthias Clasen [Fri, 5 Jun 2015 15:21:57 +0000 (11:21 -0400)]
Trivial: fix a typo
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=750399
Philip Withnall [Fri, 19 Dec 2014 21:03:46 +0000 (21:03 +0000)]
gsettings: Add a documentation section on relocatable schemas
https://bugzilla.gnome.org/show_bug.cgi?id=741788
Stefan Ekenberg [Wed, 3 Jun 2015 13:59:57 +0000 (15:59 +0200)]
Prevent race condition in g_io_condition_get_type
Prevents race condition in function g_io_condition_get_type by ensuring
that the initialization section for 'etype' is executed only once
during a program's life time, and that concurrent threads are blocked
until initialization completes. This changes solves the problem that
concurrent threads could execute the check 'etype == 0' before any of
them had initialized it, which in turn meant that multiple threads
would then attempt to register the "GIOCondition" type.
https://bugzilla.gnome.org/show_bug.cgi?id=750386
Matthias Clasen [Thu, 4 Jun 2015 23:25:20 +0000 (19:25 -0400)]
Trivial: fix a comment typo
Balázs Úr [Thu, 4 Jun 2015 21:03:10 +0000 (21:03 +0000)]
Updated Hungarian translation
Garrett Regier [Thu, 4 Jun 2015 00:16:21 +0000 (17:16 -0700)]
binding: Simplify the default transform func
https://bugzilla.gnome.org/show_bug.cgi?id=750369
Garrett Regier [Thu, 4 Jun 2015 00:15:17 +0000 (17:15 -0700)]
binding: Remove conditional from the default transform function
Avoiding checking for INVERT_BOOLEAN each and
instead choose the correct function in constructed().
https://bugzilla.gnome.org/show_bug.cgi?id=750369
Garrett Regier [Thu, 4 Jun 2015 00:13:53 +0000 (17:13 -0700)]
binding: Remove GObject data usage
It isn't actually doing anything, instead it is
being managed without actually being used.
This has the result that GBinding is now more
thread-safe.
https://bugzilla.gnome.org/show_bug.cgi?id=745013
Piotr Drąg [Wed, 3 Jun 2015 17:02:12 +0000 (19:02 +0200)]
Updated POTFILES.in
Xavier Claessens [Wed, 3 Jun 2015 14:18:36 +0000 (10:18 -0400)]
doc: add GTlsInteractionClass
https://bugzilla.gnome.org/show_bug.cgi?id=750344
Alexander Larsson [Mon, 1 Jun 2015 08:02:47 +0000 (10:02 +0200)]
GNetworkMonitorNetlink: Fix check for non-kernel messages
This code used to look at the SCM_CREDENTIALS and ignore every message
not from uid 0. However, when user namespaces are in use this does not
work, as if uid 0 is not mapped you get overflowuid instead. Right now
this means we ignore all messages in such user namespaces and glib
apps hang on startup.
We can't look at pids either, as pid 0 is returned for processes
outside your pid namespace.
Instead the correct approach is to look at the sending sockaddr and
if the port id (nl_pid) is zero, then its from the kernel.
Source:
http://lists.linuxfoundation.org/pipermail/containers/2015-May/036032.html
https://bugzilla.gnome.org/show_bug.cgi?id=750203