Ryan Lortie [Mon, 15 Oct 2012 16:01:01 +0000 (12:01 -0400)]
Properly deprecate g_type_init()
Now that all internal users of it are gone.
https://bugzilla.gnome.org/show_bug.cgi?id=686161
Ryan Lortie [Mon, 15 Oct 2012 16:00:51 +0000 (12:00 -0400)]
Remove g_type_init() calls
Very many testcases, some GLib tools (resource compiler, etc) and
GApplication were calling g_type_init().
Remove those uses, as they are no longer required.
https://bugzilla.gnome.org/show_bug.cgi?id=686161
Ryan Lortie [Mon, 15 Oct 2012 15:53:25 +0000 (11:53 -0400)]
Convert g_type_init() to a ctor
Move the guts of g_type_init() into a ctor and turn g_type_init() itself
into a do-nothing function.
g_type_init_with_debug_flags() now ignores its arguments, but it has
always been possible to achieve the same effect via environment
variables.
https://bugzilla.gnome.org/show_bug.cgi?id=686161
Matthias Clasen [Mon, 15 Oct 2012 23:48:44 +0000 (19:48 -0400)]
Add missing semicolons to gobject_probes.d
Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=686119
Marc-Antoine Perennou [Sat, 6 Oct 2012 12:56:36 +0000 (14:56 +0200)]
gdbus-testserver: port to pygi
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
https://bugzilla.gnome.org/show_bug.cgi?id=685608
Matthias Clasen [Mon, 15 Oct 2012 23:34:36 +0000 (19:34 -0400)]
Add return-if-fail checks to g_application_hold/release
This is our common practice for public API.
https://bugzilla.gnome.org/show_bug.cgi?id=685208
Ryan Lortie [Mon, 15 Oct 2012 23:28:28 +0000 (19:28 -0400)]
g_settings_bind: use canonical property name
We were using the user-passed value of the @property argument for
several purposes in g_settings_bind(): error messages, binding
uniqueness (ie: one-binding-per-property-per-object) and most
importantly, connecting to the detailed notify:: signal.
The user may pass a string like "property_name" when the property's
canonical name is "property-name". g_object_class_find_property() will
find the property under these circumstances, but a connection to
"notify::property_name" will not notice notifies emitted for
"property-name".
We can solve this by using the user's string to perform the lookup and
then using pspec->name for everything after that.
https://bugzilla.gnome.org/show_bug.cgi?id=684882
Matthias Clasen [Mon, 15 Oct 2012 23:22:50 +0000 (19:22 -0400)]
Add Win32 versions of some new content type APIs
This commit adds minimal versions of
g_content_type_get_symbolic_icon and
g_content_type_get_generic_icon_name.
https://bugzilla.gnome.org/show_bug.cgi?id=683642
Ask H. Larsen [Mon, 15 Oct 2012 04:33:25 +0000 (06:33 +0200)]
Updated Danish translation
Ryan Lortie [Sat, 13 Oct 2012 16:16:32 +0000 (12:16 -0400)]
gsignal: really fix closure invalidation
Commit
66b0d95f0ba1939882368b47b01f93289c42ae07 missed this part of the
patch.
Arnel A. Borja [Fri, 12 Oct 2012 16:58:05 +0000 (09:58 -0700)]
gtimezone: Indentation adn comment fixes
John Ralls [Mon, 24 Sep 2012 17:54:38 +0000 (10:54 -0700)]
Bug 631382 - GTimeZone support for zoneinfo version 1
Kjartan Maraas [Thu, 11 Oct 2012 18:27:30 +0000 (20:27 +0200)]
Updated Norwegian bokmål translation.
Will Thompson [Tue, 9 Oct 2012 08:30:06 +0000 (09:30 +0100)]
gtestdbus: correct documentation typos
https://bugzilla.gnome.org/show_bug.cgi?id=685787
Dan Winship [Thu, 2 Aug 2012 19:45:24 +0000 (15:45 -0400)]
gio/tests: port from GSimpleAsyncResult to GTask
https://bugzilla.gnome.org/show_bug.cgi?id=661767
Dan Winship [Thu, 2 Aug 2012 19:48:22 +0000 (15:48 -0400)]
gio: port networking classes from GSimpleAsyncResult to GTask
https://bugzilla.gnome.org/show_bug.cgi?id=661767
Dan Winship [Thu, 2 Aug 2012 19:51:37 +0000 (15:51 -0400)]
gio: port GAsyncInitable from GSimpleAsyncResult to GTask
https://bugzilla.gnome.org/show_bug.cgi?id=661767
Dan Winship [Mon, 21 Nov 2011 14:19:56 +0000 (09:19 -0500)]
gio: deprecate gioscheduler, soft deprecate GSimpleAsyncResult
Reimplement gioscheduler in terms of GTask, and deprecate the original
gioscheduler methods. Update docs to point people to GTask rather than
gioscheduler and GSimpleAsyncResult, but don't actually formally
deprecate GSimpleAsyncResult yet.
https://bugzilla.gnome.org/show_bug.cgi?id=661767
Dan Winship [Tue, 11 Oct 2011 18:57:35 +0000 (14:57 -0400)]
gio: port GThreadedResolver from GSimpleAsyncResult to GTask
https://bugzilla.gnome.org/show_bug.cgi?id=661767
Dan Winship [Wed, 5 Oct 2011 14:05:50 +0000 (10:05 -0400)]
GTask: new GAsyncResult implementation / threaded task manager
GTask is a replacement for GSimpleAsyncResult and GIOScheduler, that
also allows for making cancellable wrappers around non-cancellable
functions (as in GThreadedResolver).
https://bugzilla.gnome.org/show_bug.cgi?id=661767
Dan Winship [Wed, 10 Oct 2012 14:02:39 +0000 (10:02 -0400)]
ghash.c: fix docs
A previous commit left an unclosed XML tag. Fix that.
Ryan Lortie [Mon, 8 Oct 2012 22:20:24 +0000 (18:20 -0400)]
[gsignal] Fix closure invalidation
If the closure is invalidated we drop the ref on the signal handler
node, but if the signal is currently being dispatched, the ref could be
held elsewhere.
Flag that we no longer have an outstanding invalidation handler so that
we don't try to unregister ourselves when the other ref drops.
Add a testcase that catches this situation.
Aleksander Morgado [Mon, 8 Oct 2012 08:03:43 +0000 (10:03 +0200)]
gdbus: minor documentation fix in g_dbus_interface_skeleton_has_connection()
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=685697
Ryan Lortie [Mon, 8 Oct 2012 15:40:00 +0000 (11:40 -0400)]
[gobject] set all properties before constructed()
Move the constructed() call to happen after all of the properties are
set (not just the construct properties).
This is an incompatible change but we are making it under the belief
that it should be safe. If this change impacts you in a negative way
please comment on the bug.
https://bugzilla.gnome.org/show_bug.cgi?id=685733
Ryan Lortie [Mon, 8 Oct 2012 15:20:07 +0000 (11:20 -0400)]
fix g_signal_connect_object() documentation
g_signal_connect_object() now works properly, so we can remove the note
in the docs about it being broken.
https://bugzilla.gnome.org/show_bug.cgi?id=118536
Ryan Lortie [Mon, 8 Oct 2012 15:18:00 +0000 (11:18 -0400)]
[gsignal] fix up a crasher in previous commit
The previous commit introduced a new variable in the Handler struct but
didn't initialise it. This was causing some tests to crash.
https://bugzilla.gnome.org/show_bug.cgi?id=118536
Matthias Clasen [Wed, 23 Jun 2004 05:49:24 +0000 (01:49 -0400)]
[gsignal] disconnect invalidated closures
Modify gsignal to automatically disconnect a GClosure that becomes
invalid (in the g_closure_invalidate() sense).
Previously, when g_signal_connect_object() was used with a GObject as
the user_data and that object was destroyed, the handler would no longer
be called but the signal handler was itself was not disconnected (ie:
the bookkeeping data was kept around).
The main effect of this patch is that these signal handlers will now
be automatically disconnected (and fully freed).
The documentation for g_signal_connect_object() has anticipated this
change for over 10 years and has advised the following workaround when
disconnecting signal handlers connected with g_signal_connect_object():
if (g_signal_handler_is_connected (instance, id))
g_signal_handler_disconnect (instance, id);
If your code follows this practice then it will continue to work.
If your code never disconnects the signal handler then it was wasting
memory before (and this commit fixes that).
If your code unconditionally disconnects the signal handler then you
will start to see (harmless) g_critical() warnings about this and you
should fix them.
https://bugzilla.gnome.org/show_bug.cgi?id=118536
Jasper St. Pierre [Sun, 7 Oct 2012 23:10:36 +0000 (20:10 -0300)]
ghash: Add documentation
Jasper St. Pierre [Wed, 26 Sep 2012 14:36:30 +0000 (11:36 -0300)]
glib.py: Remove old debugging code
This was accidentally copy/pasted from gobject.py
Dan Winship [Fri, 5 Oct 2012 13:32:24 +0000 (09:32 -0400)]
GFileMonitor: thread-safety fix for non-default-main-context monitors
When queuing events to another thread, we need a mutex around
priv->pending_file_changes and priv->pending_file_change_source.
https://bugzilla.gnome.org/show_bug.cgi?id=682950
Colin Walters [Fri, 28 Sep 2012 00:11:27 +0000 (20:11 -0400)]
codegen: Install Python files in $(datadir)/glib-2.0, rather than $(libdir)
These files are actually architecture-indepdendent; using $(libdir)
for them means that /usr/bin/gdbus-codegen varies between
architectures, which is problematic for (mis)uses of multilib.
See https://bugzilla.redhat.com/show_bug.cgi?id=718404
https://bugzilla.gnome.org/show_bug.cgi?id=685012
Colin Walters [Wed, 26 Sep 2012 19:44:33 +0000 (15:44 -0400)]
codegen: Explicitly close output
This is just cleaner rather than relying on the GC, and maybe
if we're lucky it will actually solve a problem.
https://bugzilla.gnome.org/show_bug.cgi?id=684909
Dan Winship [Wed, 5 Sep 2012 13:44:24 +0000 (09:44 -0400)]
Add GLIB_VERSION_2_36 and related
David Zeuthen [Wed, 3 Oct 2012 15:20:51 +0000 (11:20 -0400)]
gdbus-codegen: Update tests for new inheritance-semantics for Since
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
David Zeuthen [Wed, 3 Oct 2012 15:07:57 +0000 (11:07 -0400)]
gdbus-codegen: make members of an interface inherit the "Since" annotation
This is the expected (and sane) behavior - without this bug-fix you'd
have to add "Since" to every member of a newly added D-Bus interface.
Also show-case this in the codegen example.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
Christian Persch [Sat, 7 Jul 2012 22:24:58 +0000 (00:24 +0200)]
unicode: Add new tests for unicode 6.2
Christian Persch [Sat, 7 Jul 2012 21:56:18 +0000 (23:56 +0200)]
unicode: Update to unicode 6.2.0 beta
Christian Persch [Sat, 7 Jul 2012 21:53:23 +0000 (23:53 +0200)]
unicode: Add new line breaking class from unicode 6.2
Regional Indicator (RI) is new in unicode 6.2.
https://bugzilla.gnome.org/show_bug.cgi?id=684912
Christian Persch [Sat, 7 Jul 2012 22:21:59 +0000 (00:21 +0200)]
unicode: Use g_assert_cmp{int,uint,hex} in tests
This gives more info when the test goes wrong.
Christian Persch [Wed, 3 Oct 2012 11:58:04 +0000 (13:58 +0200)]
build: Post branch version bump
Matthias Clasen [Sun, 30 Sep 2012 23:24:13 +0000 (19:24 -0400)]
Really fix the leak
Pointed out by Josselin Mouette.
Matthias Clasen [Sun, 30 Sep 2012 18:07:37 +0000 (14:07 -0400)]
Fix memory leaks in glib-compile resources
Based on a patch by Josselin Mouette,
https://bugzilla.gnome.org/show_bug.cgi?id=685069
Matthias Clasen [Sun, 30 Sep 2012 17:37:39 +0000 (13:37 -0400)]
Correct to docs for g_strcmp0
Don't promise to return -1 or 1 - we fall back to strcmp which
does not guarantee this.
https://bugzilla.gnome.org/show_bug.cgi?id=685037
Žygimantas Beručka [Sun, 30 Sep 2012 10:01:14 +0000 (13:01 +0300)]
Updated Lithuanian translation
Benjamin Otte [Thu, 27 Sep 2012 13:31:46 +0000 (15:31 +0200)]
Fix gdb script for new quark variable names
... and don't spam stderr with exceptions if someone renames things
again.
Last but not least, keep the old names as a fallback, so that LD_PRELOAD
with an older libglib still works.
Chun-wei Fan [Wed, 26 Sep 2012 09:47:52 +0000 (17:47 +0800)]
Update config.h.win32(.in) and glibconfig.h.win32(.in)
-Make config.h.win32(.in) have entries that more resembles the generated
config.h.in
-Move the ALIGNOF_* #define's from glibconfig.h.win32(.in) to
config.h.win32(.in), where they were supposed to be.
Chun-wei Fan [Wed, 26 Sep 2012 07:42:53 +0000 (15:42 +0800)]
Visual C++ property sheet updates
Make up for the missed GIO headers that need to be installed.
Carles Ferrando [Tue, 25 Sep 2012 23:50:49 +0000 (01:50 +0200)]
[l10n] Updated Catalan (Valencian) translation
Luca Ferretti [Tue, 25 Sep 2012 06:34:44 +0000 (08:34 +0200)]
[l10n] Updated Italian translation.
Petr Kovar [Mon, 24 Sep 2012 16:23:18 +0000 (18:23 +0200)]
Update Czech translation
Matthias Clasen [Mon, 24 Sep 2012 02:39:20 +0000 (22:39 -0400)]
Bump version
Matthias Clasen [Mon, 24 Sep 2012 02:33:21 +0000 (22:33 -0400)]
2.34.0
Matthias Clasen [Mon, 24 Sep 2012 01:20:06 +0000 (21:20 -0400)]
More updates
Matthias Clasen [Mon, 24 Sep 2012 00:14:27 +0000 (20:14 -0400)]
Document g_test_dbus_get_flags
Matthias Clasen [Sun, 23 Sep 2012 23:55:40 +0000 (19:55 -0400)]
Typo fix
Matthias Clasen [Sun, 23 Sep 2012 15:23:29 +0000 (11:23 -0400)]
Update GConf migration guide
Newer intltool makes this much easier. Yay
https://bugzilla.gnome.org/show_bug.cgi?id=674620
Matthias Clasen [Sun, 23 Sep 2012 15:16:26 +0000 (11:16 -0400)]
Fix g_ptr_array_ref_docs
https://bugzilla.gnome.org/show_bug.cgi?id=676034
Matthias Clasen [Sun, 23 Sep 2012 15:13:57 +0000 (11:13 -0400)]
Clarify g_type_init docs
Mention that there's no way to undo it.
https://bugzilla.gnome.org/show_bug.cgi?id=654239
Matthias Clasen [Sun, 23 Sep 2012 14:44:57 +0000 (10:44 -0400)]
Update to latest version
We should really stop shipping this, but I don't want to make
such a change on the day before a stable release, so I'll just
update it to avoid noise in diffs.
Anita Reitere [Sun, 23 Sep 2012 14:44:20 +0000 (17:44 +0300)]
Updated Latvian translation
Mario Blättermann [Sun, 23 Sep 2012 12:43:07 +0000 (14:43 +0200)]
[l10n] Updated German translation
Matthias Clasen [Sun, 23 Sep 2012 06:18:56 +0000 (02:18 -0400)]
Fix gio docs
Matthias Clasen [Sun, 23 Sep 2012 05:59:37 +0000 (01:59 -0400)]
Fix GRegex docs
Matthias Clasen [Sun, 23 Sep 2012 05:58:44 +0000 (01:58 -0400)]
Fix up g_tree_foreach docs
Matthias Clasen [Sun, 23 Sep 2012 05:46:34 +0000 (01:46 -0400)]
Fix up docs for GDuplicateFunc
Matthias Clasen [Sun, 23 Sep 2012 05:18:53 +0000 (01:18 -0400)]
Updates
Shankar Prasad [Sat, 22 Sep 2012 20:57:03 +0000 (02:27 +0530)]
Updated kn translation
Rūdolfs Mazurs [Sat, 22 Sep 2012 17:02:44 +0000 (20:02 +0300)]
Updated Latvian translation
Carles Ferrando [Sat, 22 Sep 2012 14:44:50 +0000 (16:44 +0200)]
[l10n]Updated Catalan (Valencian) translation
Gil Forcada [Sat, 22 Sep 2012 14:44:39 +0000 (16:44 +0200)]
[l10n] Updated Catalan translation
Yaron Shahrabani [Sat, 22 Sep 2012 12:24:19 +0000 (15:24 +0300)]
Updated Hebrew translation.
Alexander Shopov [Sat, 22 Sep 2012 10:00:25 +0000 (13:00 +0300)]
Updated Bulgarian translation
Shankar Prasad [Fri, 21 Sep 2012 18:51:21 +0000 (00:21 +0530)]
Updated kn translation
Rafael Ferreira [Fri, 21 Sep 2012 18:41:12 +0000 (15:41 -0300)]
Updated Brazilian Portuguese Translation
Krishnababu Krothapalli [Thu, 20 Sep 2012 10:44:21 +0000 (16:14 +0530)]
Updated Telugu Translations
Chun-wei Fan [Tue, 18 Sep 2012 09:05:49 +0000 (17:05 +0800)]
gio: Fix build on Windows
The newly-introduced functions, g_content_type_get_symbolic_icon() and
g_content_type_get_generic_icon_name() don't seem to be for Windows, at
least for now. So filter them out from gio.symbols on Windows.
Also, glocalfileinfo.c calls g_content_type_get_symbolic_icon() in
get_icon(), so only build that code when on Unix, for the time being.
https://bugzilla.gnome.org/show_bug.cgi?id=684278
Fran Diéguez [Wed, 19 Sep 2012 00:27:16 +0000 (02:27 +0200)]
Updated Galician translations
Bruce Cowan [Tue, 18 Sep 2012 17:35:04 +0000 (18:35 +0100)]
Updated British English translation
Daniel Mustieles [Tue, 18 Sep 2012 14:35:15 +0000 (16:35 +0200)]
Updated Spanish translation
Ryan Lortie [Tue, 18 Sep 2012 14:14:35 +0000 (10:14 -0400)]
GApplication: document differences from libunique
People implementing GApplication often waste a lot of time by trying to
use it as if it were libunique. Add a note to the docs about the
difference.
Ryan Lortie [Tue, 18 Sep 2012 12:38:04 +0000 (08:38 -0400)]
bump version
Sandeep Sheshrao Shedmake [Tue, 18 Sep 2012 07:43:52 +0000 (13:13 +0530)]
Updated Marathi Translations
Rajesh Ranjan [Tue, 18 Sep 2012 07:41:18 +0000 (13:11 +0530)]
hindi update
Rafael Ferreira [Tue, 18 Sep 2012 02:35:57 +0000 (23:35 -0300)]
Updated Brazilian Portuguese translation
Gabor Kelemen [Mon, 17 Sep 2012 23:21:04 +0000 (01:21 +0200)]
Updated Hungarian translation
Ryan Lortie [Mon, 17 Sep 2012 21:53:58 +0000 (17:53 -0400)]
GLib 2.33.14
Yuri Myasoedov [Mon, 17 Sep 2012 16:29:36 +0000 (20:29 +0400)]
Updated Russian translation
Dieter Verfaillie [Thu, 13 Sep 2012 10:13:36 +0000 (12:13 +0200)]
gresource tests: fix VPATH builds emitting errors during dependency generation
Adding the --sourcedir option fixes these:
/path/to/src/gio/tests/test2.gresource.xml: Error on line 5 char 1: Failed to locate 'test1.txt' in current directory.
/path/to/src/gio/tests/test3.gresource.xml: Error on line 5 char 1: Failed to locate 'test1.txt' in current directory.
/path/to/src/gio/tests/test4.gresource.xml: Error on line 5 char 1: Failed to locate 'test1.txt' in current directory.
/path/to/src/gio/tests/test.gresource.xml: Error on line 5 char 1: Failed to locate 'test1.txt' in current directory.
Aurimas Černius [Sun, 16 Sep 2012 20:11:25 +0000 (23:11 +0300)]
Updated Lithuanian translation
Chao-Hsiung Liao [Sun, 16 Sep 2012 04:20:45 +0000 (12:20 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Ask H. Larsen [Sun, 16 Sep 2012 00:09:14 +0000 (02:09 +0200)]
Updated Danish translation
Matej Urbančič [Sat, 15 Sep 2012 18:49:54 +0000 (20:49 +0200)]
Updated Slovenian translation
Duarte Loreto [Sat, 15 Sep 2012 18:29:25 +0000 (19:29 +0100)]
Updated Portuguese translation
Seong-ho Cho [Sat, 15 Sep 2012 06:06:39 +0000 (15:06 +0900)]
Updated Korean translation
Andika Triwidada [Sat, 15 Sep 2012 04:51:46 +0000 (11:51 +0700)]
Updated Indonesian translation
Fran Diéguez [Fri, 14 Sep 2012 23:43:08 +0000 (01:43 +0200)]
Updated Galician translations
Matthias Clasen [Fri, 14 Sep 2012 23:40:24 +0000 (19:40 -0400)]
Fix the doc build
Tom Tryfonidis [Fri, 14 Sep 2012 16:50:21 +0000 (19:50 +0300)]
Updated Greek translation
Ihar Hrachyshka [Fri, 14 Sep 2012 10:26:34 +0000 (13:26 +0300)]
Updated Belarusian translation.
Alexandre Franke [Fri, 14 Sep 2012 07:44:48 +0000 (09:44 +0200)]
Update French translation