https://github.com/GNOME/glib

sort by:
Revision Author Date Message Commit Date
0f3306a Add reference counted strings Instead of copying strings around, we can box them using the g_ref_* API and add reference counting to the char array. Reference counted strings can be used with any string utility function. 15 November 2016, 13:34:44 UTC
43ed42e Add atomically reference counted memory Similar to g_ref_*, we have g_atomic_ref_*, which will ensure that all reference counting operations are performed atomically. Not every data structure needs atomic reference counting; for instance, most of the GTK+ data structures operate under the assumption that only one thread can access windowing system data. Since atomic operations are not cheap, forcing them on every data structure can negatively affect performance. The underlying reference counting mechanism for g_atomic_ref_* is the same as for g_ref_*, but instead of adding a "make this atomic" boolean flag to the g_ref_* API we prefer being explicit, and add the "atomic" qualifier directly into the API, to avoid misunderstandings. 15 November 2016, 12:40:41 UTC
b49fd4c Add reference counted memory A common pattern inside GLib, and the rest of the G* platform, consists of allocating some structure with a reference count. Usually, this structure is hidden, but in some cases reference counting can be bolted on top of public plain old data structures, or on top of existing C types, like a char array. If the data structure that needs reference counting is public we usually "box" it into a reference counted container. Unfortunately, since we're limited by the C syntax, this either means constantly de-referencing the contents of the box in order to get to the real type; or it means duplicating the whole API dealing with that type. The alternative is to make the "box" transparent, and hide the reference counting mechanism behind the pointer to the contents, using the same mechanism GObject employs to handle private instance data. This allows us to allocate some memory for a data structure and use it in the same way we normally would with memory allocated via the system allocator. Whenever we need to operate on the reference count of the data, though, we reach behind the pointer and access the real reference counted box. 15 November 2016, 12:40:34 UTC
7bf84d8 Port GDateTime to g_ref_counter_* 15 November 2016, 11:49:07 UTC
2c27b98 Port GAsyncQueue to g_ref_counter_* 15 November 2016, 11:33:26 UTC
e5e2c07 Port GArray and GPtrArray to g_ref_counter_* Instead of using atomic operations directly, use an atomic reference counter. 15 November 2016, 11:26:44 UTC
76e18ab Add reference counter API Various data structures provided by GLib are reference counted, these days, and each one of them implements its own reference counter. This also happens to data structures implemented on top of GLib ones. GLib should provide some common API to deal with reference counting — both atomic and non-atomic. This way we keep the code duplication at a minimum, while also providing guarantees of how reference counting should work. 15 November 2016, 11:19:18 UTC
a8c6e30 glib-gettextize: respect @datadir@ instead of assuming $prefix/share https://bugzilla.gnome.org/show_bug.cgi?id=774421 14 November 2016, 18:33:32 UTC
11a6e19 tests/refcount/signals: don't shadow rand() rand() is in the C library and some C libraries (uclibc, for example) end up with rand() defined even if stdlib.h isn't included explicitly. https://bugzilla.gnome.org/show_bug.cgi?id=774421 14 November 2016, 18:33:32 UTC
9f4d5e8 gsignal: Mention handler ID type in signal connection macro docs gtk-doc doesn’t make the return type clear, because these are macros rather than inline functions, so people often have to guess at the return type (or look it up from g_signal_connect_closure(), but that’s hard work). Make it clear that the return type for handler IDs is gulong. While there, fix the capitalisation of ‘id’ to ‘ID’ in a few places. 10 November 2016, 16:12:41 UTC
3f12ca5 gtestutils: Clarify that g_assert() should not have side effects g_assert() gets completely compiled out if G_DISABLE_ASSERT is defined, so applications should not depend on side effects of the expression in an assertion. 09 November 2016, 16:52:21 UTC
4607bd3 gmain: fix g_main_context_check declaration g_main_context_check is defined as a function returning gboolean. It should be declared as such. https://bugzilla.gnome.org/show_bug.cgi?id=774086 09 November 2016, 15:38:20 UTC
d8acf9b gmacros: Clarify G_GNUC_[PRINTF|SCANF] macro documentation Clarify that the arguments parameter can be zero if the function being annotated just accepts a string format argument, and no varargs for it (for example, if it takes a va_list of arguments instead). Add some links to the GCC documentation for the `format` attribute. 09 November 2016, 15:11:53 UTC
1f36189 gapplication: Fix a typo in a documentation comment It’s ‘D-Bus’, not ‘DBus’, ‘DBUS’, ‘D Bus’, ‘Dee Buss’ or ‘the bus’. 08 November 2016, 21:13:45 UTC
932eb87 glib-mkenums: fix variable declaration Inconsequential, just sync up declaration with actual name of variable to avoid confusion. https://bugzilla.gnome.org/show_bug.cgi?id=770175 08 November 2016, 15:21:03 UTC
d1763d8 Revert "glib-compile-resources: Output depfile in same directory as target" This reverts commit 9006940de604a8d72bf9198a0e4b20cd113c4b11. 06 November 2016, 02:15:53 UTC
9006940 glib-compile-resources: Output depfile in same directory as target https://bugzilla.gnome.org/show_bug.cgi?id=773437 02 November 2016, 21:44:23 UTC
acd07cf build/Makefile-newvs.am: Do not hardcode the baseline MSVC version This is to allow specification of the baseline Visual Studio 201x version as the baseline version may not be 2010 anymore as we begin to require C99 features that will require Visual Studio 2013 or later. 01 November 2016, 07:39:16 UTC
1f33b36 build/Makefile.msvcproj: Add rules for MSVC 2013 to be the baseline version We are starting to require C99 features that can only be supported in Visual Studio 2013 and later, so we need to prepare rules for Visual Studio 2013 to be our baseline version for Visual Studio builds, so that we can move the templates from Visual Studio 2010 to Visual Studio 2013. As this strives to be a shared autotools module between projects, there is duplication at this point, though, because we still want to support 2008~2012 for projects that do not yet require the C99 features and depends on GLib-2.50.x/GTK+-3.22.x or earlier. 01 November 2016, 07:39:16 UTC
e37a3c9 Updated Lithuanian translaton 30 October 2016, 11:20:15 UTC
37e8186 Update German translation 29 October 2016, 13:44:44 UTC
e6990cf Updated Czech translation 28 October 2016, 15:59:21 UTC
3162322 Update Swedish translation 27 October 2016, 11:49:21 UTC
dadb774 Update Spanish translation 25 October 2016, 15:22:42 UTC
b408278 2.51.0 24 October 2016, 14:22:38 UTC
2d56c49 Partially revert 10c490cdfe3ae042f747bd00f787492e2bdb7ed0 This commit broke some tests, and I don't have the time to fix up all the expected output, so I'll revert the changes to the affected files for now. This needs to be redone with the necessary test fixes. 24 October 2016, 14:21:59 UTC
b56eded Document "-s" commandline flag for running test suites https://bugzilla.gnome.org/show_bug.cgi?id=769135 24 October 2016, 10:12:56 UTC
f14389b gapplication: Properly free the option_strings option_strings gets set in g_application_add_main_option, so it can contain elements independent from packed_options. https://bugzilla.gnome.org/show_bug.cgi?id=773303 24 October 2016, 10:10:57 UTC
7470cc9 Avoid warning for G_PARAM_DEPRECATED with GCC 6 [-Wpedantic] Refer to https://bugzilla.gnome.org/show_bug.cgi?id=767882 Related to GCC https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71803 24 October 2016, 10:10:14 UTC
243c1b7 glib-compile-resources: Fix creating depfile with other targets Follow up to 87d76a5a9c from bug 745754 https://bugzilla.gnome.org/show_bug.cgi?id=773344 24 October 2016, 05:41:57 UTC
feeb039 Update Turkish translation 23 October 2016, 20:06:44 UTC
427ecb7 Update Hungarian translation 23 October 2016, 17:42:48 UTC
67e3a89 Updated Lithuanian translation 23 October 2016, 11:27:49 UTC
043208f Updated French translation 21 October 2016, 08:27:36 UTC
2a970e3 gresolver: Make get_default() thread-safe https://bugzilla.gnome.org/show_bug.cgi?id=773262 20 October 2016, 14:49:44 UTC
c718bf8 build/win32/vs10/Makefile.am: Delete glib-install.props's on re-generation This is to ensure the changes that is applied to glib-install.props here is applied to the projects files in build/win32/vs[11|12|14] as well. 19 October 2016, 07:31:24 UTC
70040b4 build/: Force MSVC project file generation on Makefile.am changes Make the Makefile.am targets for generating the Visual Studio projects re-generate the project files and the header listings whenever the Makefile.am's that include build/Makefile.msvcproj changes, so that whenever a source/header is added, they will be reflected in the projects and in the property sheets that are used to copy the headers. Also ensure that these are applied to the vs11, vs12 and vs14 projects when this happens, as they are copied and processed from the Visual Studio 2010 projects. 19 October 2016, 06:54:12 UTC
610a0a3 Update Polish translation 18 October 2016, 20:40:25 UTC
b41212a Updated Norwegian bokmål translation from Kjartan Maraas. 16 October 2016, 17:38:11 UTC
55ce274 Updated Lithuanian translation 15 October 2016, 19:10:28 UTC
6ab68e9 Bump version to 2.51.0 So that we don't get "deprecation" (availability) warnings for new functionality of GLib 2.51/2.52. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Colin Walters <walters@verbum.org> 13 October 2016, 20:53:27 UTC
c46dbd4 Make g_utf8_make_valid public Based on a patch by Simon van der Linden and rebased onto current GLib, with improved documentation loosely based on Telepathy's tp_utf8_make_valid(). Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugzilla.gnome.org/show_bug.cgi?id=591603 Bug: https://bugzilla.gnome.org/show_bug.cgi?id=610969 Reviewed-by: Colin Walters <walters@verbum.org> 13 October 2016, 20:52:42 UTC
01bfa16 W32: pass correct (with offset) argc to protect_wargv https://bugzilla.gnome.org/show_bug.cgi?id=772054 13 October 2016, 14:10:57 UTC
ee4c618 Update German translation 13 October 2016, 09:22:54 UTC
c494c30 gfile: G_FILE_MONITOR_WATCH_MOVES was actually introduced in 2.46 I'm guessing the developments were done in 2.44 but the patches landed after the 2.45.0 bump without an update to the Since tags. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> https://bugzilla.gnome.org/show_bug.cgi?id=769630 12 October 2016, 23:18:05 UTC
540374c Document --output option of glib-mkenums 12 October 2016, 22:01:37 UTC
ac54db2 glib-mkenums: add --output option to write output to a file https://bugzilla.gnome.org/show_bug.cgi?id=770175 12 October 2016, 21:05:07 UTC
c382da4 Document new option of glib-genmarshal 12 October 2016, 19:56:49 UTC
0fbc980 glib-genmarshal: add --output option to write output to a file https://bugzilla.gnome.org/show_bug.cgi?id=770175 12 October 2016, 19:56:49 UTC
10c490c Use Unicode in translatable strings See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772221 12 October 2016, 19:30:42 UTC
da509fd gunixmounts: Add g_unix_mount_for() support GLib has g_unix_mount_at (mount_path) already, let's add g_unix_mount_for (file_path) for whatever path. GLib already contains some private code for such task. Let's make this code public. This functionality is needed by GVfs (see Bug 771431) in order to avoid copy-and-pasting. https://bugzilla.gnome.org/show_bug.cgi?id=772160 12 October 2016, 19:13:00 UTC
67ce530 Add version macros for 2.52 12 October 2016, 19:07:31 UTC
3f5d414 Update Slovak translation 12 October 2016, 18:08:46 UTC
447044a gtestutils: Fix a typo in the documentation for GTestFileType EXTRA_DIST, not DIST_EXTRA. 12 October 2016, 15:47:40 UTC
4d38d01 Update Occitan translation 12 October 2016, 08:09:47 UTC
85f66f6 Updated Galician translations 11 October 2016, 13:40:21 UTC
e44ea51 2.50.1 10 October 2016, 17:06:25 UTC
758f448 Update Hungarian translation 10 October 2016, 13:42:41 UTC
615b847 glog: fix crash on windows with --subsystem,windows app A windows application compiled with -Wl,--subsystem,windows has no console attached. When started from the start menu for ex, it will crash when a function attempt to use g_log: #10 0x00a21b26 in g_logv (log_domain=0xa842e1 <__func__.7668+329> "GLib", log_level=G_LOG_LEVEL_CRITICAL, format=0xa845c6 <__func__.7668+1070> "%s: assertion '%s' failed", args=0x28f2bc "PG"") #11 0x00a21bb1 in g_log (log_domain=0xa842e1 <__func__.7668+329> "GLib", log_level=G_LOG_LEVEL_CRITICAL, format=0xa845c6 <__func__.7668+1070> "%s: assertion '%s' failed") at gmessages.c:1337 #12 0x00a22bac in g_return_if_fail_warning (log_domain=0xa842e1 <__func__.7668+329> "GLib", pretty_function=0xa84750 <__func__.65002> "g_log_writer_supports_color", expression=0xa844de <__func__.7668+838> "output_fd >= 0") at gmessages.c:2453 #13 0x00a2239e in g_log_writer_supports_color (output_fd=-2) at gmessages.c:1826 #14 0x00a226ac in g_log_writer_standard_streams (log_level=G_LOG_LEVEL_WARNING, fields=0x28f3c8, n_fields=4, user_data=0x0) at gmessages.c:2254 #15 0x00a2290e in g_log_writer_default (log_level=G_LOG_LEVEL_WARNING, fields=0x28f3c8, n_fields=4, user_data=0x0) at gmessages.c:2357 According to https://msdn.microsoft.com/en-us/library/zs6wbdhx.aspx: If stdout or stderr is not associated with an output stream (for example, in a Windows application without a console window), the file descriptor returned is -2. In previous versions, the file descriptor returned was -1. This change allows applications to distinguish this condition from an error. Check if the stream exists and has an associated descriptor and return G_LOG_WRITER_UNHANDLED if it's not the case. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=772511 Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> 10 October 2016, 13:39:07 UTC
a54abbb Updated Danish translation 09 October 2016, 20:08:32 UTC
3c1b0c6 Update Latvian translation 09 October 2016, 16:17:52 UTC
9f249bc Update Italian translation 07 October 2016, 07:17:01 UTC
d4dac1c Updated Czech translation 06 October 2016, 22:09:34 UTC
11af09d Update Swedish translation 06 October 2016, 21:08:26 UTC
aa90bec Update Polish translation 06 October 2016, 20:30:57 UTC
12d0bc3 Update Brazilian Portuguese translation 06 October 2016, 20:26:01 UTC
6338cde glib-compile-schemas: Add a --version option https://bugzilla.gnome.org/show_bug.cgi?id=772269 06 October 2016, 20:08:25 UTC
bce8b6d glib-compile-resources: Add a --version option There have been some improvements to the tool recently, but it's hard to know if those are available on a given system unless the tool provides a --version commandline option. https://bugzilla.gnome.org/show_bug.cgi?id=772269 06 October 2016, 20:08:25 UTC
e048d31 completion: Complete gsettings describe Commit 8fd72838 added a 'describe' command to the gsettings tool, but didn't implement completions for it. https://bugzilla.gnome.org/show_bug.cgi?id=772297 05 October 2016, 18:26:42 UTC
0d1eecd unicode: Fix ordering in iso15924_tags to match GUnicodeScript enum https://bugzilla.gnome.org/show_bug.cgi?id=771591 05 October 2016, 13:23:49 UTC
10bac98 gresolver: Mark GResolver as an abstract class It only works through its virtual methods, so while it could be instantiated before (and this is technically an API break), any instance of it would previously have crashed as soon as any of its methods were called anyway. If anybody has any problems with this ABI break, please make them known during the 2.51 unstable development cycle and it can be reverted. https://bugzilla.gnome.org/show_bug.cgi?id=772255 04 October 2016, 15:02:34 UTC
bd9e266 gunixmounts: Fix /proc/self/mountinfo monitoring /proc/self/mountinfo is used to monitor changes of mounts with libmount. However, GFileMonitor is used currently to monitor this file, which doesn't work and consequently "changed" signal is never emitted. Special monitoring needs to be used instead, same as it is used for /proc/mounts. https://bugzilla.gnome.org/show_bug.cgi?id=662946 29 September 2016, 08:21:34 UTC
7485abe W32: pass argc returned by CommandLineToArgvW() to to protect_wargv() It turns out that CommandLineToArgvW() (at least on XP) doesn't end the argv pointer array with a NULL, but goes straight into argv[0] string data, as per MSDN. So gspawn-win32-helper.c:protect_wargv() counts argc too high and overflows. https://bugzilla.gnome.org/show_bug.cgi?id=772054 27 September 2016, 16:59:56 UTC
34751ad Add a test for dictionaries in settings This should clarify the questions in https://bugzilla.gnome.org/show_bug.cgi?id=771968 26 September 2016, 10:27:12 UTC
06c3624 Update Catalan translation 25 September 2016, 18:24:34 UTC
ba85715 Updated Croatian translation 24 September 2016, 10:30:32 UTC
6014039 glib: Add SystemTap probe to g_source_add_child_source() So that the relationships between parent and child GSources can be probed using SystemTap. 24 September 2016, 05:46:30 UTC
1ff7969 unicode: Update test data files for unicode 9.0.0 https://bugzilla.gnome.org/show_bug.cgi?id=771591 21 September 2016, 16:31:10 UTC
ba18667 unicode: Update to unicode 9.0.0 https://bugzilla.gnome.org/show_bug.cgi?id=771591 21 September 2016, 16:31:04 UTC
c7f4699 unicode: Update break_mappings This will be required for the update to unicode 9.0.0. https://bugzilla.gnome.org/show_bug.cgi?id=771591 21 September 2016, 16:30:52 UTC
fc05677 MSVC Builds: Fix gio-tool projects We need to look in $(srcroot)\gmodule for the up-to-date gmodule.h. Pointed out by Ignacio Casal Quinteiro. 20 September 2016, 07:08:42 UTC
29ef743 Update Catalan translation 19 September 2016, 20:45:11 UTC
eaca4f4 2.50.0 19 September 2016, 13:56:20 UTC
3602f93 Update Basque language 18 September 2016, 17:09:33 UTC
979e240 Updates 18 September 2016, 12:15:00 UTC
496cd8a Turn on libmount by default on linux The libmount code produces somewhat different results than the older Linux code that would parse /proc/mounts; for example, bind mounts appear in the libmount output. To try and get as many GLib users as possible to have the same behavior, on Linux, make GLib error out on missing libmount unless --disable-libmount is passed. https://bugzilla.gnome.org/show_bug.cgi?id=771438 18 September 2016, 11:54:45 UTC
063e279 Fixed annotation for g_log_variant() 17 September 2016, 19:25:31 UTC
3e31f80 Updated French translation 16 September 2016, 15:13:10 UTC
f924d0b Updated British English translation 14 September 2016, 12:18:08 UTC
e887b4a 2.49.7 13 September 2016, 03:03:17 UTC
2dc11a5 Add a test for the previous fix 13 September 2016, 02:28:35 UTC
b12e0b8 goption: Don't return pointers to deallocated memory g_option_context_parse() can return pointers to deallocated strings, if the command line contains an unknown option. https://bugzilla.gnome.org/show_bug.cgi?id=646926 13 September 2016, 02:27:48 UTC
7bf3106 gsubprocess: Fix annotation for set_environ() 12 September 2016, 18:41:40 UTC
05a1080 Update Latvian translation 11 September 2016, 09:43:53 UTC
4358b44 Update Latvian translation 11 September 2016, 09:41:29 UTC
b78a297 Updated Slovak translation 10 September 2016, 14:32:45 UTC
4c3ae1c .gitignore: ignore 'tags' files (ctags stuff) 09 September 2016, 13:37:18 UTC
e7bdd5d Add g_log_variant(): structured log that accepts a GVariant This makes the structured logging available to other languages via introspection. https://bugzilla.gnome.org/show_bug.cgi?id=770971 09 September 2016, 12:07:50 UTC
9323378 tests: Remove an unsed variable 09 September 2016, 12:07:50 UTC
b180510 Removed an unused include 09 September 2016, 11:50:55 UTC
back to top