platform/upstream/glib.git
6 years agoImported Upstream version 2.53.4 78/153578/1
DongHun Kwak [Fri, 29 Sep 2017 01:10:38 +0000 (10:10 +0900)]
Imported Upstream version 2.53.4

Change-Id: I17e5e677f01d881ae678eb79578dde29dd2950b3
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 2.53.3 77/153577/1
DongHun Kwak [Fri, 29 Sep 2017 01:08:39 +0000 (10:08 +0900)]
Imported Upstream version 2.53.3

Change-Id: I620ef00381ff01f0dd7c6d644b3c0a88e29aaedb
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 2.53.2 76/153576/1
DongHun Kwak [Fri, 29 Sep 2017 01:07:13 +0000 (10:07 +0900)]
Imported Upstream version 2.53.2

Change-Id: Ie5f62282cb6613e2c5cde213dd6b231f2c3ef0da
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 2.53.1 75/153575/1
DongHun Kwak [Fri, 29 Sep 2017 01:06:13 +0000 (10:06 +0900)]
Imported Upstream version 2.53.1

Change-Id: Ib0e6300c6063e8d638e99eb22b58ddebf7768e79
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 2.52.3 74/153574/1
DongHun Kwak [Fri, 29 Sep 2017 00:42:48 +0000 (09:42 +0900)]
Imported Upstream version 2.52.3

Change-Id: If358c3502e4820a888b34011119821ea38b2b563
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 2.52.2 10/130010/1 upstream/2.52.2
DongHun Kwak [Fri, 19 May 2017 00:26:29 +0000 (09:26 +0900)]
Imported Upstream version 2.52.2

Change-Id: I71ac7d11a2d40ffe74a13b1d190dbe652cba140a
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 2.52.1 09/130009/1
DongHun Kwak [Fri, 19 May 2017 00:26:07 +0000 (09:26 +0900)]
Imported Upstream version 2.52.1

Change-Id: Idca68df633e439e8492a9e0d40f78b49d689d84b
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 2.52.0 08/130008/1
DongHun Kwak [Fri, 19 May 2017 00:25:57 +0000 (09:25 +0900)]
Imported Upstream version 2.52.0

Change-Id: I7fdddaaf827f7a4f314ba570ff45b481406f5c67
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 2.51.5 07/130007/1
DongHun Kwak [Fri, 19 May 2017 00:25:27 +0000 (09:25 +0900)]
Imported Upstream version 2.51.5

Change-Id: If8ad379b8e3c0268a99759a5bf621c201926d3fe
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 2.51.4 06/130006/1
DongHun Kwak [Fri, 19 May 2017 00:25:12 +0000 (09:25 +0900)]
Imported Upstream version 2.51.4

Change-Id: I0a090d45ab8f1805c5f98fd4d804da23a4033a41
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 2.51.3 05/130005/1
DongHun Kwak [Fri, 19 May 2017 00:24:56 +0000 (09:24 +0900)]
Imported Upstream version 2.51.3

Change-Id: I69068bfdeb46efddb7a09fa8c19386aedca2dd71
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 2.51.2 04/130004/1
DongHun Kwak [Fri, 19 May 2017 00:24:38 +0000 (09:24 +0900)]
Imported Upstream version 2.51.2

Change-Id: I134d2267df41e44bec49ca802fe31ad39a8874b2
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 2.51.1 03/130003/1
DongHun Kwak [Fri, 19 May 2017 00:24:21 +0000 (09:24 +0900)]
Imported Upstream version 2.51.1

Change-Id: Id21981348a71b1395dc86225b819cd1ea103428e
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 2.51.0 02/130002/1
DongHun Kwak [Fri, 19 May 2017 00:23:56 +0000 (09:23 +0900)]
Imported Upstream version 2.51.0

Change-Id: I4219f1e9924abb0277e06eb3575732907a86e82d
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
6 years agoImported Upstream version 2.50.3 01/130001/1
DongHun Kwak [Fri, 19 May 2017 00:20:59 +0000 (09:20 +0900)]
Imported Upstream version 2.50.3

Change-Id: Ib95600d2b9af114ede0d7291f53745bf373c8b26
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
7 years agoImported Upstream version 2.50.2 02/112802/1 upstream/2.50.2
DongHun Kwak [Fri, 3 Feb 2017 01:24:10 +0000 (10:24 +0900)]
Imported Upstream version 2.50.2

Change-Id: I83acaeb7a15edec96b064845383396695b865613
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
7 years agoMerge branch 'upstream' of ssh://review.tizen.org:29418/platform/upstream/glib into... 69/68869/1 upstream/2.48.0
DongHun Kwak [Tue, 10 May 2016 06:22:43 +0000 (15:22 +0900)]
Merge branch 'upstream' of ssh://review.tizen.org:29418/platform/upstream/glib into upstream

Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Conflicts:
gio/inotify/ginotifydirectorymonitor.c
gio/tests/.gitignore
glib/tests/.gitignore

Change-Id: If6fc8d87e436f1c57686a4b39b42804136a940c3

7 years agoImported Upstream version 2.48.0 68/68868/1
Ryan Lortie [Mon, 16 Mar 2015 19:22:03 +0000 (15:22 -0400)]
Imported Upstream version 2.48.0

Change-Id: Ie8c1fa7173d48588524ed4e85cffd9e9af340d97
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
8 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Tue, 11 Aug 2015 17:41:08 +0000 (19:41 +0200)]
Updated Norwegian bokmål translation.

8 years agoUpdate Catalan translation
Jordi Mas [Tue, 11 Aug 2015 06:05:34 +0000 (08:05 +0200)]
Update Catalan translation

8 years agogio: g_menu_item_set_icon should not fail if icon is NULL
Felix Riemann [Sun, 9 Aug 2015 21:13:38 +0000 (23:13 +0200)]
gio: g_menu_item_set_icon should not fail if icon is NULL

It allows passing a NULL icon to unset the icon and thus should not
log a critical warning if used like that.

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

8 years agoUpdated Turkish translation
Muhammet Kara [Sun, 9 Aug 2015 15:46:12 +0000 (15:46 +0000)]
Updated Turkish translation

8 years agogio: fix a leftover GSimpleAsyncResult usage
Dan Winship [Fri, 7 Aug 2015 13:48:27 +0000 (09:48 -0400)]
gio: fix a leftover GSimpleAsyncResult usage

And remove remaining unnecessary gsimpleasyncresult.h includes

8 years agogsettings-tool: fix deprecated call
Dan Winship [Fri, 7 Aug 2015 13:47:09 +0000 (09:47 -0400)]
gsettings-tool: fix deprecated call

8 years agogdbus: fix gdbus-exit-on-close for gdbusconnection change
Dan Winship [Thu, 6 Aug 2015 21:00:16 +0000 (17:00 -0400)]
gdbus: fix gdbus-exit-on-close for gdbusconnection change

8 years agoglib: remove deprecated g_mem_is_system_malloc() check in gprintf.c
Dan Winship [Fri, 7 Aug 2015 13:46:49 +0000 (09:46 -0400)]
glib: remove deprecated g_mem_is_system_malloc() check in gprintf.c

8 years agoglib: drop array-test test for bug 568760
Dan Winship [Thu, 6 Aug 2015 19:45:47 +0000 (15:45 -0400)]
glib: drop array-test test for bug 568760

The test relied on g_mem_set_vtable(), so it fails now. But no one
ever touches that code so it's not like we're going to break it again
anyway.

8 years agoUpdated Lithuanian translation
Aurimas Černius [Thu, 6 Aug 2015 19:53:12 +0000 (22:53 +0300)]
Updated Lithuanian translation

8 years agogdbusconnection: Don't g_printerr() when exiting
Colin Walters [Mon, 5 Jan 2015 14:40:37 +0000 (09:40 -0500)]
gdbusconnection: Don't g_printerr() when exiting

exit-on-close for a DBus connection is a completely normal thing.  On
a regular GNOME login, gdm retains the X server, but terminates the
session login bus and associated helpers like gnome-settings-dameon,
the a11y tools, etc.

I've seen several downstream reports of confusion as to what these
apparent error messages mean in the system log.  It doesn't help
that they're so obtuse.

We're also printing them to stderr, when this is not an error.

The reason this was introduced is presumably some people were confused
as to why their process exited when the system bus did.  But the
solution for that I believe is documentation, not printing stuff to
everyone's system log in normal operation.

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

8 years agoDon't leak an error
Matthias Clasen [Wed, 5 Aug 2015 21:18:48 +0000 (17:18 -0400)]
Don't leak an error

The previous commit introduced a possible memory leak in cases
where we get a G_IO_ERROR_CLOSED error. Make sure to always
free an error, if we got one.

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

8 years agogdbus: Don't use g_assert_no_error() GDBusObjectManagerServer
Stef Walter [Wed, 5 Aug 2015 11:25:47 +0000 (13:25 +0200)]
gdbus: Don't use g_assert_no_error() GDBusObjectManagerServer

There are real world cases where emitting signals can fail, such
as if the DBus connection closes. Asserting and aborting the process
in these cases is just plain lazy.

Ignore the errors when the connection is closed, and turn the
others into warnings.

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

8 years agoUpdated Indonesian translation
Andika Triwidada [Mon, 3 Aug 2015 11:28:22 +0000 (11:28 +0000)]
Updated Indonesian translation

8 years agogmain: Document return value of GSourceFuncs.dispatch
Benjamin Otte [Sun, 2 Aug 2015 15:36:05 +0000 (17:36 +0200)]
gmain: Document return value of GSourceFuncs.dispatch

8 years agogio: Fix application of GNetworkMonitor:network-metered patch
Philip Withnall [Wed, 29 Jul 2015 10:56:41 +0000 (11:56 +0100)]
gio: Fix application of GNetworkMonitor:network-metered patch

The wrong patch from https://bugzilla.gnome.org/show_bug.cgi?id=750282
was applied, causing test failures due to not implementing the property
on GNetworkMonitorBase (plus some other omissions).

Fix that by reverting commit a80e7db1a8f26dc558085844dcb8003edb6eca74
and re-applying the correct patch over the top.

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

8 years agogresource: Clarify error docs for g_resource_enumerate_children()
Philip Withnall [Tue, 28 Jul 2015 09:13:12 +0000 (10:13 +0100)]
gresource: Clarify error docs for g_resource_enumerate_children()

Document that it returns G_RESOURCE_ERROR_NOT_FOUND if the path doesn’t
exist.

8 years agoUpdated Thai translation
Akom Chotiphantawanon [Tue, 28 Jul 2015 08:55:05 +0000 (15:55 +0700)]
Updated Thai translation

8 years agoRemove malloc tests
Matthias Clasen [Tue, 28 Jul 2015 04:04:35 +0000 (00:04 -0400)]
Remove malloc tests

These tests were about the no longer supported
vtable functionality, so just remove them.

8 years agoDeprecate and drop support for memory vtables
Alexander Larsson [Sat, 27 Jun 2015 16:38:42 +0000 (18:38 +0200)]
Deprecate and drop support for memory vtables

The memory vtables no longer work, because glib contructors are called
before main(), so there is no way to set it them before use. This stops using
the vtable at all, and deprecates and stubs out the related functions.

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

8 years agoGOptionContext: Don't crash without main group
Matthias Clasen [Mon, 27 Jul 2015 11:52:27 +0000 (07:52 -0400)]
GOptionContext: Don't crash without main group

This was introduced in 126c685f4aa and caused e.g. gdbus
to crash when called without arguments.

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

8 years agoAdd a note to the g_str_hash docs
Matthias Clasen [Mon, 27 Jul 2015 10:51:17 +0000 (06:51 -0400)]
Add a note to the g_str_hash docs

Point out some shortcomings of the djb hash, as found in

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

8 years agogio: Add network metered information to GNetworkMonitor
Richard Hughes [Tue, 2 Jun 2015 14:41:48 +0000 (15:41 +0100)]
gio: Add network metered information to GNetworkMonitor

Add a property to GNetworkMonitor indicating if the network
is metered, e.g. subject to limitations set by service providers.

The default value is FALSE

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

8 years agoRemove some questionable documentation
Matthias Clasen [Mon, 27 Jul 2015 10:24:44 +0000 (06:24 -0400)]
Remove some questionable documentation

A function that takes a lock can certainly block in the sense
that it has to wait if the lock is taken.

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

8 years agoAdd tests for GApplication::handle-local-options
Matthias Clasen [Mon, 27 Jul 2015 01:39:53 +0000 (21:39 -0400)]
Add tests for GApplication::handle-local-options

8 years agogapplication: Stop handle-local-options emission on errors
Christophe Fergeau [Sun, 21 Jun 2015 08:51:50 +0000 (10:51 +0200)]
gapplication: Stop handle-local-options emission on errors

A signal accumulator can return TRUE to continue signal emission, and
FALSE to stop signal emission. handle-local-options callbacks can return
« return a non-negative option if you have handled your options and
want to exit the process ».

Currently, g_application_handle_local_options_accumulator (the
accumulator for the handle-local-options signal) returns TRUE on
non-negative return value (ie continue signal emission), and returns
FALSE on negative return values (ie when the default option processing
should continue).
This return value seems backward as on >= 0 values, subsequent
handle-local-options callbacks could overwrite the 'exit request' from
the handler, while on < 0 values, the handle-local-options processing
could end up early if several callbacks are listening for this signal.
In particular, the default handler for this signal
(g_application_real_handle_local_options) always returns -1 and will
overwrite >= 0 return values from other handlers.

This commit inverts the check so that signal emission stops early when
one of the handle-local-options callbacks indicates it wants processing
to stop and the process to exit.

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

8 years agogapplication: Fix typos in handle-local-options API doc
Christophe Fergeau [Sun, 21 Jun 2015 08:56:58 +0000 (10:56 +0200)]
gapplication: Fix typos in handle-local-options API doc

The @options parameter was missing an 's', and the name of
g_application_command_line_get_options_dict() was not correct.

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

8 years agoUpdated Czech translation
Marek Černocký [Sat, 25 Jul 2015 01:27:32 +0000 (03:27 +0200)]
Updated Czech translation

8 years agoghash: Fix typo in g_hash_table_replace() documentation
Peter Meerwald [Thu, 23 Jul 2015 09:38:47 +0000 (11:38 +0200)]
ghash: Fix typo in g_hash_table_replace() documentation

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

8 years agogsocket: Factor out blocking parameter from g_socket_send_messages()
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

8 years agowin32: Fix leak in g_win32_get_command_line()
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

8 years agowin32: Replace usage of __wgetmainargs()
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

8 years agogdbusconnection: Fix signal subscription documentation
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

8 years agoconfig.h.win32.in: Clean Up and Update
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...

8 years ago2.45.4 2.45.4
Matthias Clasen [Mon, 20 Jul 2015 20:00:16 +0000 (16:00 -0400)]
2.45.4

8 years agogio/tests/task: fix for change to cancellation behavior
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.

8 years agoUpdated POTFILES.in
Piotr Drąg [Mon, 20 Jul 2015 19:39:49 +0000 (21:39 +0200)]
Updated POTFILES.in

8 years agoMove a unit test to the right file
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.

8 years agosocketservice: add an "active" property
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

8 years agonetworkaddress: use free_full
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

8 years agoUpdated Hebrew translation
Yosef Or Boczko [Sun, 19 Jul 2015 09:39:15 +0000 (12:39 +0300)]
Updated Hebrew translation

8 years agonotification: Add an assertion to clarify
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.

8 years agoUse GRegexMatchFlags not GRegexCompileFlags for TEST_MATCH _match_opts
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

8 years agogbacktrace: fix G_BREAKPOINT on Darwin (OSX, iOS)
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

8 years agoGAsyncInitable: Fix leaked object when using _newv_async
Xavier Claessens [Wed, 8 Jul 2015 18:38:16 +0000 (14:38 -0400)]
GAsyncInitable: Fix leaked object when using _newv_async

8 years agofile monitors: report MOVED only with both sides
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

8 years agoUpdated Greek translation
Dimitris Spingos [Sun, 5 Jul 2015 22:50:10 +0000 (01:50 +0300)]
Updated Greek translation

8 years agoW32: Add back the dummy g_app_info_reset_type_associations()
Руслан Ижбулатов [Thu, 2 Jul 2015 11:06:17 +0000 (11:06 +0000)]
W32: Add back the dummy g_app_info_reset_type_associations()

8 years agoW32: Add a g_app_info_get_all_for_type() implementation
Руслан Ижбулатов [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.

8 years agoDon't ref a NULL pointer
Руслан Ижбулатов [Wed, 24 Jun 2015 10:07:15 +0000 (10:07 +0000)]
Don't ref a NULL pointer

8 years agogsocket: Don't g_error() if file-descriptor is not a socket
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

8 years agoUpdated Portuguese translation
Pedro Albuquerque [Wed, 1 Jul 2015 21:58:39 +0000 (21:58 +0000)]
Updated Portuguese translation

8 years agogio/tests/appmonitor: Delete file before checking for changed event
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

8 years agotests: Fix compiler warning
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

8 years agogio/tests/socket.c: fix on OS X
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

8 years agogio/tests/socket.c: clean up a test case a bit
Dan Winship [Sun, 21 Jun 2015 16:00:07 +0000 (12:00 -0400)]
gio/tests/socket.c: clean up a test case a bit

8 years agoGTask: Remove unused function
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

8 years agoGTask: Avoid resorting
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

8 years agoGThreadPool: Add some queue manipulation api
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

8 years agoAdd tests for new GAsyncQueue api
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

8 years agoGAsyncQueue: Add some useful api
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

8 years agotests: Fix tests that fail with non-English locales
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

8 years agoFix a FIXME in the WinXP inet_pton() implementation
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

8 years agoFix g_inet_address_to_string() on XP
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

8 years agogmessages: Add G_GNUC_NORETURN to g_error static function declaration
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

8 years agogmacros: Only set G_ANALYZER_ANALYZING to 1 when clang static analyzer is in use
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

8 years agogtypemodule: use G_GNUC_UNUSED in G_DEFINE_DYNAMIC_TYPE_EXTENDED
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.

8 years agobuild: Ensure glibconfig.h.win32 is in DISTCLEANFILES
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

8 years agogapplication: Initialize backend before withdrawing notifications
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

8 years ago2.45.3 2.45.3
Matthias Clasen [Mon, 22 Jun 2015 16:46:32 +0000 (12:46 -0400)]
2.45.3

8 years agoFix distcheck
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.

8 years agogio/ginetaddress.c: Fix Windows XP inet_pton() Emulation
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.

8 years agogsocket: avoid unnecessary select in _send_messages() and _receive_message()
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

8 years agosocketclient: annotate the connection param of "event" as nullable
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.

8 years agoconfigure: test have_docbook_style != yes, not have_docbook_dtd
Alexander Larsson [Wed, 17 Jun 2015 15:31:19 +0000 (17:31 +0200)]
configure: test have_docbook_style != yes, not have_docbook_dtd

8 years agogfile: Clarify that g_file_replace_contents() uses atomic renames
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.

8 years agokey file: Clarify documentation around comments
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

8 years agoUpdates
Matthias Clasen [Tue, 16 Jun 2015 18:46:04 +0000 (14:46 -0400)]
Updates

8 years agogenmarshal: silence register storage class warnings
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

8 years agogresource: fix a couple of typos in documentation
Cosimo Cecchi [Thu, 11 Jun 2015 22:56:25 +0000 (15:56 -0700)]
gresource: fix a couple of typos in documentation

8 years agog_log_set_handler_full: Bump "Since" version accordingly
Rico Tzschichholz [Thu, 11 Jun 2015 05:52:40 +0000 (07:52 +0200)]
g_log_set_handler_full: Bump "Since" version accordingly

8 years agoAdd g_log_set_handler_full
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