summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-04-25Added type check to GPermission public functions.Juan Pablo Ugarte1-1/+13
2014-04-25gresolver: Ensure GThreadedResolver always sets an error if resolution failsPhilip Withnall1-3/+16
It was previously possible for GThreadedResolver to return an empty list and no error in response to a g_resolver_lookup_by_name() call, if it happened that all the addresses returned by getaddrinfo() could not be converted from native addresses to GSocketAddresses. Fix that by setting a G_RESOLVER_ERROR_NOT_FOUND if the returned list is empty. https://bugzilla.gnome.org/show_bug.cgi?id=728776
2014-04-25gresolver: Document that GResolver lists are non-empty on successPhilip Withnall1-19/+24
The documentation previously wasn’t clear about whether the GResolver methods could return an empty list and no error. On balance, this seems like a bad idea, and GResolver should commit to always return a non-empty list, or an error (which should be G_RESOLVER_ERROR_NOT_FOUND if the list would otherwise be empty). https://bugzilla.gnome.org/show_bug.cgi?id=728776
2014-04-24gio: remove an unneeded pragmaDan Winship1-5/+0
ddf82a25 removed the use of non-literal format strings from gthreadedresolver.c, but left the "#pragma GCC diagnostic ignored -Wformat-nonliteral" behind.
2014-04-24docs: Remove <!-- --> comment before plural sVolker Sobek12-16/+16
These did show up in the html. Since symbol names are checked for a trailing plural s when generating the docs, the links stay functional after removing these comments. https://bugzilla.gnome.org/show_bug.cgi?id=728380
2014-04-23gaction: Minor clarifications in the GAction documentationPhilip Withnall1-3/+4
https://bugzilla.gnome.org/show_bug.cgi?id=728350
2014-04-20platform_get_argv0: drop unneeded headers for OpenBSDAntoine Jacoutot1-5/+6
And properly set the size of len. There is also no need for realloc(), g_malloc0 will do just fine. https://bugzilla.gnome.org/show_bug.cgi?id=728280
2014-04-19gfile: More explicitly document the context for GFileProgressCallbackPhilip Withnall1-2/+3
Be more explicit in the documentation for g_file_copy_async() about which GMainContext its progress callback is executed in. https://bugzilla.gnome.org/show_bug.cgi?id=728565
2014-04-18Updated Greek translationmarablack31-838/+852
2014-04-16gio: Document that GSocket is not thread safePhilip Withnall1-0/+4
https://bugzilla.gnome.org/show_bug.cgi?id=726318
2014-04-16hmac: Add support for SHA-512 in GHmacPhilip Withnall2-14/+173
The block size wasn’t configured before, so calling g_hmac_new() with G_CHECKSUM_SHA512 would hit a g_assert_not_reached() and explode. Implement G_CHECKSUM_SHA512 and add unit tests for HMACs with SHA-256 and SHA-512 using the test vectors from RFC 4868. https://bugzilla.gnome.org/show_bug.cgi?id=724741
2014-04-16Revert "Bug 724590 - GSlice slab_stack corruption"Ryan Lortie1-2/+1
This reverts commit c49ec3c8d7a90589308ce1b87a92bc627335ffd2.
2014-04-15Bug 724590 - GSlice slab_stack corruptionJohn Ralls1-1/+2
Dereference allocation->contention_counters before trying to take the address of an element.
2014-04-15docs: Use markdown links in all .c and .h filesVolker Sobek13-14/+14
Commit e7fd3de86d60 already did most of this. https://bugzilla.gnome.org/show_bug.cgi?id=728285
2014-04-15gdesktopappinfo: fix a crasherRyan Lortie1-1/+1
During the time that we are expanding the strv, it is not null-terminated. Use the strv_len variable instead to bound the search for duplicates.
2014-04-15gio: fix g-i annotations in g_settings_schema_source_list_schemas()Alberto Ruiz1-3/+4
2014-04-15tests: use mimeapps.list over defaults.listRyan Lortie1-3/+3
defaults.list is deprecated, so use mimeapps.list as a filename instead. https://bugzilla.gnome.org/show_bug.cgi?id=728040
2014-04-15GDesktopAppInfo: rewrite content type codeRyan Lortie2-845/+623
Redo the code for type-based selection of applications (all, recommended, default, fallback) based on the new DesktopFileDir structures that we introduced last cycle. At the same time, we expand the functionality to add support for the new features of the specification: - moving ~/.local/share/applications/mimeapps.list to ~/.config/ - per-desktop default applications (via XDG_CURRENT_DESKTOP) - sysadmin customisation of defaults (via /etc/xdg/mimeapps.list) - deprecation of the old defaults.list, favouring the use of /usr/share/applications/mimeapps.list (or gnome-mimeapps.list) to accomplish the same We modify the mimeapps testcase to check for mimeapps.list having been created in XDG_CONFIG_HOME instead of XDG_DATA_HOME. The modification is a net reduction of code (due to less duplication in bookkeeping). It is also an increase in performance and reduction in memory consumption (due to simplified data structures). Finally, it removes the stat-based timestamp checking in favour of the GFileMonitor-based approach that was already being used in the implementation of DesktopFileDir (in order to know if we had to rescan the desktop files themselves). https://bugzilla.gnome.org/show_bug.cgi?id=728040
2014-04-15mimetype tests: don't depend on specific behaviourRyan Lortie1-38/+13
We currently assume that setting an application as the default will take it to the front of the list of supported applications for a given type, but this is not necessarily true. Check instead that the application is actually set as default. https://bugzilla.gnome.org/show_bug.cgi?id=728040
2014-04-15appmonitor test: avoid /usr/shareRyan Lortie1-0/+1
Set XDG_DATA_DIRS to make sure we don't use /usr/share from the appmonitor test. We will soon throw a warning if we find defaults.list, so make sure we don't open ourselves up to that if there is one on the system. https://bugzilla.gnome.org/show_bug.cgi?id=728040
2014-04-15tests: expand 'apps' toolRyan Lortie1-0/+46
Add modes to output the applications found for get_default_, get_recommended_, get_fallback_ and get_all_for_type(). https://bugzilla.gnome.org/show_bug.cgi?id=728040
2014-04-15mimeapps test: fix defaults vs. recommendedRyan Lortie1-2/+4
The desktop file for myapp3 didn't declare support for image/png, but the testcase expects it to be recommended on the basis of it being the default app according to defaults.list. This will not work in the future -- we will only list apps that actually support the filetype in question, unless they've been explicitly added as associations. https://bugzilla.gnome.org/show_bug.cgi?id=728040
2014-04-15desktop-app-info test: use g_assert_strcmp()Ryan Lortie1-7/+7
Replace some assert(strcmp()) with g_assert_strcmp() so that we get better output in case of failures. https://bugzilla.gnome.org/show_bug.cgi?id=728040
2014-04-15build: also unset LIBS when LDFLAGS is unsetAntoine Jacoutot1-4/+6
On OpenBSD, libintl is installed under /usr/local/lib. When configure checks unset LDFLAGS, LIBS should also be unset otherwise we end up with -lintl which cannot be found resulting to the compile check to fail. https://bugzilla.gnome.org/show_bug.cgi?id=727939
2014-04-12gdesktopappinfo: Don't double free sn_idColin Walters1-4/+1
Not sure why mclasen added a g_free() in that path, it was just wrong. We free it correctly later.
2014-04-12gdesktopappinfo: Initialize sn_id to NULLColin Walters1-1/+1
Otherwise we'll be freeing a random stack pointer.
2014-04-12openbsd: remove -pthreadAntoine Jacoutot1-3/+0
This is not needed any longer; libpthread is properly included in shared libs on OpenBSD where -pthread -lpthread mean the same.
2014-04-11Deal with startup notify id being NULLMatthias Clasen1-2/+7
The app launch context may just not support startup notification, in which case, g_app_launch_context_get_startup_notify_id() will return NULL. Failure to take this into account leads to criticals like this: gnome-session[8489]: GLib-CRITICAL: g_variant_new_take_string: assertion 'string != NULL' failed gnome-session[8489]: GLib-CRITICAL: g_variant_new_variant: assertion 'value != NULL' failed gnome-session[8489]: GLib-CRITICAL: g_variant_get_type: assertion 'value != NULL' failed gnome-session[8489]: GLib-CRITICAL: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed https://bugzilla.gnome.org/show_bug.cgi?id=728066
2014-04-10gparam: Add G_PARAM_READWRITE to GParamFlagsEmmanuele Bassi1-6/+2
Using a #define for an enumeration value buys us nothing, and it's mostly historical baggage that makes binding GObject needlessly complicated. https://bugzilla.gnome.org/show_bug.cgi?id=726037
2014-04-10gapplication-tool: ensure object paths are validCosimo Cecchi1-2/+6
Hyphens are not valid characters for DBus object paths; see the similar code in gapplicationimpl-dbus.c https://bugzilla.gnome.org/show_bug.cgi?id=727928
2014-04-10gapplication-tool: fix a typoCosimo Cecchi1-1/+1
This must have never worked. https://bugzilla.gnome.org/show_bug.cgi?id=727928
2014-04-10g_str_has_prefix: don't call strlen(str)Dan Winship1-10/+1
There's no reason to check the length of @str in g_str_has_prefix(), since if it's shorter than @prefix, the strncmp() will fail anyway. And besides making the function less efficient, it also breaks code like: if (buf->len >=3 && g_str_has_prefix (buf->data, "foo")) ... which really looks like it ought to work whether buf->data is nul-terminated or not. https://bugzilla.gnome.org/show_bug.cgi?id=727890
2014-04-10giomodule: Add a NULL guard to extension_point_get_extension_by_nameDebarshi Ray1-0/+2
... otherwise a NULL input will lead to a crash in strcmp. https://bugzilla.gnome.org/show_bug.cgi?id=727964
2014-04-10gobject: try to link with -Wl,-z,nodeleteAlexandre Rostovtsev2-0/+35
Since the type system does not support reloading its data and assumes that libgobject remains loaded for the lifetime of the process, we should link libgobject with a flag indicating that it can't be unloaded. https://bugzilla.gnome.org/show_bug.cgi?id=707298
2014-04-09g_file_copy: Don't set GError when we intend to ignore errorsColin Walters1-1/+1
For better or worse, the current g_file_copy intention was to ignore errors copying metadata, but we still set the GError, while returning TRUE. https://bugzilla.gnome.org/show_bug.cgi?id=727559
2014-04-09gio: Add newer dbus UnknownXxxx and PropertyReadOnly errorsStef Walter3-2/+21
Add G_DBUS_ERROR codes for: * org.freedesktop.DBus.Error.UnknownObject * org.freedesktop.DBus.Error.UnknownInterface * org.freedesktop.DBus.Error.UnknownProperty * org.freedesktop.DBus.Error.PropertyReadOnly These were discussed on the dbus mailing list and introduced in the following libdbus commit: 2c34514620c4b79ea4ec71d1db583379138d01ac https://bugzilla.gnome.org/show_bug.cgi?id=727900
2014-04-09gtlscertificate: fix certificate list parsing with trailing commentsDan Winship1-10/+15
g_tls_certificate_list_new_from_file() was supposed to ignore non-PEM content, but it accidentally required that there not be anything after the last certificate. Fix that. https://bugzilla.gnome.org/show_bug.cgi?id=727692
2014-04-06Updated Ukrainian translationDaniel Korostil1-2266/+3126
2014-04-04GApplication: Don't decrease use_count below 0Marek Kasik1-0/+1
Place an assert for use_count to be at least 1 in g_application_release() so we don't decrease it below 0. https://bugzilla.gnome.org/show_bug.cgi?id=727551
2014-04-04docs: Fix typo in g_unichar_iswide_cjk() commentDavid King1-1/+1
2014-04-03Add a small note to g_cclosure_marshal_generic docsPaolo Borelli1-0/+3
reviewed-by: Emmanuele Bassi
2014-04-02networkaddress: fix parsing of uri with @ after authorityWim Taymans2-3/+11
Make sure that the @ sign is inside the authority part before attempting to parse the userinfo. We do this by checking if the @ sign comes before any of the possible authority delimiters. Add unit test to verify parsing of ftp://ftp.gnome.org/start?foo=bar@baz https://bugzilla.gnome.org/show_bug.cgi?id=726040
2014-04-01build: Include Cocoa/Carbon in Libs.private if targetting Mac OS XPhilip Withnall3-7/+11
This allows static linking against GIO on OS X, which would previously fail due to unresolved symbols from the above two frameworks. https://bugzilla.gnome.org/show_bug.cgi?id=668152
2014-03-31networkmonitornetlink: IN6_IS_ADDR_MC_LINKLOCAL is only guaranteed to work ↵Olivier Crête1-1/+4
on struct in6_addr* https://bugzilla.gnome.org/show_bug.cgi?id=727119
2014-03-30gio: move Winsock error mapping to g_io_error_from_win32_error()Dan Winship3-36/+51
Rather than having special code in gsocket.c, handle Winsock errors along with other Win32 errors in gioerror.c Also, reference g_win32_error_message() from the g_io_error_from_win32_error() docs, and update the g_win32_error_message() docs to clarify that it works with Winsock error codes too.
2014-03-30gio/tests/socket: Update to check the error codeDan Winship1-1/+7
Only treat IPv6 as unsupported if the attempt to create a socket returns G_IO_ERROR_NOT_SUPPORTED: any other error is a bug.
2014-03-30gioerror: map some more values to G_IO_ERROR_NOT_SUPPORTEDDan Winship2-21/+40
Map EPROTONOSUPPORT, ESOCKTNOSUPPORT, EPFNOSUPPORT and EAFNOSUPPORT to G_IO_ERROR_NOT_SUPPORTED in g_io_error_from_errno(). (GSocket's socket_io_error_from_errno() already did this with the corresponding Winsock errors.) Also map EOPNOTSUPP, which on Linux is the same as ENOTSUP, but may not be on other platforms. Also, rewrite the EAGAIN/EWOULDBLOCK section to use the simpler idiom used by EEXIST/ENOTEMPTY and (now) ENOTSUP/EOPNOTSUPP.
2014-03-30Updated Basque languageInaki Larranaga Murgoitio1-981/+1202
2014-03-30docs: Remove escaping '\' from literalsVolker Sobek5-5/+5
commit 35066ed6c6b51317f49069f2564c547aa309f9f1 replaced entities, but escaped the replacement text also inside literals, which resulted in the escaping '\' to also appear in the documentation. https://bugzilla.gnome.org/show_bug.cgi?id=727320
2014-03-29Bump version to 2.41.0, add GLIB_VERSION_2_42, etcDan Winship3-2/+29