platform/upstream/glib.git
16 years agoClarify semantics of g_volume_mount_finish() (#552168)
David Zeuthen [Mon, 29 Sep 2008 17:42:01 +0000 (17:42 +0000)]
Clarify semantics of g_volume_mount_finish() (#552168)

2008-09-29  David Zeuthen  <davidz@redhat.com>

        * gvolume.c: Clarify semantics of g_volume_mount_finish() (#552168)

svn path=/trunk/; revision=7559

16 years agoFix lots of typos, document g_assert_error() and g_assert_no_error()
Dan Winship [Sat, 27 Sep 2008 01:44:07 +0000 (01:44 +0000)]
Fix lots of typos, document g_assert_error() and g_assert_no_error()

* glib/tmpl/testing.sgml: Fix lots of typos, document
g_assert_error() and g_assert_no_error()

svn path=/trunk/; revision=7557

16 years agoUse g_assert_error() and g_assert_no_error()
Dan Winship [Sat, 27 Sep 2008 01:43:43 +0000 (01:43 +0000)]
Use g_assert_error() and g_assert_no_error()

* tests/data-input-stream.c:
* tests/data-output-stream.c:
* tests/live-g-file.c:
* tests/memory-input-stream.c:
* tests/memory-output-stream.c: Use g_assert_error() and
g_assert_no_error()

svn path=/trunk/; revision=7556

16 years ago Bug 553447 \e$(Q#|\e(B g_assert_no_error()
Dan Winship [Sat, 27 Sep 2008 01:43:29 +0000 (01:43 +0000)]
Bug 553447 \e$(Q#|\e(B g_assert_no_error()

* glib/gtestutils.h (g_assert_no_error, g_assert_error): Macros to
assert that a GError is not set, or else is set to a particular
error.

* glib/gtestutils.c (g_assertion_message_error): utility for
those macros

* glib/tests/keyfile.c:
* tests/asyncqueue-test.c:
* tests/bookmarkfile-test.c:
* tests/convert-test.c:
* tests/file-test.c: Use g_assert_error/g_assert_no_error

svn path=/trunk/; revision=7555

16 years agoBug 545350 – GAppInfo deletion Bug 545351 – Reset associations for
Matthias Clasen [Fri, 26 Sep 2008 19:57:36 +0000 (19:57 +0000)]
Bug 545350 – GAppInfo deletion Bug 545351 – Reset associations for

2008-09-26  Matthias Clasen  <mclasen@redhat.com>

        Bug 545350 – GAppInfo deletion
        Bug 545351 – Reset associations for content type

        * gio.symbols:
        * gappinfo.[hc]: New functions g_app_info_can_delete,
        g_app_info_delete and g_app_info_reset_type_associations.

        * gdesktopappinfo.c:
        * gwin32appinfo.c: Implementations of these.

        * tests/Makefile.am:
        * tests/desktop-app-info.c: Tests for GAppInfo functionality.

svn path=/trunk/; revision=7554

16 years ago Bug 505361 - gunixinputstream.c assumes poll() available
Dan Winship [Fri, 26 Sep 2008 16:19:35 +0000 (16:19 +0000)]
Bug 505361 - gunixinputstream.c assumes poll() available
Bug 509446 - portable blocking gio cancellation

* gcancellable.c (g_cancellable_make_pollfd): New method to make a
GPollFD for a cancellable (which is slightly more complicated on
Windows than Unix).

* gunixinputstream.c (g_unix_input_stream_read):
* gunixoutputstream.c (g_unix_output_stream_write): Use
g_cancellable_make_pollfd() and g_poll() rather than using poll()
directly.

* tests/unix-streams.c: test of GUnixInputStream,
GUnixOutputStream, and GCancellable.

svn path=/trunk/; revision=7553

16 years agomake this a "const gpointer" rather than a gconstpointer to avoid warnings
Dan Winship [Fri, 26 Sep 2008 16:00:45 +0000 (16:00 +0000)]
make this a "const gpointer" rather than a gconstpointer to avoid warnings

* glib/gthreadpool.c (wakeup_thread_marker): make this a "const
gpointer" rather than a gconstpointer to avoid warnings later

* glib/pcre/pcre_ucp_searchfuncs.c:
* glib/pcre/pcre_valid_utf8.c: #include "config.h"

* glib/tests/printf.c (test_d): fool gcc into not warning about
some printf format strings that we know are dubious

svn path=/trunk/; revision=7552

16 years agoadd uint* -> int* casts in g_atomic_int calls to avoid gcc warnings
Dan Winship [Fri, 26 Sep 2008 16:00:33 +0000 (16:00 +0000)]
add uint* -> int* casts in g_atomic_int calls to avoid gcc warnings

* gobject.c (g_object_ref, g_object_unref)
(g_object_freeze_notify, g_object_notify, g_object_thaw_notify):
* gparam.c (g_param_spec_ref, g_param_spec_unref):
* gsignal.c (handler_ref, handler_unref_R): add uint* -> int*
casts in g_atomic_int calls to avoid gcc warnings

svn path=/trunk/; revision=7551

16 years agoadd a cast to stop a gcc warning
Dan Winship [Fri, 26 Sep 2008 16:00:17 +0000 (16:00 +0000)]
add a cast to stop a gcc warning

* gdesktopappinfo.c (get_all_desktop_entries_for_mime_type): add a
cast to stop a gcc warning

* gfile.c (g_file_copy_attributes): add parens to stop a gcc
warning

svn path=/trunk/; revision=7550

16 years agoBug 553857 – gbacktrace.h requires signal.h
Matthias Clasen [Fri, 26 Sep 2008 14:33:48 +0000 (14:33 +0000)]
Bug 553857 – gbacktrace.h requires signal.h

2008-09-26  Matthias Clasen  <mclasen@redhat.com>

        Bug 553857 – gbacktrace.h requires signal.h

        * glib/gbacktrace.h: Include signal.h for raise().
        Pointed out by Sebastien Bacher

svn path=/trunk/; revision=7548

16 years agoBug 553724 – python interpretter path not patched in correctly
Matthias Clasen [Fri, 26 Sep 2008 14:28:25 +0000 (14:28 +0000)]
Bug 553724 – python interpretter path not patched in correctly

2008-09-26  Matthias Clasen  <mclasen@redhat.com>

        Bug 553724 – python interpretter path not patched in correctly

        * glib/Makefile.am: Fix the sed magic to replace python.

svn path=/trunk/; revision=7546

16 years agoAdd more docs
Matthias Clasen [Fri, 26 Sep 2008 14:05:03 +0000 (14:05 +0000)]
Add more docs

svn path=/trunk/; revision=7545

16 years agoMove docs
Matthias Clasen [Fri, 26 Sep 2008 13:55:51 +0000 (13:55 +0000)]
Move docs

svn path=/trunk/; revision=7544

16 years agoImprove error reporting: When g_module_open() fails, include the name of
Tor Lillqvist [Fri, 26 Sep 2008 09:16:25 +0000 (09:16 +0000)]
Improve error reporting: When g_module_open() fails, include the name of

2008-09-26  Tor Lillqvist  <tml@novell.com>

* gmodule-win32.c: Improve error reporting: When g_module_open()
fails, include the name of the module passed to LoadLibrary() in
what g_module_error() returns.

svn path=/trunk/; revision=7543

16 years agoBug 553820 - gpoll.c: undeclared identifier
Tor Lillqvist [Thu, 25 Sep 2008 19:59:49 +0000 (19:59 +0000)]
Bug 553820 - gpoll.c: undeclared identifier

2008-09-25  Tor Lillqvist  <tml@novell.com>

Bug 553820 - gpoll.c: undeclared identifier

* glib/gmain.c
* glib/gpoll.c: Make the g_poll() function non-static also on
Windows. Prefix an underscore to the g_main_poll_debug variable
and make it non-static in gmain.c so that it can be used in
gpoll.c. Add back missing variable declaration.

svn path=/trunk/; revision=7542

16 years ago Bug 553426 - cancellable clarifications
Dan Winship [Thu, 25 Sep 2008 12:04:52 +0000 (12:04 +0000)]
Bug 553426 - cancellable clarifications

* gcancellable.c (g_cancellable_class_init): Add a note to the
"cancelled" signal docs warning about thread-safety issues
(g_cancellable_cancel): Note that cancelling an asynchronous
operation takes effect asynchronously, not immediately.

svn path=/trunk/; revision=7541

16 years agoJust ignore the child_setup function, never call it. The is no situation
Tor Lillqvist [Thu, 25 Sep 2008 08:05:41 +0000 (08:05 +0000)]
Just ignore the child_setup function, never call it. The is no situation

2008-09-25  Tor Lillqvist  <tml@novell.com>

* glib/gspawn-win32.c (do_spawn_with_pipes) (do_spawn_directly):
Just ignore the child_setup function, never call it. The is no
situation in which it could be useful on Windows. Do print a
warning, like before.

* glib/gspawn.c (g_spawn_async_with_pipes): Corresponding change
in documentation.

svn path=/trunk/; revision=7540

16 years agoBe a little more explcit in the docs. Includes Owen's requested changes.
Sven Herzberg [Wed, 24 Sep 2008 13:44:27 +0000 (13:44 +0000)]
Be a little more explcit in the docs. Includes Owen's requested changes.

2008-09-24  Sven Herzberg  <sven@imendio.com>

Be a little more explcit in the docs. Includes Owen's requested
changes.

* glib/gmain.c: improved documentation for g_source_attach() and
g_source_destroy()

svn path=/trunk/; revision=7539

16 years agoMove ChangeLog entry to right ChangeLog.
Michael Natterer [Tue, 23 Sep 2008 18:57:16 +0000 (18:57 +0000)]
Move ChangeLog entry to right ChangeLog.

svn path=/trunk/; revision=7538

16 years ago#include <glib/gpoll.h>
Michael Natterer [Tue, 23 Sep 2008 18:56:31 +0000 (18:56 +0000)]
#include <glib/gpoll.h>

2008-09-23  Michael Natterer  <mitch@imendio.com>

* glib/glib.h: #include <glib/gpoll.h>

* glib/gpoll.h: #error out if gpoll.h is included directly.

* glib/gpoll.c: remove trailing whitespace.

svn path=/trunk/; revision=7537

16 years agoMove this out of gmain.c and make it part of the public API. (Part of Bug
Dan Winship [Tue, 23 Sep 2008 16:41:37 +0000 (16:41 +0000)]
Move this out of gmain.c and make it part of the public API. (Part of Bug

* glib/gpoll.c (g_poll): Move this out of gmain.c and make it part
of the public API. (Part of Bug 505361 - gunixinputstream.c assumes
poll() available.)

svn path=/trunk/; revision=7536

16 years agoMove this out of gmain.c and make it part of the public API. (Part of Bug
Dan Winship [Tue, 23 Sep 2008 16:32:30 +0000 (16:32 +0000)]
Move this out of gmain.c and make it part of the public API. (Part of Bug

* glib/gpoll.c (g_poll): Move this out of gmain.c and make it part
of the public API. (Part of Bug 505361 - gunixinputstream.c
assumes poll() available.)

svn path=/trunk/; revision=7535

16 years agoFix embarrassing bug: I was passing an incorrect third parameter to
Tor Lillqvist [Tue, 23 Sep 2008 15:35:12 +0000 (15:35 +0000)]
Fix embarrassing bug: I was passing an incorrect third parameter to

2008-09-23  Tor Lillqvist  <tml@novell.com>

* glib/gmain.c (poll_rest) [Win32]: Fix embarrassing bug: I was
passing an incorrect third parameter to memmove(), had forgotten
to multiply by the size of the table entry. Just use a for loop
instead, clearer. Odd I didn't notice when testing this code.

svn path=/trunk/; revision=7533

16 years agoUpdated Danish translation
Kenneth Nielsen [Mon, 22 Sep 2008 21:21:15 +0000 (21:21 +0000)]
Updated Danish translation

svn path=/trunk/; revision=7532

16 years agoUpdated Danish translation
Kenneth Nielsen [Mon, 22 Sep 2008 01:09:14 +0000 (01:09 +0000)]
Updated Danish translation

svn path=/trunk/; revision=7528

16 years agoAdd new GFileCopyFlag
Nelson Benítez León [Sun, 21 Sep 2008 23:53:40 +0000 (23:53 +0000)]
Add new GFileCopyFlag

svn path=/trunk/; revision=7526

16 years agoUpdated Russian translation.
Nickolay V. Shmyrev [Sun, 21 Sep 2008 19:22:36 +0000 (19:22 +0000)]
Updated Russian translation.

2008-09-21  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

* ru.po: Updated Russian translation.

svn path=/trunk/; revision=7524

16 years agoUpdated Polish translation
Wadim Dziedzic [Sun, 21 Sep 2008 18:05:00 +0000 (18:05 +0000)]
Updated Polish translation

2008-09-21  Wadim Dziedzic  <wdziedzic@aviary.pl>

* pl.po: Updated Polish translation

svn path=/trunk/; revision=7522

16 years agoPlug a memory leak
Matthias Clasen [Sun, 21 Sep 2008 00:00:18 +0000 (00:00 +0000)]
Plug a memory leak

svn path=/trunk/; revision=7520

16 years agoRewrite most of GHashTable to use open addressing with quadratic probing
Hans Petter Jansson [Sat, 20 Sep 2008 04:05:11 +0000 (04:05 +0000)]
Rewrite most of GHashTable to use open addressing with quadratic probing

2008-09-19  Hans Petter Jansson  <hpj@novell.com>

Rewrite most of GHashTable to use open addressing with quadratic
probing instead of chaining. This has the potential to reduce memory
fragmentation significantly, while being slightly faster due to
better locality and no need to call alloc/free functions for nodes.
Benchmarks suggest it also uses less memory overall.

* glib/ghash.c (prime_mod): Table of suitable primes for
initial-probe distribution.
(g_hash_table_set_shift): New function.
(g_hash_table_find_closest_shift): New function.
(g_hash_table_set_shift_from_size): New function.
(g_hash_table_lookup_node_for_insertion): New function.
(g_hash_table_lookup_node): Rewritten to return node index instead of
pointer, use quadratic probe on flat table, and not return insertion
data. The latter saves some computation for read-only lookups.
(g_hash_table_remove_node): Rewrite to take a pointer directly to the
node structure to remove, and clear that. Remove unlinking code.
(g_hash_table_remove_all_nodes): Rewrite to not clear nodes
individually, but en masse using memset () after potentially calling
notify functions.
(iter_remove_or_steal): Use new data structure and algorithm. Vastly
simplified - now just a call to g_hash_table_remove_node ().
(g_hash_table_resize): New resize code, re-indexing with new prime
and cleaning up tombstones.
(g_hash_table_maybe_resize): Table may hold 8 buckets minimum, no less
than 1/4 load excluding tombstones, and no more than 15/16 load
including tombstones. These numbers are the results of a lot of
benchmarking with multiple complex applications, and should not be
changed lightly.
(g_hash_table_iter_next)
(g_hash_table_lookup)
(g_hash_table_lookup_extended)
(g_hash_table_insert_internal)
(g_hash_table_remove_internal)
(g_hash_table_foreach_remove_or_steal)
(g_hash_table_foreach)
(g_hash_table_find)
(g_hash_table_get_keys)
(g_hash_table_get_values): Use new data structure and algorithm,
fairly trivial changes.

svn path=/trunk/; revision=7518

16 years agoUpdated Romanian translation by Mişu Moldovan <dumol@gnome.ro>
Mugurel Tudor [Fri, 19 Sep 2008 14:09:48 +0000 (14:09 +0000)]
Updated Romanian translation by Mişu Moldovan <dumol@gnome.ro>

2008-09-19  Mugurel Tudor  <mugurelu@gnome.ro>

* ro.po: Updated Romanian translation by
Mişu Moldovan <dumol@gnome.ro>

svn path=/trunk/; revision=7515

16 years agoLook for man pages in share/man.
Tor Lillqvist [Fri, 19 Sep 2008 10:42:04 +0000 (10:42 +0000)]
Look for man pages in share/man.

2008-09-19  Tor Lillqvist  <tml@novell.com>

* glib-zip.in: Look for man pages in share/man.

svn path=/trunk/; revision=7512

16 years agoglib/gutils.c (_glib_get_dll_directory) Be a bit less restrictive, look
Tor Lillqvist [Fri, 19 Sep 2008 10:20:41 +0000 (10:20 +0000)]
glib/gutils.c (_glib_get_dll_directory) Be a bit less restrictive, look

2008-09-19  Tor Lillqvist  <tml@novell.com>

* glib/gutils.c (_glib_get_dll_directory)
* glib/gspawn-win32.c (do_spawn_with_pipes): Be a bit less
restrictive, look for the helper programs in the same folder where
the GLib DLL is, not necessarily in a "bin" subfolder of the top
GLib installation folder.

svn path=/trunk/; revision=7511

16 years agoBump version to 2.19.0
Matthias Clasen [Thu, 18 Sep 2008 14:47:14 +0000 (14:47 +0000)]
Bump version to 2.19.0

2008-09-18  Matthias Clasen <mclasen@redhat.com>

        * configure.in: Bump version to 2.19.0

        * ChangeLog.pre-2-18: rotate ChangeLog

        * === branch for 2.18 ===

svn path=/trunk/; revision=7510

16 years agoUpdated Arabic Translation by Anas Afif Emad.
Djihed Afifi [Thu, 18 Sep 2008 02:02:45 +0000 (02:02 +0000)]
Updated Arabic Translation by Anas Afif Emad.

* Updated Arabic Translation by Anas Afif Emad.

svn path=/trunk/; revision=7508

16 years agoBump version
Matthias Clasen [Wed, 17 Sep 2008 23:58:48 +0000 (23:58 +0000)]
Bump version

svn path=/trunk/; revision=7507

16 years ago2.18.1 GLIB_2_18_1
Matthias Clasen [Wed, 17 Sep 2008 23:56:04 +0000 (23:56 +0000)]
2.18.1

svn path=/trunk/; revision=7505

16 years agoUpdates
Matthias Clasen [Wed, 17 Sep 2008 22:52:48 +0000 (22:52 +0000)]
Updates

svn path=/trunk/; revision=7504

16 years agoUpdated Telugu Translation.
Krishnababu Krothapalli [Wed, 17 Sep 2008 14:17:06 +0000 (14:17 +0000)]
Updated Telugu Translation.

svn path=/trunk/; revision=7503

16 years agoUpdated Changelog file
Krishnababu Krothapalli [Wed, 17 Sep 2008 14:16:07 +0000 (14:16 +0000)]
Updated Changelog file

svn path=/trunk/; revision=7502

16 years agocan't assign the return value of g_strdupv() to an array. Fill the array
Michael Natterer [Tue, 16 Sep 2008 11:36:52 +0000 (11:36 +0000)]
can't assign the return value of g_strdupv() to an array. Fill the array

2008-09-16  Michael Natterer  <mitch@imendio.com>

* gcontenttype.c (g_content_type_guess): can't assign the return
value of g_strdupv() to an array. Fill the array manually with
const strings instead (it is never freed anyway). Fixes the
build. Also fixed indentation.

svn path=/trunk/; revision=7501

16 years agoFix trivial typo to unbreak the build (there was a colon instead of a
Wouter Bolsterlee [Tue, 16 Sep 2008 09:13:19 +0000 (09:13 +0000)]
Fix trivial typo to unbreak the build (there was a colon instead of a

2008-09-16  Wouter Bolsterlee  <wbolster@svn.gnome.org>

* gdesktopappinfo.c (g_desktop_app_info_new_from_keyfile):
Fix trivial typo to unbreak the build (there was a colon
instead of a semicolon at the end of a statement).

svn path=/trunk/; revision=7500

16 years agoAdd an "install" project that copies the deliverables into a place
Tor Lillqvist [Tue, 16 Sep 2008 01:04:55 +0000 (01:04 +0000)]
Add an "install" project that copies the deliverables into a place
from which projects in other packages will use them.

svn path=/trunk/; revision=7499

16 years agoUse "win64" in the names of the helper exes when built for 64-bit
Tor Lillqvist [Mon, 15 Sep 2008 23:10:10 +0000 (23:10 +0000)]
Use "win64" in the names of the helper exes when built for 64-bit
Windows, like in the Makefile.am.

svn path=/trunk/; revision=7498

16 years agoNew folder. Project files for use with MSVS9. Based on the MSVS8 project
Tor Lillqvist [Mon, 15 Sep 2008 22:59:44 +0000 (22:59 +0000)]
New folder. Project files for use with MSVS9. Based on the MSVS8 project

2008-09-16  Tor Lillqvist  <tml@novell.com>

* win32/vs9: New folder. Project files for use with MSVS9. Based
on the MSVS8 project files is win32/vs8. Four configurations:
Debug|Win32, Release|Win32, Debug|x64 and Release|x64. DLL names
simplified to of the style glib-2-vs9.dll.

svn path=/trunk/; revision=7497

16 years agotime_t is 64 bits in all the newer Microsoft C libraries, not just 64-bit
Tor Lillqvist [Mon, 15 Sep 2008 22:52:12 +0000 (22:52 +0000)]
time_t is 64 bits in all the newer Microsoft C libraries, not just 64-bit

2008-09-16  Tor Lillqvist  <tml@novell.com>

* glib/gtimer.c (g_time_val_to_iso8601): time_t is 64 bits in all
the newer Microsoft C libraries, not just 64-bit ones. So to avoid
crash if compiled with newer MSVSes, use a separate time_t
variable in all cases on Windows.

svn path=/trunk/; revision=7496

16 years agoDefine G_BREAKPOINT() also for 64-bit MSVC, using the __debugbreak()
Tor Lillqvist [Mon, 15 Sep 2008 22:19:38 +0000 (22:19 +0000)]
Define G_BREAKPOINT() also for 64-bit MSVC, using the __debugbreak()

2008-09-16  Tor Lillqvist  <tml@novell.com>

* glib/gbacktrace.h: Define G_BREAKPOINT() also for 64-bit MSVC,
using the __debugbreak() intrinsic.

svn path=/trunk/; revision=7495

16 years agoFix description of module shared library suffix.
Behdad Esfahbod [Mon, 15 Sep 2008 18:59:25 +0000 (18:59 +0000)]
Fix description of module shared library suffix.

2008-09-15  Behdad Esfahbod  <behdad@gnome.org>

        * configure.in: Fix description of module shared library suffix.

svn path=/trunk/; revision=7494

16 years agoMissed one /win32...
Tor Lillqvist [Mon, 15 Sep 2008 16:52:20 +0000 (16:52 +0000)]
Missed one /win32...

svn path=/trunk/; revision=7493

16 years agoIgnore an empty Path value
Matthias Clasen [Mon, 15 Sep 2008 16:26:38 +0000 (16:26 +0000)]
Ignore an empty Path value

svn path=/trunk/; revision=7492

16 years ago Bug 551681 – g_content_type_guess() too naive with filenames
Matthias Clasen [Mon, 15 Sep 2008 16:06:05 +0000 (16:06 +0000)]
    Bug 551681 – g_content_type_guess() too naive with filenames

        * gcontenttype.c (g_content_type_guess): Check whether there's a '/'
        at the end of the filename, and declare it a directory.
        Patch by Bastien Nocera

svn path=/trunk/; revision=7491

16 years agoDrop the "win32" part from under "dependencies" so that the same project
Tor Lillqvist [Mon, 15 Sep 2008 16:04:33 +0000 (16:04 +0000)]
Drop the "win32" part from under "dependencies" so that the same project

2008-09-15  Tor Lillqvist  <tml@novell.com>

* win32/vs8/*.vcproj: Drop the "win32" part from under
"dependencies" so that the same project files can be used also
for 64-bit compilation by just having a different
"dependencies" folder containing 64-bit packages instead. At
least, I hope it will work out some way like that. MSVS
project files really are a pain to maintain. Much information
is typically copied for four different configurations
"Debug|Win32", "Release|Win32", "Debug|x64" and "Release|x64"
instead of having common stuff listed just once and only different
parametrisations. Or am I missing something?

Make the "Release" configuration work, too. Use correct character
set for the gspawn-win32-helper programs. Use correct subsystem
for the non-console one.

svn path=/trunk/; revision=7490

16 years agoUpdate to match what the configure script produces. Just for uniformity,
Tor Lillqvist [Mon, 15 Sep 2008 15:14:00 +0000 (15:14 +0000)]
Update to match what the configure script produces. Just for uniformity,

2008-09-15  Tor Lillqvist  <tml@novell.com>

* config.h.win32.in: Update to match what the configure script
produces. Just for uniformity, only commented out parts affected.

svn path=/trunk/; revision=7489

16 years agoDon't use Detect64BitPortabilityProblems as those warnings are misleading.
Tor Lillqvist [Mon, 15 Sep 2008 14:56:23 +0000 (14:56 +0000)]
Don't use Detect64BitPortabilityProblems as those warnings are misleading.

2008-09-15  Tor Lillqvist  <tml@novell.com>

* win32/vs8/*.vcproj: Don't use Detect64BitPortabilityProblems
as those warnings are misleading. They don't take into
consideration ifdefs in glibconfig.h and elsewhere for _WIN64.

svn path=/trunk/; revision=7488

16 years agoAdd forgotten function
Matthias Clasen [Mon, 15 Sep 2008 14:56:22 +0000 (14:56 +0000)]
Add forgotten function

svn path=/trunk/; revision=7487

16 years agowin32/vs8/gobject.vcproj Drop G*_EXPORTS from PreprocessorDefinitions,
Tor Lillqvist [Mon, 15 Sep 2008 14:36:51 +0000 (14:36 +0000)]
win32/vs8/gobject.vcproj Drop G*_EXPORTS from PreprocessorDefinitions,

2008-09-15  Tor Lillqvist  <tml@novell.com>

* win32/vs8/gobject.vcproj
* win32/vs8/gthread.vcproj: Drop G*_EXPORTS from
PreprocessorDefinitions, nothing looks for such
macros.

svn path=/trunk/; revision=7486

16 years agoAdd DLL_EXPORT to export also the GLIB_VAR variables that aren't mentioned
Tor Lillqvist [Mon, 15 Sep 2008 14:26:26 +0000 (14:26 +0000)]
Add DLL_EXPORT to export also the GLIB_VAR variables that aren't mentioned

2008-09-15  Tor Lillqvist  <tml@novell.com>

* win32/vs8/glib.vcproj: Add DLL_EXPORT to export also the
GLIB_VAR variables that aren't mentioned in glib.symbols.

svn path=/trunk/; revision=7485

16 years agoUpdate to match the Makefile.am files. Drop G*_EXPORTS from
Tor Lillqvist [Mon, 15 Sep 2008 14:04:51 +0000 (14:04 +0000)]
Update to match the Makefile.am files. Drop G*_EXPORTS from

2008-09-15  Tor Lillqvist  <tml@novell.com>

* win32/vs8/*.vcproj: Update to match the Makefile.am files. Drop
G*_EXPORTS from PreprocessorDefinitions, nothing looks for such
macros. Add G_DISABLE_DEPRECATED. Add PCRE_STATIC for glib to
avoid exporting the pcre functions. Add G_LOG_DOMAIN for gobject.

svn path=/trunk/; revision=7484

16 years agoUpdated Arabic Translation by Khaled Hosny.
Djihed Afifi [Mon, 15 Sep 2008 09:35:57 +0000 (09:35 +0000)]
Updated Arabic Translation by Khaled Hosny.

* Updated Arabic Translation by Khaled Hosny.

svn path=/trunk/; revision=7483

16 years agoUpdated Arabic Translation by Khaled Hosny.
Djihed Afifi [Sun, 14 Sep 2008 10:14:32 +0000 (10:14 +0000)]
Updated Arabic Translation by Khaled Hosny.

* Updated Arabic Translation by Khaled Hosny.

svn path=/trunk/; revision=7482

16 years agoBug 551887 – Docs for g_desktop_app_info_new_from_filename () aren't
Cosimo Cecchi [Sat, 13 Sep 2008 23:47:41 +0000 (23:47 +0000)]
Bug 551887 – Docs for g_desktop_app_info_new_from_filename () aren't

2008-09-14  Cosimo Cecchi  <cosimoc@gnome.org>

Bug 551887 – Docs for g_desktop_app_info_new_from_filename ()
aren't clear.

* gdesktopappinfo.c: add a note in the docs clarifying what the
"filename" parameter really is.

svn path=/trunk/; revision=7481

16 years agoglib/gutils.h Deprecate G_WIN32_DLLMAIN_FOR_DLL_NAME(),
Tor Lillqvist [Sat, 13 Sep 2008 20:23:17 +0000 (20:23 +0000)]
glib/gutils.h Deprecate G_WIN32_DLLMAIN_FOR_DLL_NAME(),

2008-09-13  Tor Lillqvist  <tml@novell.com>

* glib/gutils.h
* glib/gwin32.h: Deprecate G_WIN32_DLLMAIN_FOR_DLL_NAME(),
g_win32_get_package_installation_directory() and
g_win32_get_package_installation_subdirectory() as their
documentation has warned for a while. Sorry that I forgot to do
this before 2.18.0.

* glib/gwin32.c (g_win32_get_package_installation_directory):
Print a warning if a non-NULL package parameter is passed to this
function, as that is deprecated usage, as the documentation says.

svn path=/trunk/; revision=7480

16 years agoUpdated Turkish Translation
Baris Cicek [Sat, 13 Sep 2008 02:35:29 +0000 (02:35 +0000)]
Updated Turkish Translation

svn path=/trunk/; revision=7479

16 years agoReinstate docs that got lost
Matthias Clasen [Fri, 12 Sep 2008 22:59:03 +0000 (22:59 +0000)]
Reinstate docs that got lost

svn path=/trunk/; revision=7478

16 years agoDon't call FormatMessage() etc here. Call g_win32_error_message() instead
Tor Lillqvist [Fri, 12 Sep 2008 00:54:14 +0000 (00:54 +0000)]
Don't call FormatMessage() etc here. Call g_win32_error_message() instead

2008-09-12  Tor Lillqvist  <tml@novell.com>

* gwin32appinfo.c (g_win32_app_info_launch): Don't call
FormatMessage() etc here. Call g_win32_error_message() instead
which already does all that. Besides, the code was broken as it
called the default "A" version of FormatMessage() but still
thought it produced a wide string.

svn path=/trunk/; revision=7472

16 years agoremove dangling 's' in the documentation.
Michael Natterer [Thu, 11 Sep 2008 22:05:09 +0000 (22:05 +0000)]
remove dangling 's' in the documentation.

2008-09-12  Michael Natterer  <mitch@imendio.com>

* gfileinfo.c (g_file_info_get_content_type): remove dangling 's'
in the documentation.

svn path=/trunk/; revision=7471

16 years agoBug 548321 – <string.h> is not included in gi18n-lib.h
Matthias Clasen [Thu, 11 Sep 2008 16:48:44 +0000 (16:48 +0000)]
Bug 548321 – <string.h> is not included in gi18n-lib.h

2008-09-11  Matthias Clasen  <mclasen@redhat.com>

        Bug 548321 – <string.h> is not included in gi18n-lib.h

        * glib/gi18n.h:
        * glib/gi18n-lib.h: Include string.h, since strlen is used in
        the macros. Pointed out by Ignacio Casal Quinteiro

svn path=/trunk/; revision=7455

16 years agohindi update by Rajesh Ranjan
Rajesh Ranjan [Thu, 11 Sep 2008 11:14:58 +0000 (11:14 +0000)]
hindi update by Rajesh Ranjan

svn path=/trunk/; revision=7454

16 years agoDocumentation improvements
Matthias Clasen [Thu, 11 Sep 2008 04:21:17 +0000 (04:21 +0000)]
Documentation improvements

svn path=/trunk/; revision=7453

16 years agoAdd required includes
Matthias Clasen [Wed, 10 Sep 2008 22:39:05 +0000 (22:39 +0000)]
Add required includes

svn path=/trunk/; revision=7452

16 years agoBug 551228 – G_STRFUNC on recent Sun compiler should be expanded to
Matthias Clasen [Wed, 10 Sep 2008 03:21:42 +0000 (03:21 +0000)]
Bug 551228 – G_STRFUNC on recent Sun compiler should be expanded to

2008-09-09  Matthias Clasen  <mclasen@redhat.com>

        Bug 551228 – G_STRFUNC on recent Sun compiler should be expanded to
        __func__ rather than '???'

        * glib/gmacros.h: Don't use glibconfig.h defines in gmacros.h,
        as the comment up top says. Instead look at __STDC_VERSION__.
        Problem reported by Lin Ma.

svn path=/trunk/; revision=7451

16 years agoUpdated Oriya (or.po) Translation
Manoj Kumar Giri [Tue, 9 Sep 2008 13:56:21 +0000 (13:56 +0000)]
Updated Oriya (or.po) Translation

svn path=/trunk/; revision=7450

16 years agoAdded Entry for Bengali India Translation Updation
Runa Bhattacharjee [Tue, 9 Sep 2008 12:55:14 +0000 (12:55 +0000)]
Added Entry for Bengali India Translation Updation

svn path=/trunk/; revision=7449

16 years agoUpdated Bengali India Translation
Runa Bhattacharjee [Tue, 9 Sep 2008 12:55:02 +0000 (12:55 +0000)]
Updated Bengali India Translation

svn path=/trunk/; revision=7448

16 years agoBug 523463 – Core dump in gmain.c:2482:IA__g_main_context_check()
Matthias Clasen [Tue, 9 Sep 2008 06:04:21 +0000 (06:04 +0000)]
Bug 523463 – Core dump in gmain.c:2482:IA__g_main_context_check()

2008-09-09  Matthias Clasen  <mclasen@redhat.com>

        Bug 523463 – Core dump in gmain.c:2482:IA__g_main_context_check()

        * glib/gmain.c (g_main_context_check): Be robust against setting
        event fields on the fly, as e.g. happens in linc. Tracked down
        by Paul Smith, fix proposed by Owen Taylor.

svn path=/trunk/; revision=7447

16 years agoBug 551408 - gmodule.def generated to builddir, but required in srcdir
Tor Lillqvist [Mon, 8 Sep 2008 20:38:40 +0000 (20:38 +0000)]
Bug 551408 - gmodule.def generated to builddir, but required in srcdir

2008-09-08  Tor Lillqvist  <tml@novell.com>

Bug 551408 - gmodule.def generated to builddir, but required in srcdir

* Makefile.am: Use gmodule.def from builddir, not srcdir.

svn path=/trunk/; revision=7446

16 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 8 Sep 2008 14:16:23 +0000 (14:16 +0000)]
Updated Slovenian translation

svn path=/trunk/; revision=7445

16 years ago(gio)
Christian Neumair [Mon, 8 Sep 2008 12:44:07 +0000 (12:44 +0000)]
(gio)
2008-09-08  Christian Neumair  <cneumair@gnome.org>

* gunixmount.c (eject_unmount_read_error), (eject_unmount_do):
* gunixvolume.c (eject_mount_read_error), (eject_mount_do):
Use non-blocking pipe for mount helper I/O. Fixes #550647.

svn path=/trunk/; revision=7444

16 years agoUpdate: Croatian Language
Robert Sedak [Mon, 8 Sep 2008 09:19:19 +0000 (09:19 +0000)]
Update: Croatian Language

svn path=/trunk/; revision=7443

16 years agoBug 550433 – g_test_init doesn't recognize --help
Christian Dywan [Mon, 8 Sep 2008 08:25:29 +0000 (08:25 +0000)]
Bug 550433 – g_test_init doesn't recognize --help

* glib/gtestutils.c (parse_args): Add detailed --help output

svn path=/trunk/; revision=7442

16 years agoBug 551149 – xdgmime mem leak
Matthias Clasen [Sun, 7 Sep 2008 03:28:56 +0000 (03:28 +0000)]
Bug 551149 – xdgmime mem leak

2008-09-06  Matthias Clasen  <mclasen@redhat.com>

        Bug 551149 – xdgmime mem leak

        * xdgmime/xdgmime.c (xdg_mime_init_from_directory): Plug
        a memory leak. Patch by Christian Persch

svn path=/trunk/; revision=7441

16 years agoUpdated zh_CN translation
Yang Zhang [Sat, 6 Sep 2008 03:26:58 +0000 (03:26 +0000)]
Updated zh_CN translation

svn path=/trunk/; revision=7440

16 years agoDon't unref icon if NULL.
Tor Lillqvist [Thu, 4 Sep 2008 20:41:50 +0000 (20:41 +0000)]
Don't unref icon if NULL.

2008-09-04  Tor Lillqvist  <tml@novell.com>

* gwin32mount.c (g_win32_mount_finalize): Don't unref icon if
NULL.

svn path=/trunk/; revision=7439

16 years agoUpdated Korean translation
Changwoo Ryu [Thu, 4 Sep 2008 12:09:08 +0000 (12:09 +0000)]
Updated Korean translation

svn path=/trunk/; revision=7438

16 years agoUpdated British English translation.
Philip Withnall [Wed, 3 Sep 2008 22:08:04 +0000 (22:08 +0000)]
Updated British English translation.

2008-09-03  Philip Withnall  <philip@tecnocode.co.uk>

* en_GB.po: Updated British English translation.

svn path=/trunk/; revision=7437

16 years agoBump version
Matthias Clasen [Tue, 2 Sep 2008 20:20:04 +0000 (20:20 +0000)]
Bump version

svn path=/trunk/; revision=7436

16 years ago2.18.0 GLIB_2_18_0
Matthias Clasen [Tue, 2 Sep 2008 20:09:55 +0000 (20:09 +0000)]
2.18.0

svn path=/trunk/; revision=7434

16 years agobig header formatting cleanup: indentation, vtable formatting, consistent
Michael Natterer [Tue, 2 Sep 2008 19:05:58 +0000 (19:05 +0000)]
big header formatting cleanup: indentation, vtable formatting, consistent

2008-09-02  Michael Natterer  <mitch@imendio.com>

* *.h: big header formatting cleanup: indentation, vtable
formatting, consistent spacing in (* vfunc), trailing whitespace
removal. Formatting should be pretty consistent in all GIO headers
now.

svn path=/trunk/; revision=7433

16 years agoBug 549771 – improved .gitignore for glib
Ryan Lortie [Tue, 2 Sep 2008 18:40:39 +0000 (18:40 +0000)]
Bug 549771 – improved .gitignore for glib

2007-09-02  Ryan Lortie  <desrt@desrt.ca>

        Bug 549771 – improved .gitignore for glib

        * docs/reference/.gitignore:
        * docs/reference/gio/.gitignore:
        * docs/reference/gobject/tmpl/.gitignore:
        * gio/.gitignore:
        * gio/tests/.gitignore:
        * glib/.gitignore:
        * glib/libcharset/.gitignore:
        * glib/tests/.gitignore:
        * gmodule/.gitignore:
        * gobject/.gitignore:
        * gobject/tests/.gitignore:
        * po/.gitignore:
        * tests/.gitignore: new files
        * .gitignore: remove 'build' (since it's part of glib now), add more
        useful things.

svn path=/trunk/; revision=7432

16 years agoUpdates
Matthias Clasen [Tue, 2 Sep 2008 18:36:48 +0000 (18:36 +0000)]
Updates

svn path=/trunk/; revision=7431

16 years agoBump version to 2.18.0
Matthias Clasen [Tue, 2 Sep 2008 17:47:54 +0000 (17:47 +0000)]
Bump version to 2.18.0

svn path=/trunk/; revision=7430

16 years agoAdd g_object_get_type
Matthias Clasen [Tue, 2 Sep 2008 17:39:32 +0000 (17:39 +0000)]
Add g_object_get_type

svn path=/trunk/; revision=7429

16 years agoDocument guess_content_type_sync
Matthias Clasen [Tue, 2 Sep 2008 17:37:51 +0000 (17:37 +0000)]
Document guess_content_type_sync

svn path=/trunk/; revision=7428

16 years agofix parent_class member to be GFilterOutputStreamClass (not
Michael Natterer [Tue, 2 Sep 2008 17:30:02 +0000 (17:30 +0000)]
fix parent_class member to be GFilterOutputStreamClass (not

2008-09-02  Michael Natterer  <mitch@imendio.com>

* gbufferedoutputstream.h (struct _GBufferedOutputStreamClass):
fix parent_class member to be GFilterOutputStreamClass (not
GOutputStreamClass). Drop three pointers of padding, which is
exactly what GFilterOutputStreamClass adds to GOutputStreamClass,
so the class struct size stays the same.

svn path=/trunk/; revision=7427

16 years agoAdd missing docs
Matthias Clasen [Tue, 2 Sep 2008 17:03:20 +0000 (17:03 +0000)]
Add missing docs

svn path=/trunk/; revision=7426

16 years agoFix docs
Matthias Clasen [Tue, 2 Sep 2008 16:57:59 +0000 (16:57 +0000)]
Fix docs

svn path=/trunk/; revision=7425

16 years agoFix up docs
Matthias Clasen [Tue, 2 Sep 2008 16:48:40 +0000 (16:48 +0000)]
Fix up docs

svn path=/trunk/; revision=7424

16 years agoadd g_return_if_fail (checksum != NULL)
Michael Natterer [Tue, 2 Sep 2008 14:07:27 +0000 (14:07 +0000)]
add g_return_if_fail (checksum != NULL)

2008-09-02  Michael Natterer  <mitch@imendio.com>

* glib/gchecksum.c (g_checksum_reset): add
g_return_if_fail (checksum != NULL)

svn path=/trunk/; revision=7423

16 years agoUpdated Bulgarian translation by Alexander Shopov <ash@contact.bg>
Alexander Shopov [Tue, 2 Sep 2008 11:24:20 +0000 (11:24 +0000)]
Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>

2008-09-02  Alexander Shopov  <ash@contact.bg>

* bg.po: Updated Bulgarian translation by
Alexander Shopov <ash@contact.bg>

svn path=/trunk/; revision=7422

16 years agoUpdated Dutch translation by Tino Meinen.
Wouter Bolsterlee [Tue, 2 Sep 2008 10:27:59 +0000 (10:27 +0000)]
Updated Dutch translation by Tino Meinen.

2008-09-02  Wouter Bolsterlee  <wbolster@svn.gnome.org>

* nl.po: Updated Dutch translation by Tino Meinen.

svn path=/trunk/; revision=7421