Commit Graph

6859 Commits

Author SHA1 Message Date
Matthias Clasen
2e4b51aeb3 Plug a memory leak in g_simple_async_result_set_op_res_gpointer
Fixes bug 579272.
2009-05-02 22:59:02 -04:00
Matthias Clasen
79ef3d3264 Correct g_utf8_to_utf16 docs
As pointed out in bug 580932, len is counting bytes here.
2009-05-02 22:44:52 -04:00
Matthias Clasen
2dfce32422 Accept NULL as empty string list
Fixes bug 580656.
2009-05-02 22:41:19 -04:00
Matthias Clasen
a4ac1b0552 Fix reference to g_strtoull
As pointed out in bug 580546, that function does not exit.
2009-05-02 22:36:15 -04:00
Matthias Clasen
fab0506f5f Update NEWS 2009-05-02 22:30:19 -04:00
Matthias Clasen
ff104337d9 Bump version to 2.21.0 2009-05-02 21:58:30 -04:00
Jorge Gonzalez
dc02797c1e Updated Spanish translation 2009-05-01 20:20:01 +02:00
Dan Winship
92ac8d165e Misc warning fixes
glib/pcre/pcre_ucp_search_funcs.c, glib/pcre/pcre_valid_utf8.c: add
back missing config.h includes, and this time add them to the copies
in glib/update-pcre/ too so they don't get lost again on the next PCRE
update.

glib/garray.c, glib/gbase64.c: fix signed/unsigned pointer casts

gio/xdgmime/xdgmimeglob.c: remove unused variable

gio/tests/live-g-file.c: fix printf args on x86_64

tests/Makefile.am, tests/regex-test.c: remove redundant -DENABLE_REGEX
2009-05-01 10:37:45 -04:00
Dan Winship
36cb01f447 Add README and INSTALL to .gitignore since they are autogenerated 2009-05-01 10:37:45 -04:00
Michael Meeks
83699774fa Patch originally committed only to the ChangeLog & tests ...
Bug 572508 – gmarkup speedup ...

        * glib/gmarkup.c: Various optimizations: do less allocations by
        keeping a pool of GStrings, do in-place unescaping, avoid redundant
        utf-8 validation.
2009-05-01 15:23:23 +01:00
Alexander Larsson
d8029ca9bc Ensure g_inet_address_get_type() call is not optimized away
Yet another place where the get_type call can be optimized away due
to the G_GNUC_CONST attribute. Use a volatile variable to ensure
its not.
2009-04-30 10:46:37 +02:00
David King
97fe421518 Fix ginetaddress.c compile on Linux
The GType type definition belongs outside the G_OS_WIN32 typedef.
2009-04-29 14:23:17 -04:00
David Zeuthen
402847c887 Bug 580450 – Reference counting and boxed types for arrays
Add reference counting and boxed types for GArray, GByteArray and GPtrArray.

Signed-off-by: Matthias Clasen <mclasen@redhat.com>
2009-04-29 11:17:23 -04:00
Alexander Larsson
d80e12104f Ensure we're actually initializing the winsock library
It turns out that just calling g_inet_address_get_type() isn't
enough, since its marked G_GNUC_CONST, so the call is optimized
away. If we assign the return value to a volatile location we ensure
it is called.
2009-04-29 12:19:57 +02:00
David Zeuthen
49dfb50afc Bug 580453 – Hash and equal functions for gint64 and gdouble 2009-04-27 13:27:44 -04:00
Jordi Mas i Hernandez
5a368d469a Minor fixes to Catalan translation 2009-04-26 20:18:38 +02:00
paul
61f130015b Fix socket-related configure tests on old platforms
include <sys/types.h> in case <sys/socket.h> doesn't. #580299
2009-04-26 13:22:10 -04:00
Dan Winship
7c9caecfeb Fix the networking stuff on (current) OS X
OS X's headers split up the current and old (BIND 4) nameserver stuff
slightly differently than Linux does, but explicitly including
arpa/nameser_compat.h does the right thing on both. Part of #580301
2009-04-26 13:21:53 -04:00
Dan Winship
9a15da50e4 Fix ginetaddress.c compile on Solaris
In glibc, IN6_IS_ADDR_UNSPECIFIED() et al. cast their argument to a
uint32_t*, so it doesn't matter whether you pass them the in6_addr
itself (which is what you're supposed to do) or one of its union
members (which is what we were actually doing). Solaris's macro
accesses the in6_addr fields directly though, and so only works if you
pass the actual in6_addr. #580194.
2009-04-26 13:18:17 -04:00
Johan Bilien
491a036d84 Fix translation from GIO's file attr to xattr attributes
Bug 579862 – requesting xattr::foo ends up calling getxattr(...,
user.:foo,...)

The patch makes sure we escape xattr::, not xattr:, before adding user.
and calling getxattr.
2009-04-22 19:09:34 +01:00
Christian Persch
a9c33dbd7a Use P_ for translatable param spec strings
Translatable param spec strings should be annotated with P_() instead of
plain _(). Bug #579830.
2009-04-22 16:11:38 +02:00
Dan Winship
9a3d18d2a6 GResolver wrappers: GNetworkAddress, GNetworkService, GSocketConnectable
Higher-level wrappers around GResolver. GSocketConnectable provides an
interface for synchronously or asynchronously iterating multiple
socket addresses, with GNetworkAddress and GNetworkService providing
interfaces based on hostname and SRV record resolution.
Part of #548466.
2009-04-22 08:36:38 -04:00
Dan Winship
c94d3f9288 Add GResolver, a glib-ish interface to DNS
GResolver provides asynchronous (and synchronous-but-cancellable) APIs
for resolving hostnames, reverse-resolving IP addresses back to
hostnames, and resolving SRV records. Part of #548466.
2009-04-22 08:36:32 -04:00
Dan Winship
68fc055627 Add network address and socket types
Types and methods for dealing with IPv4 and IPv6 addresses (and UNIX
domain socket addresses under UNIX). This does not include code for
actual socket I/O.

Originally from "gnio". Much of the code was written by Christian
Kellner, Samuel Cormier-Iijima, and Ryan Lortie.

Part of #548466.
2009-04-22 08:36:10 -04:00
Dan Winship
6a3b4fa05a Add hostname-related utilities in glib/ghostutils.h
Functions for converting between UTF-8 IDNs (Internationalized Domain
Names) and their ASCII-Compatible Encodings, plus a function to recognize
IP addresses. Part of #548466.
2009-04-22 08:36:02 -04:00
Stefan Kost
dda20bccbf goption: format section docs according to gtk-doc rules and fixes broken xml 2009-04-21 23:21:28 +03:00
Stefan Kost
57bd24dc49 goption: document that some option args need to be freed by the callee
Option arguments where the result is stored in a string or string array need to
be freed by the owner of the option group. Fixes #578363.
2009-04-21 17:50:00 +03:00
Stefan Kost
2026c232b3 goption: move docs from tmpl folder to inline comments 2009-04-21 16:35:26 +03:00
Alexander Larsson
0f48f804b6 Use g_cancellable_connect/disconnect
Use the new cancellable helper functions to avoid races. (#572844)
2009-04-20 13:17:10 +02:00
Alexander Larsson
0001014c37 Add helpers for connecting/disconnecting to cancelled signal
There are race conditions when connecting and disconnecting from the
"cancelled" signal on GCancellable which you need to do when
implementing cancellable operations. This adds helper functions that
avoid these races and mentions these races in the docs. (#572844)
2009-04-20 13:17:03 +02:00
zabeeh khan
c17d4dd117 Pashto Translation committed as per the request made by Zabeeh Khan on the gnome-i18n list 2009-04-17 11:27:38 +05:30
Matthias Clasen
b85834c223 Bump version 2009-04-11 18:10:24 -04:00
Matthias Clasen
2c1dc529e8 Add a note about handling non-hal backends 2009-04-09 21:34:49 -04:00
Matthias Clasen
6e11246cc8 Release GLib 2.20.1 2009-04-09 18:47:28 -04:00
Matthias Clasen
009689e09b Update for 2.20.1 2009-04-09 17:43:59 -04:00
Matthias Clasen
e68a35689f Fix G_DEFINE_TYPE_EXTENDED docs
Make the docs for G_DEFINE_TYPE_EXTENDED match the actual
definition of the macro.  (#577985)
2009-04-09 14:56:49 -04:00
Gian Mario Tagliaretti
856632c496 Fix a typo in GFile docs
Fixed function name in GFile docs from g_set_display_name to
g_file_set_display_name so that gtk-doc can link correctly.  (#578002)
2009-04-09 14:35:57 -04:00
Kenneth Nielsen
950de29d0e Updated Danish translation\n\nUpdated Danish translation by Kenneth Nielsen. 2009-04-09 13:49:00 +02:00
Peter Kjellerstedt
efc2cdbfc9 Fix parsing of timezones
Make g_time_val_from_iso8601 handle timezones with minutes correctly;
also accept comma as a fraction separator.  (#578369)
2009-04-08 10:26:11 -04:00
Alexander Larsson
d0cf7b3878 Only mark regular files as backup files
Apps don't generally create backup directories, etc. So, if the file
ends with ~ but is not a regular file shouldn't be considered a backup
file. (#573673)
2009-04-08 09:12:02 +02:00
Funda Wang
85a795b9ba Updated Simplified Chinese translation from Ray Wang
<wanglei1123@gmail.com>
2009-04-05 11:05:47 +08:00
Thanos Lefteris
7fd8708308 Updated Greek translation
Signed-off-by: Simos Xenitellis <simos@gnome.org>
2009-04-03 20:12:27 +01:00
Matthias Clasen
e6e82c51a6 Move hex_digits to rodata
Turn a string into a constant array.
2009-04-03 00:35:43 -04:00
Matthias Clasen
25ff8ee748 Don't lie about ext4 filesystems
When returning a filesystem type id, say "ext3/ext4" instead of "ext3",
since both use the same superblock magic, so we can't discriminate
them without more work.
2009-04-03 00:23:54 -04:00
Paolo Borelli
e8a42bb81c Regex leak on error path
Don't leak the GRegex struct when g_regex_new() fails.
2009-04-03 00:04:39 -04:00
Matthias Clasen
82a5f787d6 Update requirements
Mention that the mimetype-functionality of GIO reqires update-mime-database
and update-desktop-database at runtime. (#577128)
2009-04-02 23:57:59 -04:00
Matthias Clasen
20774c5663 Add a rule to generate ChangeLog
We use the same rule pango uses to create a ChangeLog file with
the help of git-log. The format is somewhat different from traditional
ChangeLog, but it contains the relevant information.
2009-04-02 23:42:29 -04:00
Matthias Clasen
b7f9a1ac83 Rename ChangeLog to ChangeLog.pre-2-20
Rename ChangeLog to prevent old habits from luring me into adding
entries there. Also, this makes room for autogenerating a ChangeLog
at make dist.
2009-04-02 23:14:54 -04:00
Matthias Clasen
b160405aa0 remove generated files
README and INSTALL are generated files, no need to keep them
under source control.
2009-04-02 23:13:35 -04:00
Alexander Larsson
1ce74b0dd3 On trash, if rename fails with EXDEV, return G_IO_ERROR_NOT_SUPPORTED
Sometimes it seems like the trash dir and the file are on the same
filesystem but the rename fails with EXDEV anyway (can happen
e.g. with bind mounts or multiple mounts of the same device). In this
case we want to return the right error so that apps can fallback to
regular delete.
2009-04-02 19:01:56 +02:00