Matthias Clasen [Mon, 12 Sep 2011 05:49:01 +0000 (01:49 -0400)]
Fix formatting in a doc comment
Matthias Clasen [Mon, 12 Sep 2011 05:46:48 +0000 (01:46 -0400)]
Expand mimeapps test
This adds a test involving both defaults.list and mimeapps.list.
Matthias Clasen [Mon, 12 Sep 2011 03:39:29 +0000 (23:39 -0400)]
Also check api results
In addition to looking at mimeapps.list, check that the default
and recommended apps returned by g_app_info api are as expected.
Matthias Clasen [Mon, 12 Sep 2011 03:28:06 +0000 (23:28 -0400)]
Revert "Fix default setting generation in g_desktop_app_info_set_as_last_used"
This reverts commit
a13f5ca4da05c3a7edaed9a70c508f63772897cb.
Matthias Clasen [Mon, 12 Sep 2011 03:25:20 +0000 (23:25 -0400)]
Adapt tests to string changes
Ryan Lortie [Sun, 11 Sep 2011 19:44:39 +0000 (15:44 -0400)]
GType tutorial: clarify class struct initialisation
Make the information on how the class structure is initialised less
confusing to first-time readers.
Matthias Clasen [Sun, 11 Sep 2011 17:08:14 +0000 (13:08 -0400)]
Cosmetics
Make configure --help output a little more regular, by using
AC_HELP_STRING() more consistently.
Jorge González [Sun, 11 Sep 2011 09:05:50 +0000 (11:05 +0200)]
Updated Spanish translation
Matthias Clasen [Sat, 10 Sep 2011 20:09:39 +0000 (16:09 -0400)]
GKeyFile: Unify error messsages a bit
This marks a few forgotten error messages for translation, and
makes some other strings more uniform. String change!
https://bugzilla.gnome.org/show_bug.cgi?id=658715
Matthias Clasen [Sat, 10 Sep 2011 14:36:00 +0000 (10:36 -0400)]
glib-compile-schemas: Pedantic string fixes
Replace 'can not' by 'cannot' in several places. String change!
https://bugzilla.gnome.org/show_bug.cgi?id=658207
Gabor Kelemen [Sat, 10 Sep 2011 12:39:43 +0000 (14:39 +0200)]
Updated Hungarian translation
Josselin Mouette [Sat, 10 Sep 2011 06:26:12 +0000 (08:26 +0200)]
Fix default setting generation in g_desktop_app_info_set_as_last_used
* Do not ignore the system default
* Do not exclude the last used being set from the default list
This fixes the default applications dialog in control-center.
https://bugzilla.gnome.org/show_bug.cgi?id=658188
Matthias Clasen [Sat, 10 Sep 2011 03:43:02 +0000 (23:43 -0400)]
Add some tests for mimeapps.list handling
These tests directly look at mimeapps.list to verify that
we make the expected changes to the database.
Matthias Clasen [Sat, 10 Sep 2011 03:42:47 +0000 (23:42 -0400)]
Avoid some compiler warnings
Ryan Lortie [Sat, 10 Sep 2011 02:33:33 +0000 (22:33 -0400)]
Nix inaccurately named g_main_context_init_pipe()
...and fold its contents into g_main_context_new()
Ryan Lortie [Sat, 10 Sep 2011 01:40:05 +0000 (21:40 -0400)]
gmain: get rid of poll_waiting
This variable, which is the cause of much grief, exists for two reasons:
- ensuring the the wakeup pipe doesn't fill up
- preventing the first poll() after adding a source from waking up
immediately
The first point is no longer an issue with GWakeup.
The second point is addressed by using different logic: we only signal a
wakeup in the case that the context is currently acquired by a thread
that is not us.
As an added bonus, we can now implement g_main_context_wakeup() without
taking a lock.
https://bugzilla.gnome.org/show_bug.cgi?id=583511
https://bugzilla.gnome.org/show_bug.cgi?id=320888
Emmanuele Bassi [Tue, 5 Oct 2010 13:01:05 +0000 (14:01 +0100)]
Add macros for GSourceFunc return values
The boolean values to be returned by a GSourceFunc are always ambiguous,
and even in case of experienced developers then can lead to confusion.
The Perl bindings for GLib have two simple constants, mapping to TRUE
and FALSE, that make the return values less confusing: G_SOURCE_CONTINUE
and G_SOURCE_REMOVE respectively.
https://bugzilla.gnome.org/show_bug.cgi?id=631413
Matthias Clasen [Sat, 10 Sep 2011 00:35:01 +0000 (20:35 -0400)]
Keep up with the standards
More choices, always better.
Ryan Lortie [Fri, 9 Sep 2011 23:54:06 +0000 (19:54 -0400)]
GRegex: fix thread-unsafe initialiser code
Ryan Lortie [Fri, 9 Sep 2011 23:48:14 +0000 (19:48 -0400)]
Clean up l10n threading stuff
Remove the explicit thread initialisation functions for g_get_charset(),
g_get_filename_charsets() and g_get_language_names().
Add a lock around one remaining case of access to libcharset (the other
2 cases already have the lock).
Do a proper g_once_init_enter() style initialisation for the GLib
gettext functions.
https://bugzilla.gnome.org/show_bug.cgi?id=658683
Ryan Lortie [Fri, 9 Sep 2011 20:05:55 +0000 (16:05 -0400)]
glib-private: #include <glib.h>
This is really our only choice if we don't want to annoy the
single-include checking when we use this from inside of gio.
Ryan Lortie [Fri, 9 Sep 2011 19:47:01 +0000 (15:47 -0400)]
Drop long-removed atomic thread init from header
Ryan Lortie [Fri, 9 Sep 2011 19:21:07 +0000 (15:21 -0400)]
Remove now-useless glibprivate.h
The only symbol in glibprivate.h was moved to glib-private.h.
Ryan Lortie [Fri, 9 Sep 2011 18:30:25 +0000 (14:30 -0400)]
glib worker: move to glib-private framework
Remove the private glib_get_worker_context() symbol and move it over to
using the glib-private stuff like GWakeup is doing.
https://bugzilla.gnome.org/show_bug.cgi?id=657992
Ryan Lortie [Fri, 9 Sep 2011 18:30:01 +0000 (14:30 -0400)]
gwakeup.h: add missing header for GPollFD
Colin Walters [Thu, 1 Sep 2011 18:32:11 +0000 (14:32 -0400)]
Add glib__private__() API to share between glib,gio; port GWakeup to it
Historically we've added random symbols to the public API with warnings
that they're private; examples are:
glib_gettext(), glib_pgettext()
g_thread_functions_for_glib_use, g_thread_use_default_impl, etc.
And we almost added "GWakeup" to public API just to share between glib and
gio.
This new glib__private__() API exports a hidden vtable, and adds a macro
GLIB_PRIVATE_CALL() that makes it generally convenient to use.
This adds an extremely tiny cost for the double indirection; but it has
the benefit that we don't need to either:
1) compile the code into both glib and gio (like GWakeup), with the
inefficiency that implies.
2) Export a "do not use this" symbol; the serious problem with this is
that someone CAN use it pretty easily. Particularly if we document
it. It's far, far harder to peek into a structure without a public
header file.
https://bugzilla.gnome.org/show_bug.cgi?id=657992
Ryan Lortie [Tue, 30 Aug 2011 17:32:58 +0000 (13:32 -0400)]
GMainLoop: remove wall clock time cache
Since GMainLoop is now purely monotonic, it really doesn't make sense to
cache the wallclock time just for the sake of making a deprecated call
more efficient.
Ryan Lortie [Thu, 1 Sep 2011 03:02:03 +0000 (23:02 -0400)]
gtester: Remove SIGCHLD race workarounds
With the GMainLoop changes, gtester should now be race-free.
Ryan Lortie [Thu, 1 Sep 2011 02:58:26 +0000 (22:58 -0400)]
Modify child and signal sources to use worker
Ryan Lortie [Thu, 1 Sep 2011 02:07:02 +0000 (22:07 -0400)]
GMain: simplify logic for g_wakeup_acknowledge()
Instead of messing around with context->poll_waiting, just look at the
GPollFD to see if the GWakeup needs to be acknowledged.
Ryan Lortie [Wed, 31 Aug 2011 22:33:32 +0000 (18:33 -0400)]
GMainLoop: remove single-threaded case
Since we now always have thread support in libglib, we can remove the
buggy single-threaded codepath for GMainContext.
Ryan Lortie [Wed, 31 Aug 2011 22:20:24 +0000 (18:20 -0400)]
Add private glib_get_worker_context() API
The first time this is called, this creates a GMainContext * and a
thread to run it. Future calls return the same. There are a lot of
places that we could use this in GLib.
Ryan Lortie [Fri, 9 Sep 2011 17:39:22 +0000 (13:39 -0400)]
GRand: Make sure to g_thread_init_glib()
The last commit should g_thread_init_glib() before attempting to use
GOnce.
Ryan Lortie [Fri, 9 Sep 2011 17:31:21 +0000 (13:31 -0400)]
GRand: remove setup from g_thread_init_glib
Use g_once_init_enter instead.
Ryan Lortie [Fri, 9 Sep 2011 17:20:40 +0000 (13:20 -0400)]
emufutex: remove init from g_thread_init_glib
Use a GStaticMutex instead.
Ryan Lortie [Fri, 9 Sep 2011 17:15:17 +0000 (13:15 -0400)]
win32: remove version init from g_thread_init_glib
Instead, make this use g_once_init_enter() in the usual way.
Ryan Lortie [Wed, 31 Aug 2011 22:07:55 +0000 (18:07 -0400)]
make g_thread_init_glib() idempotent
Ryan Lortie [Wed, 31 Aug 2011 22:00:03 +0000 (18:00 -0400)]
Move the GThread implementations to glib/
We can now get threads initialised from inside of libglib by calling
g_thread_init_glib().
Ryan Lortie [Wed, 31 Aug 2011 21:40:01 +0000 (17:40 -0400)]
invert gthread-impl includes
configure.ac defined G_THREAD_SOURCE and gthread-impl would #include it.
Instead, since we only have two thread implementations now, and since we
always use the Windows one only on Windows, move the logic to the
Makefile, predicated on 'if OS_WIN32'. Then have the chosen backend do
the #include "gthread-impl.c" from there.
Remove the G_THREAD_SOURCE define from configure.ac.
Ryan Lortie [Wed, 31 Aug 2011 21:18:43 +0000 (17:18 -0400)]
win32 threads: assume TryEnterCriticalSection
Remove the dynamic lookup for TryEnterCriticalSection, which has existed
since Windows 2000.
Ryan Lortie [Wed, 31 Aug 2011 21:02:21 +0000 (17:02 -0400)]
Stop using HAVE_G_THREAD_IMPL_INIT
Just always call the init function.
Ryan Lortie [Wed, 31 Aug 2011 20:30:04 +0000 (16:30 -0400)]
Move thread priority translation into the backends
The translation of GLib priorities into the thread priorities of
different operating systems belongs in the implementation -- not
half-way in the front end.
Ryan Lortie [Wed, 31 Aug 2011 20:46:32 +0000 (16:46 -0400)]
Remove useless macros from when we supported DCE
These are non-ops now, and easily replaced.
Ryan Lortie [Wed, 31 Aug 2011 20:41:24 +0000 (16:41 -0400)]
Remove support for DCE threads
Ryan Lortie [Wed, 31 Aug 2011 20:10:55 +0000 (16:10 -0400)]
Remove support for custom thread implementations
Ryan Lortie [Wed, 31 Aug 2011 20:03:22 +0000 (16:03 -0400)]
Remove the dead 'none' thread implementation
Ryan Lortie [Wed, 31 Aug 2011 20:01:09 +0000 (16:01 -0400)]
GThread: remove errorcheck mutex support
This can only possibly work if we call g_thread_init(), which we are
moving away from.
Ryan Lortie [Wed, 31 Aug 2011 19:53:36 +0000 (15:53 -0400)]
gthread: remove some unused forward declarations
Ryan Lortie [Wed, 31 Aug 2011 19:49:35 +0000 (15:49 -0400)]
Deprecated (undocumented) g_thread_gettime
g_thread_gettime() is an undocumented public function pointer that
points to a function that returns the monotonic time in nanoseconds.
g_get_monotonic_time() does the same in microseconds, so it can be used
instead.
GLib had one internal user in GFileMonitor that only cared about
millisecond accuracy; it has been ported to g_get_monotonic_time().
Ryan Lortie [Wed, 31 Aug 2011 20:43:15 +0000 (16:43 -0400)]
Update building docs to mention mandatory threads
The docs used to say thread support was optional -- it's mandatory now.
Dan Winship [Wed, 31 Aug 2011 18:33:33 +0000 (14:33 -0400)]
Remove !g_thread_supported() codepaths in gio
In particular, remove the libasyncns import, which was only used by
GUnixResolver, which is only used when threads are not available.
Likewise remove GWin32Resolver, and the hacky broken non-threaded
parts of GIOScheduler.
https://bugzilla.gnome.org/show_bug.cgi?id=616754
Ryan Lortie [Wed, 31 Aug 2011 18:30:11 +0000 (14:30 -0400)]
Revert "GIOSchedulerJob: Improve struct packing"
This reverts commit
a2094d5e564433ed3a4398afeacce80519bbda44.
https://bugzilla.gnome.org/show_bug.cgi?id=616754
Dan Winship [Wed, 31 Aug 2011 18:01:45 +0000 (14:01 -0400)]
Make threads mandatory
G_THREADS_ENABLED still exists, but is always defined. It is still
possible to use libglib without threads, but gobject (and everything
above it) is now guaranteed to be using threads (as, in fact, it was
before, since it was accidentally impossible to compile with
--disable-threads).
https://bugzilla.gnome.org/show_bug.cgi?id=616754
David Schleef [Sun, 21 Aug 2011 21:54:39 +0000 (14:54 -0700)]
Fix spelling of G_IO_FLAG_IS_WRITEABLE
Fixes #657045.
Kushal Das [Fri, 2 Sep 2011 06:45:21 +0000 (12:15 +0530)]
g_key_file_parse_value_as_integer: Integers can have trailing whitespaces or tabs
Now it can parse integer values with trailing whitespaces or tabs before CR.
Using g_ascii_isspace() as suggested.
https://bugzilla.gnome.org/show_bug.cgi?id=653987
Piotr Drąg [Thu, 8 Sep 2011 19:07:54 +0000 (21:07 +0200)]
Updated Polish translation
Piotr Drąg [Thu, 8 Sep 2011 18:44:03 +0000 (20:44 +0200)]
Updated Polish translation
Damien Lespiau [Thu, 8 Sep 2011 13:25:41 +0000 (14:25 +0100)]
simpleaction: Fix documentation of :enabled
An over-zealous sed, most likely, transformed g_action_.*() into
g_simple_action.*().
https://bugzilla.gnome.org/show_bug.cgi?id=658558
Alexandre Franke [Wed, 7 Sep 2011 09:43:36 +0000 (11:43 +0200)]
Update French translation
Federico Mena Quintero [Thu, 8 Sep 2011 14:11:56 +0000 (09:11 -0500)]
bgo#640212 - Replace "error stating file" with friendlier messages
Non-technical users won't know that "stating" refers to stat(2), so we
just use "error when getting information" now.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Bruce Cowan [Wed, 7 Sep 2011 15:58:57 +0000 (16:58 +0100)]
Updated British English translation
Luca Ferretti [Tue, 6 Sep 2011 22:33:39 +0000 (00:33 +0200)]
Updated Italian translation
Ihar Hrachyshka [Tue, 6 Sep 2011 22:29:04 +0000 (01:29 +0300)]
Updated Belarusian translation.
Kjartan Maraas [Tue, 6 Sep 2011 19:49:06 +0000 (21:49 +0200)]
Added Norwegian bokmål translation
Ryan Lortie [Tue, 6 Sep 2011 18:01:52 +0000 (14:01 -0400)]
GSettingsBackend: emit changes to correct thread
When g_settings_apply() is called on a delayed settings backend and
there is a D-Bus error when communicating with dconf-service, recent
versions of the dconf GSettingsBackend call a function in GLib that
improperly delivered the signal directly instead of using
g_main_context_invoke().
This patch fixes this function to route in the same way as the others so
that the signal is dispatched in the proper GMainContext.
Ryan Lortie [Tue, 6 Sep 2011 14:55:09 +0000 (10:55 -0400)]
'master' is now glib 2.31.0
Ryan Lortie [Mon, 5 Sep 2011 14:28:54 +0000 (10:28 -0400)]
glib 2.29.90
Andika Triwidada [Tue, 6 Sep 2011 09:50:11 +0000 (16:50 +0700)]
Updated Indonesian translation
Ryan Lortie [Tue, 6 Sep 2011 04:12:12 +0000 (00:12 -0400)]
gio docs: lots more fixes
Ryan Lortie [Tue, 6 Sep 2011 04:01:29 +0000 (00:01 -0400)]
gio docs: only include GTlsInteraction once
It was included twice in the gio-docs.xml file.
Ryan Lortie [Tue, 6 Sep 2011 03:56:33 +0000 (23:56 -0400)]
gio docs: drop GTimeZoneMonitor from docs
Ryan Lortie [Tue, 6 Sep 2011 03:54:42 +0000 (23:54 -0400)]
Remove enums from gio.types
Only objects and interfaces should go in here. If enums are in here
then gtk-doc responds by outputting two anchors for the same name (which
results in many warnings being printed).
Ryan Lortie [Mon, 5 Sep 2011 23:41:16 +0000 (19:41 -0400)]
GDBus object manager example: update -sections.txt
Ryan Lortie [Mon, 5 Sep 2011 23:35:16 +0000 (19:35 -0400)]
gio docs: ignore private .h files
Ryan Lortie [Mon, 5 Sep 2011 23:10:04 +0000 (19:10 -0400)]
gio docs: don't scan subdirectories
This clears up >50% of the huge warning spew from building GIO docs.
Ryan Lortie [Mon, 5 Sep 2011 23:00:11 +0000 (19:00 -0400)]
docs fixups for glib/
Ryan Lortie [Mon, 5 Sep 2011 22:46:59 +0000 (18:46 -0400)]
GObject docs: resolve broken links
Some links were broken due to typos, because functionality was removed
in GLib 2.0 or for various other reasons. Fix up as many of them as is
reasonable.
Ryan Lortie [Mon, 5 Sep 2011 22:05:05 +0000 (18:05 -0400)]
gobject docs: add symbols from GMainLoop boxing
Ryan Lortie [Mon, 5 Sep 2011 21:54:52 +0000 (17:54 -0400)]
Back out some changes to docs Makefiles
Commit
ab0e9dbfa76e056f875e969c0d7b6e133ec75431 introduced some changes
to the documentation Makefiles designed to clean-up the process of
deciding which headers get scanned for the docs.
Unfortunately, the gtk-doc Makefile doesn't use HFILE_GLOB for actually
generating the docs -- only for knowing when it needs to redo the
generation. Because of this, we need to use IGNORE_HFILES or otherwise
we get hundreds of symbols in the *-unused.txt files.
Revert the changes that that commit made to the docs Makefiles (but
leave the generation of the *-public-headers.txt files in place).
Duarte Loreto [Mon, 5 Sep 2011 21:30:09 +0000 (22:30 +0100)]
Updated Portuguese translation
Ryan Lortie [Mon, 5 Sep 2011 15:39:04 +0000 (11:39 -0400)]
one missed docs fix
Ryan Lortie [Mon, 5 Sep 2011 15:36:48 +0000 (11:36 -0400)]
include 'hmac' in the docs
It wasn't added to glib-docs.sgml, so it wasn't being included in the html.
Ryan Lortie [Mon, 5 Sep 2011 15:30:58 +0000 (11:30 -0400)]
gtk-doc fixups for glib/
Ryan Lortie [Mon, 5 Sep 2011 14:29:09 +0000 (10:29 -0400)]
doc: Remove reference to non-existent #GChildWatch
The g_spawn_ documentation was talking about #GChildWatch, which doesn't
exist. Refer to g_child_watch_add() instead.
Alexandre Franke [Mon, 5 Sep 2011 11:22:37 +0000 (13:22 +0200)]
Fix missing semi-colon after struct definition
Fran Dieguez [Mon, 5 Sep 2011 09:55:50 +0000 (11:55 +0200)]
Updated galician translations
Jorge González [Mon, 5 Sep 2011 06:24:30 +0000 (08:24 +0200)]
Updated Spanish translation
Ryan Lortie [Mon, 5 Sep 2011 04:38:14 +0000 (00:38 -0400)]
pa.po: prefer pa_IN date/time formats
It's clear that the other GDateTime formats in this file correspond with
those in pa_IN, not pa_PK, so prefer those for the newly-added strings
as well.
Ryan Lortie [Mon, 5 Sep 2011 04:03:39 +0000 (00:03 -0400)]
Populate missing GDateTime format strings
Use the glibc locale database to add GDateTime strings only for those locales
that had not specifically added them for themselves.
Some locales have different translations from what is in the C library and we
leave those alone with this commit.
Ryan Lortie [Mon, 5 Sep 2011 04:01:02 +0000 (00:01 -0400)]
po/: update all .po files with 'make update-po'
This should get the proper Report-Msgid-Bugs-To: into each file.
Ryan Lortie [Sun, 4 Sep 2011 22:01:55 +0000 (18:01 -0400)]
g_date_time_format: honour T_FMT_AMPM for '%r'
We had the 12 hour time format hard-coded to "%02d:%02d:%02d %s" but it
actually changes depending on the locale. Just with the other formats,
use nl_langinfo() if we have it, otherwise fall back on gettext().
Ryan Lortie [Mon, 5 Sep 2011 00:35:31 +0000 (20:35 -0400)]
GDateTime: translate "AM"/"PM", not "am"/"pm"
"AM" and "PM" are the POSIX locale values.
Modify the 14 translations that have been updated since then to save a
headache to those translators.
Ryan Lortie [Mon, 5 Sep 2011 01:00:54 +0000 (21:00 -0400)]
Update en_CA.po (Canadian English translation)
Ryan Lortie [Mon, 5 Sep 2011 01:31:13 +0000 (21:31 -0400)]
po/Makefile.in.in: intltool compatibility fixes
Our infrastructure for updating the glib20.pot file was incompatible
with intltool in a couple of ways:
- we didn't set the Report-Msgid-Bugs-To to
- we used paths relative to the $(top_srcdir), rather than po/
This resulted in spamming of pointless changes to the .po files whenever
'make update-po' was run (since all of the translators are using
intltool-based tools).
Matthias Clasen [Mon, 5 Sep 2011 00:06:53 +0000 (20:06 -0400)]
Only use gcc-specific options when the compiler is gcc
The -Wstrict-aliasing option that we use to compile atomic
tests does not exist with compilers other than gcc, so
don't pass it to those.
https://bugzilla.gnome.org/show_bug.cgi?id=652272
https://bugzilla.gnome.org/show_bug.cgi?id=656152
Dan Winship [Sun, 4 Sep 2011 21:33:21 +0000 (17:33 -0400)]
update .gitignore
Dan Winship [Sun, 4 Sep 2011 21:17:11 +0000 (17:17 -0400)]
fix a few warnings on non-Linux
mostly #ifdeffing functions that are only called by #ifdeffed code
Patrick Welche [Thu, 1 Sep 2011 09:10:38 +0000 (10:10 +0100)]
Avoid getmntinfo
- getmntinfo can take struct statfs or statvfs depending on the
OS. Use getvfsstat and if not found getfsstat instead. Idea from
Dan Winship.
- g_local_file_query_filesystem_info(): use statvfs.f_fstypename
if available
https://bugzilla.gnome.org/show_bug.cgi?id=617949
Fran Dieguez [Sun, 4 Sep 2011 16:37:11 +0000 (18:37 +0200)]
Updated galician translations
Ihar Hrachyshka [Sun, 4 Sep 2011 15:52:29 +0000 (18:52 +0300)]
Updated Belarusian translation.