https://github.com/GNOME/glib

sort by:
Revision Author Date Message Commit Date
c3279dd params 08 April 2013, 18:32:00 UTC
5154a15 paramspec changes 04 April 2013, 16:31:10 UTC
a1b0101 GObject: substantially rework g_object_new() Make a number of improvements to g_object_new(): - instead of looking up the GParamSpec for the named property once in g_object_new() (in order to collect) and then again in g_object_newv (when actually setting the property), g_object_new_internal() is a new function that takes the GParamSpec on the interface to avoid the second lookup - in the case that ->constructor() is not set, we need not waste time creating an array of GObjectConstructParam to pass in. Just directly iterate the list of parameters, calling set_property() on each. - instead of playing with linked lists to keep track of the construct properties, realise that the number of construct properties that we will set is exactly equal to the length of the construct_properties list on GObjectClass and the only thing that may change is where the value comes from (in the case that it was passed in) This assumption was already implicit in the existing code and can be seen from the sizing of the array used to hold the construct properties, but it wasn't taken advantage of to make things simpler. - instead of allocating and filling a separate array of the non-construct properties just re-iterate the passed-in list and set all properties that were not marked G_PARAM_CONSTRUCT (since the ones that were construct params were already used during construction) - use the new g_param_spec_get_default_value() API instead of allocating and setting the GValue for each construct property that wasn't passed from the user These changes show a very small improvement on the simple-construction performance testcase (probably just noise) and they improve the complex-construction case by ~30%. 04 April 2013, 16:31:05 UTC
e83b08d GParamSpec: add g_param_spec_get_default_value() The way of getting the default value out of a GParamSpec is to allocate a GValue, initialise it, then call g_param_spec_set_default() to set the default value into that GValue. This is exactly how we handle setting the default value for all of the construct properties that were not explicitly passed to g_object_new(). Instead of doing the alloc/init/store on all construct properties on every call to g_object_new(), we can cache those GValue structs as qdata on the GParamSpec itself and reuse them. This patch does not actually make that change to g_object_new() yet, but it adds the API to GParamSpec so that a future patch to GObject can make the change. 04 April 2013, 16:22:43 UTC
96f7e6d gtype: interface-after-init exception for gtk# gtk# also has a problem with the new interface-after-init restriction that nobody noticed until now. Add an exception for them as well so that they have a cycle or so to sort things out. https://bugzilla.gnome.org/show_bug.cgi?id=687659 04 April 2013, 15:41:19 UTC
c5307e4 gtype: interface-after-init exception for glibmm glibmm has a pretty difficult-to-solve problem caused by our recent change to deny addition of interfaces to classes after initialisation. They're looking for a long-term workaround for the problem, but in the meantime we can allow the registration to succeed (with warning) if the class looks like it's being defined by gtkmm. https://bugzilla.gnome.org/show_bug.cgi?id=697229 04 April 2013, 15:10:17 UTC
859e423 gobject: fix G_DEFINE_TYPE_EXTENDED docs so code snippet actually compiles Flags being used in the G_DEFINE_TYPE_EXTENDED sample was "0", so it should expand to 0 as well, otherwise the compiler would bark with: maman-bar.c: In function ‘maman_bar_get_type’: maman-bar.c:36:53: error: ‘flags’ undeclared (first use in this function) maman-bar.c:36:53: note: each undeclared identifier is reported only once for each function it appears in https://bugzilla.gnome.org/show_bug.cgi?id=697250 04 April 2013, 11:11:06 UTC
cef5ce2 Assamese translation updated 04 April 2013, 07:57:35 UTC
bfb6ff0 gsettings: implemented --version command This was discussed in https://bugzilla.gnome.org/show_bug.cgi?id=697131 04 April 2013, 01:35:57 UTC
4214078 Updated Norwegian bokmål translation 03 April 2013, 09:51:27 UTC
d1bbab5 gmacros: Mark G_UNAVAILABLE() functions as deprecated (gcc <= 4.4) RHEL6 ships with GCC 4.4 by default, which doesn't understand the nicer deprecated attribute that takes a message. However, we can at least fall back to the old G_DEPRECATED, rather than silently doing nothing. This gives me warning messages when building OSTree on RHEL6 when I accidentally added a usage of g_unix_fd_source_new(). https://bugzilla.gnome.org/show_bug.cgi?id=697160 03 April 2013, 04:33:45 UTC
3456152 GThreadedResolver: set an error if no records could be found It is possible that the upstream servers return something, but we then filter all results because they are of the wrong type. In that case the API and subsequent GTask calls expect a GError to be set. https://bugzilla.gnome.org/show_bug.cgi?id=696857 02 April 2013, 21:04:15 UTC
31c00c1 codegen: move G_DEFINE_INTERFACE{,_WITH_CODE} before _default_init to avoid warnings when built with -Wredundant-decls: sessionmanager-presence-generated.c:316:1: warning: redundant redeclaration of ‘session_manager_presence_default_init’ [-Wredundant-decls] sessionmanager-presence-generated.c:281:1: note: previous definition of ‘session_manager_presence_default_init’ was here sessionmanager-presence-generated.c:1273:1: warning: redundant redeclaration of ‘object_default_init’ [-Wredundant-decls] sessionmanager-presence-generated.c:1259:1: note: previous definition of ‘object_default_init’ was here https://bugzilla.gnome.org/show_bug.cgi?id=696108 02 April 2013, 19:49:59 UTC
576e2ce codegen: Avoid warnings when the generated client code is built with -Wunused-parameter https://bugzilla.gnome.org/show_bug.cgi?id=696108 02 April 2013, 19:49:54 UTC
e359130 ghash: Suppress -Wmaybe-uninitialized from GCC 4.4 It's not clever enough to figure out that these are always initialized in code paths that use them. Reviewed-By: Benjamin Otte <otte@gnome.org> 02 April 2013, 18:14:42 UTC
8cddb54 gaction: add parser for detailed action names Expand and formalise the syntax for detailed action names, adding a well-documented (and tested) public parser API for them. Port the only GLib-based user of detailed action names to the new API: g_menu_item_set_detailed_action(). The users in Gtk+ will also be ported soon. https://bugzilla.gnome.org/show_bug.cgi?id=688954 01 April 2013, 20:53:54 UTC
e1fdd59 Add GLib 2.38 version macros 01 April 2013, 20:53:53 UTC
1011e42 Fix compile error in gdbusmessage.c for win64 https://bugzilla.gnome.org/show_bug.cgi?id=696973 01 April 2013, 06:48:36 UTC
2c8008a gtask: free error on finalize if it's set https://bugzilla.gnome.org/show_bug.cgi?id=696652 26 March 2013, 18:19:41 UTC
fdd3cf9 Fix tiny docs typo. 26 March 2013, 09:51:48 UTC
812bb6c bump version for start of unstable branch 25 March 2013, 21:49:20 UTC
bea56fc GLib 2.36.0 25 March 2013, 21:39:21 UTC
978571d g_file_copy(): Ensure G_FILE_COPY_OVERWRITE preserves permissions We need to close the stream *before* applying the file modes, because g_file_replace() allocates a temporary file. At the moment we're applying the modes to the extant file, then immediately rename()ing over it with the default perms. This regressed with commit 166766a89fcd173dcd6ffda11f902029928f7f28. The real fix here is to have g_file_create_with_info() so that we can atomically create a file with the permissions we want. https://bugzilla.gnome.org/show_bug.cgi?id=696014 25 March 2013, 20:32:39 UTC
ef2aa88 Completed for Malayalam 25 March 2013, 17:41:43 UTC
d428084 Punjabi: Translation updated (aalam) 25 March 2013, 17:20:00 UTC
9d1a434 Updated Telugu Translations 25 March 2013, 09:57:44 UTC
21c9974 Updated Telugu Translations 25 March 2013, 09:57:43 UTC
09fcd1a Corrected some GLIB_AVAILABLE_IN_* 25 March 2013, 09:16:49 UTC
c63d7ce Update Czech translation 24 March 2013, 19:20:55 UTC
beae47d Init padding to NULL to avoid a missing initializer warning like sessionmanager-presence-generated.c:920:1: warning: missing initializer [-Wmissing-field-initializers] sessionmanager-presence-generated.c:920:1: warning: (near initialization for ‘_org_gnome_session_manager_presence_skeleton_vtable.padding’) [-Wmissing-field-initializers] https://bugzilla.gnome.org/review?bug=696108 24 March 2013, 15:27:01 UTC
82f29a0 Updated Russian translation 23 March 2013, 17:12:04 UTC
159e923 [l10n] Update Japanese translation 23 March 2013, 10:10:01 UTC
05b3787 Updated Odia Language along with FUEL implementation 22 March 2013, 12:56:42 UTC
fe6e7f7 Updated Odia Language along with FUEL implementation 22 March 2013, 12:52:51 UTC
8431ae4 Updated Odia Language along with FUEL implementation 22 March 2013, 12:41:16 UTC
7f7154a Updated gujarati file 22 March 2013, 10:57:08 UTC
48e4d01 Updated Marathi Translations 22 March 2013, 10:16:01 UTC
14fe1ae Tamil Translations Updated 22 March 2013, 09:47:35 UTC
e4eaa14 Corrected a GLIB_AVAILABLE_IN_* 21 March 2013, 12:11:03 UTC
a3de65a hindi translation 21 March 2013, 09:28:09 UTC
dd0ea5d Added examples to GTestDBus documentation 21 March 2013, 07:37:21 UTC
7081635 Updated Hungarian translation 20 March 2013, 23:22:58 UTC
ed95b01 Updated Basque language 20 March 2013, 08:35:28 UTC
9f758c2 [l10n] Added Tadjik translation 19 March 2013, 21:30:20 UTC
4c6c093 More clean up for Unicode corrigendum #9 Fix some more testcases. 19 March 2013, 03:28:27 UTC
11bb67b Small NEWS change 19 March 2013, 03:01:08 UTC
a8939a6 tests: remove a pair of testcases that fail in en_CA These testcases don't work with the Canadian date format, so remove them. 19 March 2013, 02:57:55 UTC
366b048 Updated slovak translation 18 March 2013, 20:22:18 UTC
3e41aba Another update 18 March 2013, 19:23:07 UTC
9863cce goption: g_option_context_new allows NULL for parameter_string 18 March 2013, 13:11:05 UTC
cc09223 Update Visual Studio property sheets "Install" gtask.h... it's needed. 18 March 2013, 08:52:36 UTC
5825dd8 g_hash_table_get_keys: Improve docs slightly https://bugzilla.gnome.org/show_bug.cgi?id=630284 18 March 2013, 03:30:34 UTC
d59acb7 Small cleanup to tutorial headings This makes all the subsection headers consistent. https://bugzilla.gnome.org/show_bug.cgi?id=659428 18 March 2013, 03:01:21 UTC
0a13464 docs: Elaborate replacement for g_strncasecmp https://bugzilla.gnome.org/show_bug.cgi?id=568405 18 March 2013, 02:58:03 UTC
9a08d81 Add warning to g_base64_decode() https://bugzilla.gnome.org/show_bug.cgi?id=696015 18 March 2013, 02:48:53 UTC
a8811fb GDBusMethodInvocation: leak and potential crash _g_dbus_method_invocation_new is said to allow method_info == NULL, but will crash inside g_dbus_method_info_ref when the method_info really is NULL, because g_dbus_method_info_ref does not allow NULL as parameter. Fixed by checking for NULL in _g_dbus_method_invocation_new itself. The leak itself happens because _g_dbus_method_invocation_new stores a new reference to the method_info without also unreferencing it. Fixed by adding the missing unref, protected by an if because the pointer may be NULL. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=695376 18 March 2013, 02:46:20 UTC
1a95671 Updated Latvian translation 17 March 2013, 18:08:27 UTC
a484b62 Updated Belarusian translation. 17 March 2013, 13:40:46 UTC
9a8bae8 Updated Uyghur translation Signed-off-by: Gheyret Kenji <gheyret@gmail.com> 17 March 2013, 04:54:19 UTC
255c65f gmacros: Ensure GUINT32/64_SWAP_LE_BE macros parenthesize arguments Like all macros, we need to parenthesize arguments to ensure the order of operations is correct. See the mail thread starting at <http://lists.fedoraproject.org/pipermail/devel/2013-March/180302.html> "GCC produced wrong code in gvfs-1.14.2-3.fc18.x86_64" for how this caused trouble with GVFS (which in turn caused trouble with LibreOffice, where running "soffice sftp://.../.../test.odt" to access an .odt file via GVFS failed to properly type-detect that file as a Writer document and produced bogus error messages about the file being broken). https://bugzilla.gnome.org/show_bug.cgi?id=695925 15 March 2013, 16:51:49 UTC
55a235d Updated Portuguese translation and converted to New Spelling (Novo AO) 15 March 2013, 12:55:57 UTC
e3c2d03 Doc: clarify set_property() vfunc Implementations "don't need to ...". It was not clear what happen if they do it all the same. https://bugzilla.gnome.org/show_bug.cgi?id=695887 15 March 2013, 08:07:30 UTC
e569079 Doc: clarify a bit g_signal_connect_object() "the object" can be a bit confusing for a beginner, he can think it is the @instance. https://bugzilla.gnome.org/show_bug.cgi?id=695887 15 March 2013, 08:07:29 UTC
2c566aa Updated Slovenian translation 14 March 2013, 22:17:33 UTC
2d1456b Updated gujarati file 14 March 2013, 10:58:11 UTC
a0a68ef Updated gujarati file 14 March 2013, 09:54:20 UTC
605c4ca live-g-file: test hidden files We test for traditional Unix dot-leading files as well as for files listed in the .hidden file. https://bugzilla.gnome.org/show_bug.cgi?id=695147 13 March 2013, 13:41:09 UTC
3902006 glocalfileinfo: Stop using PATH_MAX for .hidden We were using PATH_MAX to size a static array for reading lines from the .hidden file. Some platforms (Hurd) don't declare a PATH_MAX. Switch to using g_file_get_contents() and g_str_split('\n') instead. Also take the time to clean up a bit with a switch to using a 'set mode' GHashTable (since this code was originally written before we had those). This patch is largely based on a patch from Emilio Pozuelo Monfort (who also reported the bug). https://bugzilla.gnome.org/show_bug.cgi?id=695147 13 March 2013, 13:41:03 UTC
8028f54 Updated Uyghur translation Signed-off-by: Gheyret Kenji <gheyret@gmail.com> 13 March 2013, 11:48:15 UTC
498d907 Updated Uyghur translation Signed-off-by: Gheyret Kenji <gheyret@gmail.com> 13 March 2013, 11:39:02 UTC
4db7e5e Updated Danish translation 12 March 2013, 22:14:39 UTC
ee8d54b [l10n] Updated Catalan (Valencian) translation 12 March 2013, 22:02:33 UTC
7b7cf94 [l10n] Updated Catalan translation 12 March 2013, 22:02:24 UTC
5131421 Updated French translation 12 March 2013, 17:17:12 UTC
e359bc0 tests: clean up for Unicode corrigendum #9 Unicode corrigendum #9 spells out in no uncertain terms that on conversion interfaces we should not reject characters like U+FFFE and U+FFFF which we were doing before. Commit f91ef4ef15d220f6899c97aaf5b1c0a8f68cfe9a started accepting these characters, but we had some testcases that were checking that strings containing these characters should be rejected. Update the tests. https://bugzilla.gnome.org/show_bug.cgi?id=694669 12 March 2013, 16:46:18 UTC
a839dc5 Assamese translation updated for gnome 3.8 12 March 2013, 12:54:22 UTC
97050e5 Fix /appinfo/mime tests Commit f641699 (for bug 675333) introduced a check whether the Exec= program in a .desktop actually exists. This broke the /appinfo/mime/* test cases which use executable names like "my_app". Use real ones instead (like "echo" and "sleep"), and add a new /appinfo/mime/ignore-nonexisting test case which verifies that g_desktop_app_info_new() indeed ignores nonexisting executables. https://bugzilla.gnome.org/show_bug.cgi?id=695191 12 March 2013, 06:07:07 UTC
48b1804 [l10n] Updated Italian translation. 11 March 2013, 21:08:36 UTC
40026bc Updated Galician translations 11 March 2013, 20:54:50 UTC
1c10773 Updated Korean translation 11 March 2013, 17:22:43 UTC
77798c2 Updated Spanish translation 11 March 2013, 17:09:07 UTC
f240872 Updated Greek translation 11 March 2013, 15:26:39 UTC
5e20ba4 Updated Serbian translation 11 March 2013, 10:29:28 UTC
8a8f423 [l10n] Updated German translation 10 March 2013, 16:06:47 UTC
1da401d [l10n] Update Japanese translation 10 March 2013, 12:55:53 UTC
d72e609 Updated Brazilian Portuguese translation 09 March 2013, 18:43:20 UTC
9da2125 Updated Polish translation 09 March 2013, 18:41:07 UTC
92de11e Updated Lithuanian translation 09 March 2013, 15:20:42 UTC
2549c33 gsettings-tool: Make a string translatable https://bugzilla.gnome.org/show_bug.cgi?id=695425 09 March 2013, 14:56:02 UTC
74e9283 Updated Slovenian translation 09 March 2013, 12:50:59 UTC
9c3d69e Updated Belarusian translation. 09 March 2013, 11:01:43 UTC
eaaa5ef Updated Greek translation 09 March 2013, 09:37:03 UTC
af61926 Updated Polish translation 08 March 2013, 19:46:44 UTC
85b8f23 [l10n] Updated German translation 08 March 2013, 16:06:53 UTC
7d468ad Updated Brazilian Portuguese translation 08 March 2013, 13:37:54 UTC
33fb522 Updated Thai translation 08 March 2013, 08:46:25 UTC
f67a990 [win32] Remove MemoryBarrier() fallback implementation I added these because the older mingw32 toolchain didn't have MemoryBarrier(). The newer mingw-w64 toolchain however has. As reported by John Emmas this was causing build failure with MSVC because of inline issues. But that reminded me that we may be taking this path even if the system implements MemoryBarrier as a function, which is a waste. So, just remove it. 08 March 2013, 01:21:12 UTC
75d4249 Updated Galician translations 07 March 2013, 23:49:41 UTC
f1173dd Fix a mixup of singular and plural Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=695339 07 March 2013, 21:45:50 UTC
b3dc7e7 Updated Belarusian translation. 07 March 2013, 13:20:49 UTC
back to top