platform/upstream/glib.git
14 years agoUpdated Dutch translation by Wouter Bolsterlee
Wouter Bolsterlee [Sun, 19 Sep 2010 15:08:25 +0000 (17:08 +0200)]
Updated Dutch translation by Wouter Bolsterlee

14 years ago[l10n] Updated Estonian translation
Mattias Põldaru [Sun, 19 Sep 2010 08:52:30 +0000 (11:52 +0300)]
[l10n] Updated Estonian translation

14 years agoGDateTime: G_GNUC_WARN_UNUSED_RESULT for modifiers
Ryan Lortie [Sat, 18 Sep 2010 20:31:00 +0000 (16:31 -0400)]
GDateTime: G_GNUC_WARN_UNUSED_RESULT for modifiers

Emmanuele suggested adding G_GNUC_WARN_UNUSED_RESULT to all of the
g_date_time_add_* functions to help deal with the situation where people
may mistakenly believe that these functions are inplace modifiers.

14 years agoFix header cleaup fallout when using system pcre
Ryan Lortie [Sat, 18 Sep 2010 16:52:58 +0000 (12:52 -0400)]
Fix header cleaup fallout when using system pcre

Using the internal pcre has the side effect of exposing gregex.c to
glib.h.  When we use the system one, we lose that, so we need to
explicitly include the things we use (glist, gatomic, etc..)

14 years agoUpdated Portuguese translation
Duarte Loreto [Sat, 18 Sep 2010 11:30:00 +0000 (12:30 +0100)]
Updated Portuguese translation

14 years agobump version to 2.27.1
Ryan Lortie [Sat, 18 Sep 2010 00:48:25 +0000 (20:48 -0400)]
bump version to 2.27.1

14 years agorelease 2.27.0 2.27.0
Ryan Lortie [Fri, 17 Sep 2010 21:57:19 +0000 (17:57 -0400)]
release 2.27.0

14 years agoGDateTime: fix a test that fails from time to time
Ryan Lortie [Fri, 17 Sep 2010 22:18:13 +0000 (01:18 +0300)]
GDateTime: fix a test that fails from time to time

The test fails if it's a different date in the time zone of the machine
running the test than it currently is in UTC.

14 years agoBump to version 2.27.0 after branching glib-2-26
Ryan Lortie [Fri, 17 Sep 2010 17:27:38 +0000 (13:27 -0400)]
Bump to version 2.27.0 after branching glib-2-26

14 years ago.gitignore some test cases
Ryan Lortie [Fri, 17 Sep 2010 17:26:50 +0000 (13:26 -0400)]
.gitignore some test cases

14 years ago.gitignore some sgml
Ryan Lortie [Fri, 17 Sep 2010 17:20:17 +0000 (13:20 -0400)]
.gitignore some sgml

14 years agoDeal with gtk-doc's insane sensitivty to spaces
Ryan Lortie [Fri, 17 Sep 2010 17:14:59 +0000 (13:14 -0400)]
Deal with gtk-doc's insane sensitivty to spaces

...by inserting a few of them.

14 years agoClean-up/tweaking of GDateTime and GTimeZone
Ryan Lortie [Thu, 16 Sep 2010 08:44:59 +0000 (04:44 -0400)]
Clean-up/tweaking of GDateTime and GTimeZone

14 years agodatetime: Fix hashing
Emmanuele Bassi [Wed, 15 Sep 2010 13:47:15 +0000 (14:47 +0100)]
datetime: Fix hashing

Convert to the epoch, just like we do when checking for equality, so
that timezones are correctly handled.

https://bugzilla.gnome.org/show_bug.cgi?id=50076

14 years agodatetime: Rename g_date_time_printf() to g_date_time_format()
Emmanuele Bassi [Wed, 15 Sep 2010 13:39:26 +0000 (14:39 +0100)]
datetime: Rename g_date_time_printf() to g_date_time_format()

The function does not use any printf() modifiers, so using printf() is a
misnomer.

Prior art: strftime, g_ascii_formatd

https://bugzilla.gnome.org/show_bug.cgi?id=50076

14 years agodatetime: Update modifiers for DST changes
Emmanuele Bassi [Wed, 15 Sep 2010 12:55:36 +0000 (13:55 +0100)]
datetime: Update modifiers for DST changes

If a DateTime gets modified to cross the DST state from its previous
state then we want to update the DateTime to compensate for the new
offset.

In other words, if we have a DateTime defined as:

  DateTime({ y: 2009, m: 8, d: 15, hh: 3, mm: 0, tz: 'Europe/London' });

and we add six months to it, the hour must be changed to 60 minutes
behind, as the DST comes into effect.

https://bugzilla.gnome.org/show_bug.cgi?id=50076

14 years agodatetime: Allow setting fractionary seconds in new_full()
Emmanuele Bassi [Wed, 15 Sep 2010 09:05:41 +0000 (10:05 +0100)]
datetime: Allow setting fractionary seconds in new_full()

Otherwise we'll have to do:

  dt = g_date_time_new_full (Y, M, D, h, m, s, tz);
  tmp = g_date_time_add_usec (dt, usec);
  g_date_time_unref (dt);
  dt = tmp;

With its additional allocations.

https://bugzilla.gnome.org/show_bug.cgi?id=50076

14 years agodatetime: Rework time zone support in constructors
Emmanuele Bassi [Tue, 14 Sep 2010 07:00:40 +0000 (08:00 +0100)]
datetime: Rework time zone support in constructors

Timezone handling is complicated. Really complicated.

In order to simplify it a little bit, we need to expose the GTimeZone
structure.

First of all, we allow creating time zone information directly from the
offset and the DST state, and then pass it to the g_date_time_new_full()
constructor. We also need to clean up the mess that is UTC-vs.-localtime
for the other constructors.

We also allow creating a GTimeZone from the Olson zoneinfo database
names; a time zone created like this will be "floating": it will just
reference the zoneinfo file - which are mmap()'ed, kept in a cache and
refcounted. Once the GTimeZone has been associated with a GDateTime, it
will be "anchored" to it: the offset will be resolved, as well as the
DST state.

https://bugzilla.gnome.org/show_bug.cgi?id=50076

14 years agog_output_stream_write: fix misleadingly ungrammatical documentation
Dan Winship [Fri, 17 Sep 2010 14:21:57 +0000 (10:21 -0400)]
g_output_stream_write: fix misleadingly ungrammatical documentation

pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=626866

14 years agoUpdated Lithuanian translation
Žygimantas Beručka [Fri, 17 Sep 2010 00:48:23 +0000 (03:48 +0300)]
Updated Lithuanian translation

14 years agoUpdated Lithuanian translation by Aurimas Cernius.
Gintautas Miliauskas [Thu, 16 Sep 2010 19:13:54 +0000 (22:13 +0300)]
Updated Lithuanian translation by Aurimas Cernius.

14 years agoUpdate Czech translation
Petr Kovar [Wed, 15 Sep 2010 23:56:26 +0000 (01:56 +0200)]
Update Czech translation

14 years agoUpdate Czech translation
Petr Kovar [Wed, 15 Sep 2010 19:43:18 +0000 (21:43 +0200)]
Update Czech translation

14 years agoBug 629709 - Empty variants
Ryan Lortie [Wed, 15 Sep 2010 15:20:51 +0000 (11:20 -0400)]
Bug 629709 - Empty variants

Fix some GVariant bugs uncovered by calling g_variant_new_from_data with
invalid data (which it should be immune to).

14 years agoUpdated Spanish translation
Jorge González [Wed, 15 Sep 2010 07:10:32 +0000 (09:10 +0200)]
Updated Spanish translation

14 years agoUpdated Indonesian translation
Andika Triwidada [Wed, 15 Sep 2010 00:44:48 +0000 (07:44 +0700)]
Updated Indonesian translation

14 years agoGDBusConnection leaks its GCredentials
Christian Persch [Tue, 14 Sep 2010 17:38:14 +0000 (19:38 +0200)]
GDBusConnection leaks its GCredentials

==7269== 144 bytes in 6 blocks are definitely lost in loss record 1,282 of 1,325
==7269==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==7269==    by 0x4056B74: g_malloc (gmem.c:164)
==7269==    by 0x406EDB6: g_slice_alloc (gslice.c:842)
==7269==    by 0x406EDFB: g_slice_alloc0 (gslice.c:854)
==7269==    by 0x413C627: g_type_create_instance (gtype.c:1867)
==7269==    by 0x412276A: g_object_constructor (gobject.c:1480)
==7269==    by 0x4121E5D: g_object_newv (gobject.c:1264)
==7269==    by 0x4121BD3: g_object_new (gobject.c:1176)
==7269==    by 0x417CFB9: g_credentials_new (gcredentials.c:156)
==7269==    by 0x41D9DBC: g_unix_credentials_message_deserialize (gunixcredentialsmessage.c:149)
==7269==    by 0x41C422C: g_socket_control_message_deserialize (gsocketcontrolmessage.c:198)
==7269==    by 0x41BFCE3: g_socket_receive_message (gsocket.c:3289)
==7269==    by 0x41D99CE: g_unix_connection_receive_credentials (gunixconnection.c:476)
==7269==    by 0x41FA829: _g_dbus_auth_run_server (gdbusauth.c:987)
==7269==    by 0x4205DDB: initable_init (gdbusconnection.c:2196)

Bug #629689.

14 years agoGVariant: Check for size == 0 in get_bytestring
Ryan Lortie [Tue, 14 Sep 2010 18:55:38 +0000 (14:55 -0400)]
GVariant: Check for size == 0 in get_bytestring

And add a test from David that shows the problem.

Closes #629698

14 years agoUpdated Polish translation
Piotr Drąg [Tue, 14 Sep 2010 17:10:35 +0000 (19:10 +0200)]
Updated Polish translation

14 years agoGSettings: reverse accidental addition to .h file
Ryan Lortie [Tue, 14 Sep 2010 15:25:57 +0000 (11:25 -0400)]
GSettings: reverse accidental addition to .h file

A couple of extra function prototypes snuck into commit
77e3badcf3f15c7ac235904160d775febfcebcb5.  Take those out.

14 years agoUpdated Hungarian translation
Gabor Kelemen [Tue, 14 Sep 2010 12:10:17 +0000 (14:10 +0200)]
Updated Hungarian translation

14 years ago[l10n] Updated German translation
Christian.Kirbach [Tue, 14 Sep 2010 09:18:20 +0000 (11:18 +0200)]
[l10n] Updated German translation

14 years agoUpdate Simplified Chinese translation.
Aron Xu [Tue, 14 Sep 2010 08:35:31 +0000 (16:35 +0800)]
Update Simplified Chinese translation.

14 years ago(slightly) updated Finnish translation.
Timo Jyrinki [Tue, 14 Sep 2010 06:37:45 +0000 (09:37 +0300)]
(slightly) updated Finnish translation.

14 years agoUpdate British English translation
Philip Withnall [Mon, 13 Sep 2010 22:22:02 +0000 (23:22 +0100)]
Update British English translation

14 years agoUpdated Galician translations
Fran Diéguez [Mon, 13 Sep 2010 21:46:03 +0000 (23:46 +0200)]
Updated Galician translations

14 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 13 Sep 2010 19:54:45 +0000 (21:54 +0200)]
Updated Slovenian translation

14 years agog_strdup_value_contents(): dump GStrv more usefully
Will Thompson [Thu, 9 Sep 2010 16:24:00 +0000 (17:24 +0100)]
g_strdup_value_contents(): dump GStrv more usefully

Previously, dumping a GValue holding a GStrv just yielded "((GStrv *)
0xDEADBEEF)". I think it'd be more useful to dump a Python list-style
representation of the GStrv's contents, if it's not NULL.

Fixes: <https://bugzilla.gnome.org/show_bug.cgi?id=629192>

14 years agoupdate for Punjabi
A S Alam [Mon, 13 Sep 2010 17:39:33 +0000 (23:09 +0530)]
update for Punjabi

14 years agoAdd g_data_input_stream_read_upto{,async,finish}
Ryan Lortie [Tue, 23 Mar 2010 06:12:01 +0000 (01:12 -0500)]
Add g_data_input_stream_read_upto{,async,finish}

These functions are meant to replace the read_until() flavour, with the
following improvements:

  - consistency between the synchronous and asynchronous versions as to
    if the separator character is read (it never is).

  - support for using a nul byte as a separator character by way of
    addition of a length parameter which allows stop_chars to be treated
    as a byte array rather than a nul-terminated string.

The read_until() functions are not yet formally deprecated, but a note
has been added to the documentation warning not to use them as they will
be in the future.

This is bug #584284.

14 years agoBetter msgctxt for month and weekday names
Matthias Clasen [Mon, 13 Sep 2010 16:02:13 +0000 (12:02 -0400)]
Better msgctxt for month and weekday names

The current msgctxt string 'GDateTime" lead to the unability to
differentiate between the full and abbreviated name for May.
Therefore, the msgctxt strings have been changed to
  'full month name'
  'abbreviated month name'
  'full weekday name'
  'abbreviated weekday name'
This is a string change, but all translations have been updated
using an sed script.

Bug 629429

14 years agoAdapt POTFILES.in to source file renaming
Matthias Clasen [Mon, 13 Sep 2010 15:58:56 +0000 (11:58 -0400)]
Adapt POTFILES.in to source file renaming

14 years agoConst 'parser' arg to g_markup_parse_context_push
Ryan Lortie [Mon, 13 Sep 2010 16:07:51 +0000 (12:07 -0400)]
Const 'parser' arg to g_markup_parse_context_push

This is a vtable structure and very likely the user has allocated it in
static storage and wants it to be const.  Since we never modify it, no
harm is done to us to have it const.

Closes bug #629328.

14 years agoMake g_variant_builder_end's return to be (allow none) because callers
Tomeu Vizoso [Mon, 13 Sep 2010 15:53:54 +0000 (17:53 +0200)]
Make g_variant_builder_end's return to be (allow none) because callers
need to add a ref to it in addition to sinking it.

14 years agoInclude giochannel.c for G_IO_IN, etc.
Kristian Rietveld [Mon, 13 Sep 2010 14:52:51 +0000 (16:52 +0200)]
Include giochannel.c for G_IO_IN, etc.

Fixes build on OS X.

14 years agogobject: Add install_properties()
Emmanuele Bassi [Wed, 18 Aug 2010 14:32:27 +0000 (15:32 +0100)]
gobject: Add install_properties()

Since we added g_object_notify_by_pspec(), an efficient way to install
and notify properties relies on storing the GParamSpec pointers inside
a static arrays, like we do for signal identifiers.

Instead of multiple calls to g_object_class_install_property(), we
should have a single function to take the static array of GParamSpecs
and iterate it.

https://bugzilla.gnome.org/show_bug.cgi?id=626919

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
14 years agoUpdated Swedish translation
Daniel Nylander [Sun, 12 Sep 2010 18:25:57 +0000 (20:25 +0200)]
Updated Swedish translation

14 years agoGSettings: no writability->value change assumption
Ryan Lortie [Sun, 12 Sep 2010 17:35:30 +0000 (13:35 -0400)]
GSettings: no writability->value change assumption

GSettings internally assumed that a change in key writability implied a
change in value.  That may be true for some backends.  Let those
backends deal with the situation for themselves.

14 years agoAdd some more individual own header includes where required
Tor Lillqvist [Sun, 12 Sep 2010 10:58:13 +0000 (13:58 +0300)]
Add some more individual own header includes where required

14 years ago[i18n] Updated German translation
Mario Blättermann [Sun, 12 Sep 2010 09:02:47 +0000 (11:02 +0200)]
[i18n] Updated German translation

14 years agoUpdatede Japanese translation.
Takayuki KUSANO [Sat, 11 Sep 2010 18:02:24 +0000 (03:02 +0900)]
Updatede Japanese translation.

14 years agoAdd annotation for g_variant_get_string
Tomeu Vizoso [Sat, 11 Sep 2010 15:01:10 +0000 (17:01 +0200)]
Add annotation for g_variant_get_string

14 years agoUpdated Indonesian translation
Andika Triwidada [Sat, 11 Sep 2010 09:29:06 +0000 (16:29 +0700)]
Updated Indonesian translation

14 years agodos2unix glib/win_iconv.c
Tor Lillqvist [Sat, 11 Sep 2010 09:08:32 +0000 (12:08 +0300)]
dos2unix glib/win_iconv.c

14 years agodocs: Clarify string encoding for GFile constructors
Benjamin Otte [Fri, 10 Sep 2010 22:12:13 +0000 (00:12 +0200)]
docs: Clarify string encoding for GFile constructors

The encoding was deduced from looking at the source code, feel free to
fix if it's wrong (the docs _and_ the source code).

14 years agoAdd work-around for Bug 627724
David Zeuthen [Fri, 10 Sep 2010 20:21:37 +0000 (16:21 -0400)]
Add work-around for Bug 627724

The root problem is with GObject - for now, just work around it in
GDBus. Also include a test-case. See

 https://bugzilla.gnome.org/show_bug.cgi?id=627724

for more information.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoRemove g_dbus_message_filter_result_get_type() from gio.symbols
David Zeuthen [Fri, 10 Sep 2010 17:27:48 +0000 (13:27 -0400)]
Remove g_dbus_message_filter_result_get_type() from gio.symbols

Pointed out by danw on IRC.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agog_socket_client_connect_async: fix when g_socket_connect succeeds immediately
Dan Winship [Fri, 10 Sep 2010 13:12:17 +0000 (09:12 -0400)]
g_socket_client_connect_async: fix when g_socket_connect succeeds immediately

https://bugzilla.gnome.org/show_bug.cgi?id=629251

14 years agoFix IPv6 parsing in _g_uri_parse_authority, add _g_uri_from_authority
Dan Winship [Fri, 10 Sep 2010 12:51:21 +0000 (08:51 -0400)]
Fix IPv6 parsing in _g_uri_parse_authority, add _g_uri_from_authority

Fixes connections to IPv6 address literals.

https://bugzilla.gnome.org/show_bug.cgi?id=629259

14 years agoAdd 3 new restrictions to the schema compiler
Ryan Lortie [Thu, 9 Sep 2010 20:28:18 +0000 (16:28 -0400)]
Add 3 new restrictions to the schema compiler

 - can not extend schemas that already have paths
 - can not form list of schemas that already have paths
 - the path of a list schema, if given, must end with ':/'

14 years agoRename gschema-compile.c -> glib-compile-schemas.c
Ryan Lortie [Thu, 9 Sep 2010 20:12:45 +0000 (16:12 -0400)]
Rename gschema-compile.c -> glib-compile-schemas.c

14 years agosplit GSettings.list_items => list_{children,keys}
Ryan Lortie [Mon, 6 Sep 2010 16:47:37 +0000 (12:47 -0400)]
split GSettings.list_items => list_{children,keys}

This is an incompatible public API/ABI change.

14 years agoCreate GSettingsListenerVTable
Ryan Lortie [Thu, 9 Sep 2010 19:45:53 +0000 (15:45 -0400)]
Create GSettingsListenerVTable

...instead of passing a whole whack of function pointers around

This is an internal API.

14 years agoGDBusMessage: Don't reset serial number when copying
David Zeuthen [Thu, 9 Sep 2010 19:15:13 +0000 (15:15 -0400)]
GDBusMessage: Don't reset serial number when copying

Ryan pointed out that it's safe to do this because we have the
G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL flag and that it simplifies
how filter functions work.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGUnixConnection: Remove comment about Linux
David Zeuthen [Thu, 9 Sep 2010 18:14:45 +0000 (14:14 -0400)]
GUnixConnection: Remove comment about Linux

Since the previous commit, the g_unix_connection_send_credentials() /
g_unix_connection_receive_credentials() functions now also works on
FreeBSD since GUnixCredentialsMessage now works there.

The main idea is that the g_unix_connection_send_credentials() /
g_unix_connection_receive_credentials() functions are the "main" API
for getting credentials (one way or the other). So it's better to
avoid advertising where it is currently implemented.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoBug 628904 – Add credential support for FreeBSD and fix a socket issue
Joe Marcus Clarke [Thu, 9 Sep 2010 18:10:01 +0000 (14:10 -0400)]
Bug 628904 – Add credential support for FreeBSD and fix a socket issue

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGDBusServer: Make ::new-connection return whether the connection was claimed
David Zeuthen [Thu, 9 Sep 2010 18:00:46 +0000 (14:00 -0400)]
GDBusServer: Make ::new-connection return whether the connection was claimed

Otherwise things probably won't work in a garbage-collected world
(consider the trivial GC that never collects garbage).

This commit breaks GDBusServer ABI. No known released software is
using this code.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoBug 624546 – Modification of GDBusMessage in filter function
David Zeuthen [Thu, 9 Sep 2010 17:21:35 +0000 (13:21 -0400)]
Bug 624546 – Modification of GDBusMessage in filter function

Rework filter functions as per

 https://bugzilla.gnome.org/show_bug.cgi?id=624546#c8

This commit breaks ABI. However, this ABI break affects only
applications using filter functions. The only known user of is dconf.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoFix tmpl files
David Zeuthen [Thu, 9 Sep 2010 16:00:00 +0000 (12:00 -0400)]
Fix tmpl files

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGDBusMessage: Make it possible to lock and copy messages
David Zeuthen [Thu, 9 Sep 2010 15:37:14 +0000 (11:37 -0400)]
GDBusMessage: Make it possible to lock and copy messages

Don't actually use this yet as that will require a couple of
modifications to the filter function signature. This is part of the
bug-fix for

 https://bugzilla.gnome.org/show_bug.cgi?id=624546#c8

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoRevert hack that broke things badly on Windows
Emmanuele Bassi [Wed, 8 Sep 2010 08:58:42 +0000 (11:58 +0300)]
Revert hack that broke things badly on Windows

This should fix bug #628952.

Don't include glib/gdatasetprivate.h directly. Especially don't define
GLIB_COMPILATION when doing that, as that causes breakage on Windows
because of the variable dllimport/dllexport stuff in gtypes.h that
checks GLIB_COMPILATION. That macro really should be defined only when
compiling code that goes into the libglib DLL. Otherwise the compiler
thinks that variables that should be imported from libglib are
actually defined in the code being compiled.

Just call g_atomic_pointer_get() as such, don't bother with
G_DATALIST_GET_FLAGS.

Signed-off-by: Tor Lillqvist <tml@iki.fi>
14 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Tue, 7 Sep 2010 16:03:19 +0000 (18:03 +0200)]
Updated Basque language

14 years agoUpdated Polish translation
Piotr Drąg [Tue, 7 Sep 2010 15:43:37 +0000 (17:43 +0200)]
Updated Polish translation

14 years agoUpdated Polish translation
Piotr Drąg [Tue, 7 Sep 2010 15:42:19 +0000 (17:42 +0200)]
Updated Polish translation

14 years agoUpdated Portuguese translation
Duarte Loreto [Mon, 6 Sep 2010 23:33:02 +0000 (00:33 +0100)]
Updated Portuguese translation

14 years agoUpdated Portuguese translation
Duarte Loreto [Mon, 6 Sep 2010 23:29:36 +0000 (00:29 +0100)]
Updated Portuguese translation

14 years agoUpdated Swedish translation
Daniel Nylander [Mon, 6 Sep 2010 21:10:09 +0000 (23:10 +0200)]
Updated Swedish translation

14 years agoUpdated Hungarian translation
Gabor Kelemen [Mon, 6 Sep 2010 13:07:02 +0000 (15:07 +0200)]
Updated Hungarian translation

14 years agoFix build on Windows and possibly other non-Linux platforms
Tor Lillqvist [Mon, 6 Sep 2010 12:56:16 +0000 (15:56 +0300)]
Fix build on Windows and possibly other non-Linux platforms

Include glibconfig.h in files that test G_OS_WIN32. Include headers
for GLib APIs used conditionally where needed.

14 years agoWhitespace fixes
Emmanuele Bassi [Mon, 6 Sep 2010 11:26:40 +0000 (12:26 +0100)]
Whitespace fixes

14 years agodatetime: Rename shadowing variables
Damien Lespiau [Sun, 5 Sep 2010 20:47:44 +0000 (21:47 +0100)]
datetime: Rename shadowing variables

timezone and tzname shadow variables declared in time.h. Let's rename
them to time_zone and tz_name then.

https://bugzilla.gnome.org/show_bug.cgi?id=628839

14 years agogdatetime: Use proleptic gregorian
Thiago Santos [Fri, 3 Sep 2010 13:43:11 +0000 (14:43 +0100)]
gdatetime: Use proleptic gregorian

Use Proleptic Gregorian calendar instead of the Julian calendar
as the internal representation.

https://bugzilla.gnome.org/show_bug.cgi?id=50076

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
14 years agodatetime: use g_utf8_next_char() to walk utf8 string
Christian Hergert [Tue, 31 Aug 2010 16:27:58 +0000 (09:27 -0700)]
datetime: use g_utf8_next_char() to walk utf8 string

Previously, the format string was iterated many times by
walking to the given offset in the string repeatedly.
This patch instead walks the string using g_utf8_next_char().

Additionally, the character for lookups was a char and could
loose content.  This uses gunichar instead.

https://bugzilla.gnome.org/show_bug.cgi?id=50076

14 years agodatetime: avoid using __year
Christian Hergert [Tue, 31 Aug 2010 16:10:16 +0000 (09:10 -0700)]
datetime: avoid using __year

These were left over from when the inline functions where implemented
as macros.  They are no longer needed and where clashing with the
global __year anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=50076

14 years agodatetime: Add get_week_of_year()
Emmanuele Bassi [Thu, 26 Aug 2010 14:23:13 +0000 (15:23 +0100)]
datetime: Add get_week_of_year()

https://bugzilla.gnome.org/show_bug.cgi?id=628029

Based on a patch by: Joseph Pingenot

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
14 years agodatetime: Rename internal method
Emmanuele Bassi [Thu, 26 Aug 2010 12:11:46 +0000 (13:11 +0100)]
datetime: Rename internal method

Use add_ymd(), to reflect the order of the arguments.

14 years agobuild: Fix warnings caused by missing includes
Emmanuele Bassi [Mon, 6 Sep 2010 10:43:04 +0000 (11:43 +0100)]
build: Fix warnings caused by missing includes

14 years agoUpdated Arabic translation
Khaled Hosny [Sun, 5 Sep 2010 14:23:00 +0000 (16:23 +0200)]
Updated Arabic translation

14 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Sun, 5 Sep 2010 11:24:01 +0000 (19:24 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

14 years agoMore header inclusion cleanup
Matthias Clasen [Sun, 5 Sep 2010 04:23:03 +0000 (00:23 -0400)]
More header inclusion cleanup

14 years agobuild: Quench the compiler's thirst for warnings
Emmanuele Bassi [Sat, 4 Sep 2010 17:24:50 +0000 (18:24 +0100)]
build: Quench the compiler's thirst for warnings

14 years agogmain: Define _GNU_SOURCE before including glibconfig.h
Emmanuele Bassi [Sat, 4 Sep 2010 17:15:15 +0000 (18:15 +0100)]
gmain: Define _GNU_SOURCE before including glibconfig.h

As it pulls in unistd.h from something else.

14 years agoBuild fixes for the fall-out of the inclusion changes
Emmanuele Bassi [Sat, 4 Sep 2010 17:04:34 +0000 (18:04 +0100)]
Build fixes for the fall-out of the inclusion changes

14 years agogtimer: Fix a compilation warning
Emmanuele Bassi [Sat, 4 Sep 2010 17:03:33 +0000 (18:03 +0100)]
gtimer: Fix a compilation warning

14 years agoHack to include glib/gdatasetprivate.h directly
Emmanuele Bassi [Sat, 4 Sep 2010 16:22:39 +0000 (17:22 +0100)]
Hack to include glib/gdatasetprivate.h directly

The gdatasetprivate.h header includes gatomic.h directly. It all works
well in GLib, but inside GObject it will trigger the single inclusion
guard.

Since this is a private header, and it's kind of a special case, one way
to fix it is to declare GLIB_COMPILATION around it and fool the single
inclusion guard in gatomic.h into thinking we're compiling GLib and not
GObject.

14 years agoAdd missing gstrfuncs.h include
Emmanuele Bassi [Sat, 4 Sep 2010 16:22:18 +0000 (17:22 +0100)]
Add missing gstrfuncs.h include

For g_strdup() and friends.

14 years agoMore include cleanups
Matthias Clasen [Sat, 4 Sep 2010 03:03:14 +0000 (23:03 -0400)]
More include cleanups

14 years agoDon't include glib.h in other headers
Matthias Clasen [Sat, 4 Sep 2010 01:24:40 +0000 (21:24 -0400)]
Don't include glib.h in other headers

14 years agoRemove excessive header includes
Matthias Clasen [Sat, 4 Sep 2010 01:20:07 +0000 (21:20 -0400)]
Remove excessive header includes

14 years agoRemove excessive header includes
Matthias Clasen [Sat, 4 Sep 2010 01:15:45 +0000 (21:15 -0400)]
Remove excessive header includes