platform/upstream/glib.git
15 years agoImprove docs
Matthias Clasen [Fri, 28 Nov 2008 20:29:42 +0000 (20:29 +0000)]
Improve docs

svn path=/trunk/; revision=7704

15 years agoBug 557603 – carbon check output misplaced
Matthias Clasen [Fri, 28 Nov 2008 20:17:15 +0000 (20:17 +0000)]
Bug 557603 – carbon check output misplaced

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

        Bug 557603 – carbon check output misplaced

        * configure.in: Call AC_PROG_CPP early to avoid it messing up
        carbon check output. Fix proposed by Christian Persch

svn path=/trunk/; revision=7703

15 years agoImprove the docs
Matthias Clasen [Fri, 28 Nov 2008 19:52:37 +0000 (19:52 +0000)]
Improve the docs

svn path=/trunk/; revision=7702

15 years agoFix a typo, s/detext/detect. Patch by Enrico Tröger.
Christian Dywan [Fri, 28 Nov 2008 09:43:10 +0000 (09:43 +0000)]
Fix a typo, s/detext/detect. Patch by Enrico Tröger.

2008-11-28  Christian Dywan  <christian@imendio.com>

* gappinfo.c: Fix a typo, s/detext/detect. Patch by Enrico Tröger.

svn path=/trunk/; revision=7700

15 years agoBug 559633 – gtk_image_new_from_gicon does not always work for .desktop
Matthias Clasen [Fri, 28 Nov 2008 08:28:39 +0000 (08:28 +0000)]
Bug 559633 – gtk_image_new_from_gicon does not always work for .desktop

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

        Bug 559633 – gtk_image_new_from_gicon does not always work for
        .desktop files

        * gdesktopappinfo.c (g_desktop_app_info_new_from_keyfile): Ignore
        extensions on icon names.  Proposed by Axel von Bertoldi.

svn path=/trunk/; revision=7698

15 years ago Bug 548163 – Nautilus displays wrong error message for too long file
Matthias Clasen [Fri, 28 Nov 2008 08:05:49 +0000 (08:05 +0000)]
    Bug 548163 – Nautilus displays wrong error message for too long file
        names

        * glocalfile.c (g_local_file_set_display_name): Correctly set
        error conditions if the new name is e.g. too long. Reported
        by Leonardo Ferreira Fontenelle.

svn path=/trunk/; revision=7696

15 years agoBug 547481 – g_data_input_stream_read_line behaves not as stated in the
Matthias Clasen [Fri, 28 Nov 2008 07:42:48 +0000 (07:42 +0000)]
Bug 547481 – g_data_input_stream_read_line behaves not as stated in the

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

        Bug 547481 – g_data_input_stream_read_line behaves not as stated in
        the docs

        * gdatainputstream.c (g_data_input_stream_read_line): Behave as
        documented and include the line end in the returned string.
        Pointed out by Paul Pogonyshev.

        * tests/data-input-stream.c: Fix the read_line test to test the
        documented behaviour.

svn path=/trunk/; revision=7694

15 years agoOnly allow deleting files that have been created by
Matthias Clasen [Fri, 28 Nov 2008 07:27:13 +0000 (07:27 +0000)]
Only allow deleting files that have been created by

        * gdesktopappinfo.c (g_app_info_can_delete): Only allow deleting
        files that have been created by g_app_info_create_from_commandline.

svn path=/trunk/; revision=7693

15 years agoBetter fix
Matthias Clasen [Fri, 28 Nov 2008 07:04:43 +0000 (07:04 +0000)]
Better fix

svn path=/trunk/; revision=7691

15 years agoAvoid unused variables
Matthias Clasen [Fri, 28 Nov 2008 07:02:57 +0000 (07:02 +0000)]
Avoid unused variables

svn path=/trunk/; revision=7690

15 years agoBug 559110 – Do not include libintl.h after glibintl.h
Matthias Clasen [Fri, 28 Nov 2008 06:24:51 +0000 (06:24 +0000)]
Bug 559110 – Do not include libintl.h after glibintl.h

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

        Bug 559110 – Do not include libintl.h after glibintl.h

        * glib/glibintl.h: Define bind_textdomain_codeset in the DISABLE_NLS
        branch. Patch by Peter Kjellerstedt.

        * glib/gutil.c: Don't include libintl.h directly.

svn path=/trunk/; revision=7688

15 years agoBug 562393 – g_buffered_input_stream_read_byte broken if data available
Matthias Clasen [Fri, 28 Nov 2008 05:57:07 +0000 (05:57 +0000)]
Bug 562393 – g_buffered_input_stream_read_byte broken if data available

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

        Bug 562393 – g_buffered_input_stream_read_byte broken if data
        available

        * gio/gbufferedinputstream.c (g_buffered_input_stream_read_byte): Fix
        handling of buffered content.  Patch by Philip Withnall

        * gio/tests/buffered-input-stream.c: Add a testcase for this bug.
        * gio/tests/Makefile.am: And build it

svn path=/trunk/; revision=7686

15 years agoFix an issue with callbacks that return FALSE.
Matthias Clasen [Fri, 28 Nov 2008 05:17:27 +0000 (05:17 +0000)]
Fix an issue with callbacks that return FALSE.

svn path=/trunk/; revision=7684

15 years agoBug 561807 – inotify_sub.c :: dup_dirname() fails to remove trailing '/'
Matthias Clasen [Fri, 28 Nov 2008 05:09:21 +0000 (05:09 +0000)]
Bug 561807 – inotify_sub.c :: dup_dirname() fails to remove trailing '/'

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

        Bug 561807 – inotify_sub.c :: dup_dirname() fails to remove trailing
        '/'

        * inotify/inotify-sub.c (dup_dirname): Actually strip the trailing
        '/' away. Spotted by Dan Williams.

`

svn path=/trunk/; revision=7682

15 years agoBug 559413 – g_option_group_set_error_hook docs buglet
Christian Persch [Sun, 23 Nov 2008 21:16:06 +0000 (21:16 +0000)]
Bug 559413 – g_option_group_set_error_hook docs buglet

svn path=/trunk/; revision=7675

15 years agoBug 560568 – gkeyfile docs buglet
Christian Persch [Sun, 23 Nov 2008 21:16:01 +0000 (21:16 +0000)]
Bug 560568 – gkeyfile docs buglet

svn path=/trunk/; revision=7674

15 years agoBug 560569 – gkeyfile doesn't use the set list_separator in some cases
Christian Persch [Sun, 23 Nov 2008 21:15:57 +0000 (21:15 +0000)]
Bug 560569 – gkeyfile doesn't use the set list_separator in some cases

svn path=/trunk/; revision=7673

15 years agoBug 561212 – GFileReadMoreCallback API doc refers to non-existant function
Christophe Fergeau [Fri, 21 Nov 2008 10:30:43 +0000 (10:30 +0000)]
Bug 561212 – GFileReadMoreCallback API doc refers to non-existant function
* gio/giotypes.h: fix name of function referred to in
GFileReadMoreCallback API documentation

svn path=/trunk/; revision=7666

15 years agoNicer indices
Matthias Clasen [Fri, 21 Nov 2008 07:28:50 +0000 (07:28 +0000)]
Nicer indices

svn path=/trunk/; revision=7665

15 years agoBug 561375 – Leaks mountpoint description
Cosimo Cecchi [Fri, 21 Nov 2008 00:01:22 +0000 (00:01 +0000)]
Bug 561375 – Leaks mountpoint description

2008-11-21  Cosimo Cecchi  <cosimoc@gnome.org>

Bug 561375 – Leaks mountpoint description

* glocalfile.c: (get_mount_info): don't leak the mountpoint description
string.

svn path=/trunk/; revision=7662

15 years agoBug 561352 – Leak of icon description
Cosimo Cecchi [Thu, 20 Nov 2008 23:58:39 +0000 (23:58 +0000)]
Bug 561352 – Leak of icon description

2008-11-21  Cosimo Cecchi  <cosimoc@gnome.org>

Bug 561352 – Leak of icon description

* gcontenttype.c: (g_content_type_get_icon): don't leak the XDG mimetype
generic icon string.

svn path=/trunk/; revision=7660

15 years agoAdd some new macros
Matthias Clasen [Sat, 15 Nov 2008 00:54:24 +0000 (00:54 +0000)]
Add some new macros

svn path=/trunk/; revision=7657

15 years agoAdd G_FILE_ATTRIBUTE_PREVIEW_ICON
Matthias Clasen [Sat, 15 Nov 2008 00:04:49 +0000 (00:04 +0000)]
Add G_FILE_ATTRIBUTE_PREVIEW_ICON

svn path=/trunk/; revision=7655

15 years agoAdd G_FILE_ATTRIBUTE_PREVIEW_ICON to doc table
Matthias Clasen [Sat, 15 Nov 2008 00:03:25 +0000 (00:03 +0000)]
Add G_FILE_ATTRIBUTE_PREVIEW_ICON to doc table

svn path=/trunk/; revision=7654

15 years agoUpdates
Matthias Clasen [Fri, 14 Nov 2008 19:59:34 +0000 (19:59 +0000)]
Updates

svn path=/trunk/; revision=7650

15 years agoUpdate Ukrainian translation.
Maxim Dziumanenko [Thu, 13 Nov 2008 09:06:54 +0000 (09:06 +0000)]
Update Ukrainian translation.

2008-11-13 Maxim Dziumanenko <dziumanenko@gmail.com>

* Update Ukrainian translation.

svn path=/trunk/; revision=7649

15 years agoBug 556415 - Crash on Windows 2000 in g_winhttp_vfs_init()
Tor Lillqvist [Wed, 12 Nov 2008 17:52:39 +0000 (17:52 +0000)]
Bug 556415 - Crash on Windows 2000 in g_winhttp_vfs_init()

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

Bug 556415 - Crash on Windows 2000 in g_winhttp_vfs_init()

* win32/gwinhttpvfs.h: Move the set of function pointers to
winhttp.dll into a separate struct GWinHttpDllFuncs. Just have a
pointer to that in the GWinHttpVfsClass.

* win32/gwinhttpvfs.c: Move the lookup of functions from
winhttp.dll into a function of its own, that stores the pointers
in a separate GWinHttpDllFuncs variable. Add two bookeeping
booleans lookup_done and funcs_found.

Don't call g_io_extension_point_implement() to register the
winhttp extension unless winhttp.dll has been successfully loaded
and the required functions found in it.

* win32/gwinhttp*.c: Adjust calls of the functions looked up from
winhttp.dll correspondingly.

svn path=/trunk/; revision=7648

15 years agoBug 559448 – GObject Reference Manual (typo)
Behdad Esfahbod [Mon, 10 Nov 2008 14:37:21 +0000 (14:37 +0000)]
Bug 559448 – GObject Reference Manual (typo)

2008-11-10  Behdad Esfahbod  <behdad@gnome.org>

        Bug 559448 – GObject Reference Manual (typo)

        * gobject/tut_gobject.xml: Fix typo.

svn path=/trunk/; revision=7646

15 years agoUpdated Spanish translation
Jorge Gonzalez Gonzalez [Sat, 8 Nov 2008 14:56:59 +0000 (14:56 +0000)]
Updated Spanish translation

svn path=/trunk/; revision=7645

15 years agoBug 558672 – NULL key lookup using g_hash_table_lookup_extended()
Christian Dywan [Tue, 4 Nov 2008 17:01:19 +0000 (17:01 +0000)]
Bug 558672 – NULL key lookup using g_hash_table_lookup_extended()

2008-11-04  Christian Dywan  <christian@imendio.com>

Bug 558672 – NULL key lookup using g_hash_table_lookup_extended()

* glib/ghash.c:
Clarify g_hash_table_lookup_extended

svn path=/trunk/; revision=7644

15 years agoMention ac_cv_func_posix_getgrgid_r.
Matthias Clasen [Tue, 4 Nov 2008 04:28:32 +0000 (04:28 +0000)]
Mention ac_cv_func_posix_getgrgid_r.

* glib/cross.sgml: Mention ac_cv_func_posix_getgrgid_r.

svn path=/trunk/; revision=7643

15 years agoExpand the docs of g_object_class_install_property. Proposed by Maciej
Matthias Clasen [Tue, 4 Nov 2008 04:17:40 +0000 (04:17 +0000)]
Expand the docs of g_object_class_install_property. Proposed by Maciej

* gobject.c: Expand the docs of g_object_class_install_property.
Proposed by Maciej Piechotka

svn path=/trunk/; revision=7642

15 years agoExpand also build/win32/vs9/Makefile.
Tor Lillqvist [Sun, 2 Nov 2008 19:43:52 +0000 (19:43 +0000)]
Expand also build/win32/vs9/Makefile.

2008-11-02  Tor Lillqvist  <tml@novell.com>

* configure.in: Expand also build/win32/vs9/Makefile.

svn path=/trunk/; revision=7641

15 years agoAdd vs9.
Tor Lillqvist [Sun, 2 Nov 2008 19:42:48 +0000 (19:42 +0000)]
Add vs9.

2008-11-02  Tor Lillqvist  <tml@novell.com>

* win32/Makefile.am (SUBDIRS): Add vs9.

svn path=/trunk/; revision=7640

15 years agoBug 558153 - Patch for .def files generation
Tor Lillqvist [Sun, 2 Nov 2008 19:41:25 +0000 (19:41 +0000)]
Bug 558153 - Patch for .def files generation

2008-11-02  Tor Lillqvist  <tml@novell.com>

Bug 558153 - Patch for .def files generation

* win32/{vs8,vs9}/*.vcproj: Add &quot; around paths, making it
possible to compile in a directory containing spaces. .def files
generation is done for every configuration not only the "Debug"
ones.

Patch by Guillaume Duhamel.

svn path=/trunk/; revision=7639

15 years agoBug 558513 – g_warn_if_fail FIXME in gtestutils
Christian Dywan [Fri, 31 Oct 2008 09:56:19 +0000 (09:56 +0000)]
Bug 558513 – g_warn_if_fail FIXME in gtestutils

* glib/gtestutils.c (g_test_log_send):
Turn g_assert into g_warn_if_fail as advised

svn path=/trunk/; revision=7637

15 years agoBug 558185 – 'parent' variable in
Grahame Bowland [Fri, 31 Oct 2008 02:23:55 +0000 (02:23 +0000)]
Bug 558185 – 'parent' variable in

2008-10-31  Grahame Bowland  <grahame@angrygoats.net>

Bug 558185 – 'parent' variable in g_local_file_get_child_for_display_name()
hits g_object_unref(NULL) assertion

* gio/glocalfile.c:
- remove unused variable. Patch by Matt Johnston <matt@ucc.asn.au>

svn path=/trunk/; revision=7636

15 years agoClarified/added docs for G_STRINGIFY, G_PASTE and G_STATIC_ASSERT, based
16:04:38 Tim Janik [Wed, 29 Oct 2008 15:14:29 +0000 (15:14 +0000)]
Clarified/added docs for G_STRINGIFY, G_PASTE and G_STATIC_ASSERT, based

2008-10-29 16:04:38  Tim Janik  <timj@gtk.org>

        * glib/tmpl/macros_misc.sgml: Clarified/added docs for
        G_STRINGIFY, G_PASTE and G_STATIC_ASSERT, based on
        patches from Christian Persch and  Christian Dywan.

svn path=/trunk/; revision=7634

15 years agoadded G_PASTE() and G_STATIC_ASSERT(), based on patches by Christian
16:11:14 Tim Janik [Wed, 29 Oct 2008 15:14:06 +0000 (15:14 +0000)]
added G_PASTE() and G_STATIC_ASSERT(), based on patches by Christian

2008-10-29 16:11:14  Tim Janik  <timj@gtk.org>

        * glib/gmacros.h: added G_PASTE() and G_STATIC_ASSERT(), based on
        patches by Christian Persch and Christian Dywan. Fixes:
        Bug 558381 - Add support for compile time assertions

svn path=/trunk/; revision=7633

15 years agoreviewed by: Alexander Larsson <alexl@redhat.com>
Cosimo Cecchi [Tue, 28 Oct 2008 14:51:56 +0000 (14:51 +0000)]
reviewed by: Alexander Larsson <alexl@redhat.com>

2008-10-28  Cosimo Cecchi  <cosimoc@gnome.org>

reviewed by: Alexander Larsson <alexl@redhat.com>

* gdatainputstream.c: Make the docs of g_dada_input_stream_read_line ()
clearer about the behavior when there's no more content to read.

svn path=/trunk/; revision=7632

15 years agochanged "#GHashTableIterator" to "#GHashTableIter" in the
Joseph Pingenot [Mon, 27 Oct 2008 22:59:42 +0000 (22:59 +0000)]
changed "#GHashTableIterator" to "#GHashTableIter" in the

* glib/ghash.c: changed "#GHashTableIterator" to "#GHashTableIter"
        in the documentation-comments above g_hash_table_foreach_remove()
        and g_hash_table_foreach_steal() to correctly name and link to
        GHashTableIter.  This affects the GNOME documentation website
        as well, so further steps are likely necessary beyond this subproject.
* ChangeLog modified to reflect this.

-Joseph (solarion)

svn path=/trunk/; revision=7631

15 years agoFix leak inside g_local_file_get_parse_name()
Federico Mena Quintero [Mon, 27 Oct 2008 20:42:32 +0000 (20:42 +0000)]
Fix leak inside g_local_file_get_parse_name()

Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=7629

15 years agoBug 557592 - Missing include in gwinhttpfile.c
Tor Lillqvist [Mon, 27 Oct 2008 08:30:08 +0000 (08:30 +0000)]
Bug 557592 - Missing include in gwinhttpfile.c

2008-10-27  Tor Lillqvist  <tml@novell.com>

Bug 557592 - Missing include in gwinhttpfile.c

* win32/gwinhttpfile.c: Include <wchar.h> to make it compile with
MSVC2008.

svn path=/trunk/; revision=7628

15 years agoAdd bug ref
Matthias Clasen [Fri, 24 Oct 2008 04:11:26 +0000 (04:11 +0000)]
Add bug ref

svn path=/trunk/; revision=7626

15 years agoAccept short data
Matthias Clasen [Fri, 24 Oct 2008 04:10:50 +0000 (04:10 +0000)]
Accept short data

svn path=/trunk/; revision=7625

15 years agoBug 556910 – [fam-helper.c:223]: Memory leak: sub
Matthias Clasen [Fri, 24 Oct 2008 04:04:42 +0000 (04:04 +0000)]
Bug 556910 – [fam-helper.c:223]: Memory leak: sub

2008-10-24  Matthias Clasen  <mclasen@redhat.com>

        Bug 556910 – [fam-helper.c:223]: Memory leak: sub

        * fam/fam-helper.c: Fix a memory leak and formatting issues.
        Reported by Daniel Marjamäki

svn path=/trunk/; revision=7624

15 years agoBug 556921 – gpoll.h breaks hal compilation
Matthias Clasen [Fri, 24 Oct 2008 03:55:29 +0000 (03:55 +0000)]
Bug 556921 – gpoll.h breaks hal compilation

2008-10-23 Matthias Clasen <mclasen@redhat.com>

        Bug 556921 – gpoll.h breaks hal compilation

        * glib/gpoll.h: Include gtypes.h. Pointed out by Anis Elleuch

svn path=/trunk/; revision=7623

15 years agoFix docs
Matthias Clasen [Fri, 24 Oct 2008 03:52:02 +0000 (03:52 +0000)]
Fix docs

svn path=/trunk/; revision=7622

15 years agoBug 528320 - Incorrect icons displayed for files with custom mimetype
Alexander Larsson [Thu, 23 Oct 2008 09:10:01 +0000 (09:10 +0000)]
Bug 528320 - Incorrect icons displayed for files with custom mimetype

2008-10-23  Alexander Larsson  <alexl@redhat.com>

Bug 528320 - Incorrect icons displayed for files with custom mimetype icons

        * glocalfileinfo.c:
        (_g_local_file_info_get):
Don't return the fallback icon (text-x-generic) for all files.
This is causing problems with theme icon lookup and custom mime
icons, as the generic fallback overrides custom mime icons in
inherited themes.

This is a slight change as applications might not get an icon wher
they previously did. But there is no guarantee to get on neither before
or after this change, so it should not break applications. Changes
to nautilus and gtk+ will be done to manually use the generic fallback
icon if no icon is found, but this is only required for rare cases.

svn path=/trunk/; revision=7620

15 years agoAdd G_FILE_ATTRIBUTE_PREVIEW_ICON (#557182)
Alexander Larsson [Tue, 21 Oct 2008 13:02:05 +0000 (13:02 +0000)]
Add G_FILE_ATTRIBUTE_PREVIEW_ICON (#557182)

2008-10-21  Alexander Larsson  <alexl@redhat.com>

        * gfileinfo.h:
Add G_FILE_ATTRIBUTE_PREVIEW_ICON (#557182)

svn path=/trunk/; revision=7619

15 years agoBug 555740 - gicon serialization Based on patch from David Zeuthen
Alexander Larsson [Tue, 21 Oct 2008 11:51:48 +0000 (11:51 +0000)]
Bug 555740 - gicon serialization Based on patch from David Zeuthen

2008-10-21  Alexander Larsson  <alexl@redhat.com>

Bug 555740 - gicon serialization
Based on patch from David Zeuthen

        * gicon.[ch]:
        * gio.symbols:
Add g_icon_to_string() and g_icon_new_for_string().

        * gemblem.c:
        * gemblemedicon.c:
        * gfileicon.c:
        * gthemedicon.c:
Implement icon serialization for built-in icon types

        * tests/Makefile.am:
        * tests/g-icon.c:
Added GIcon serialization test

svn path=/trunk/; revision=7618

15 years agoBug 557087 – mem leak in g_content_types_get_registered
Christian Persch [Mon, 20 Oct 2008 16:49:16 +0000 (16:49 +0000)]
Bug 557087 – mem leak in g_content_types_get_registered

svn path=/trunk/; revision=7616

15 years agoBug 556186 – gpoll.h breaks gmain.h inclusion
Michael Natterer [Sun, 19 Oct 2008 20:38:14 +0000 (20:38 +0000)]
Bug 556186 – gpoll.h breaks gmain.h inclusion

2008-10-19  Michael Natterer  <mitch@imendio.com>

Bug 556186 – gpoll.h breaks gmain.h inclusion

* glib/gpoll.h: different fix: disallow direct inclusion
unconditionally again but make an exception if included from
gmain.h to maintain compatibility.

svn path=/trunk/; revision=7615

15 years agoBump version
Matthias Clasen [Fri, 17 Oct 2008 00:06:03 +0000 (00:06 +0000)]
Bump version

svn path=/trunk/; revision=7613

15 years ago2.19.0 GLIB_2_19_0
Matthias Clasen [Thu, 16 Oct 2008 23:59:50 +0000 (23:59 +0000)]
2.19.0

svn path=/trunk/; revision=7611

15 years agoDon't specify multiple directories in DOC_SOURCE_DIR. It doesn't work.
Matthias Clasen [Thu, 16 Oct 2008 19:27:22 +0000 (19:27 +0000)]
Don't specify multiple directories in DOC_SOURCE_DIR. It doesn't work.

2008-10-16  Matthias Clasen  <mclasen@redhat.com>

        * glib/Makefile.am: Don't specify multiple directories in
        DOC_SOURCE_DIR. It doesn't work.

svn path=/trunk/; revision=7607

15 years agoUpdates
Matthias Clasen [Thu, 16 Oct 2008 04:53:25 +0000 (04:53 +0000)]
Updates

svn path=/trunk/; revision=7604

15 years agoBug 556422 – g_file_enumerator_next_file: unclear whether return value
Matthias Clasen [Thu, 16 Oct 2008 04:19:53 +0000 (04:19 +0000)]
Bug 556422 – g_file_enumerator_next_file: unclear whether return value

2008-10-16  Matthias Clasen  <mclasen@redhat.com>

        Bug 556422 – g_file_enumerator_next_file: unclear whether return
        value needs to be freed

        * gfileenumerator.c (g_file_enumerate_next_file): Clarify
        the return value docs. Pointed out by Armin Burgmeier

svn path=/trunk/; revision=7603

15 years agoBug 556334 – Warning when building without selinux support
Matthias Clasen [Wed, 15 Oct 2008 03:37:56 +0000 (03:37 +0000)]
Bug 556334 – Warning when building without selinux support

2008-10-14  Matthias Clasen  <mclasen@redhat.com>

        Bug 556334 – Warning when building without selinux support

        * glocalfileinfo.c: Avoid compiler warnings when selinux is
        disabled. Patch by Pascal Terjan

svn path=/trunk/; revision=7601

15 years agoFix make check
Matthias Clasen [Wed, 15 Oct 2008 01:32:01 +0000 (01:32 +0000)]
Fix make check

svn path=/trunk/; revision=7600

15 years agoBug 556186 – gpoll.h breaks gmain.h inclusion
Christian Persch [Tue, 14 Oct 2008 10:11:29 +0000 (10:11 +0000)]
Bug 556186 – gpoll.h breaks gmain.h inclusion

svn path=/trunk/; revision=7599

15 years agoBug 556101 – static mutex yields warnings with g++ Reviewed by Tim Janik
Sven Herzberg [Mon, 13 Oct 2008 12:54:13 +0000 (12:54 +0000)]
Bug 556101 – static mutex yields warnings with g++ Reviewed by Tim Janik

2008-10-13  Sven Herzberg  <sven@imendio.com>

Bug 556101 – static mutex yields warnings with g++
Reviewed by Tim Janik

* configure.in: added an intermediate cast to gpointer

svn path=/trunk/; revision=7598

15 years agoBug 555311 – format not a string literal and no format arguments
Christian Persch [Mon, 13 Oct 2008 12:43:37 +0000 (12:43 +0000)]
Bug 555311 – format not a string literal and no format arguments

svn path=/trunk/; revision=7597

15 years agoWhen adding an application as handling a mime type (but not as the
Alexander Larsson [Mon, 13 Oct 2008 10:02:30 +0000 (10:02 +0000)]
When adding an application as handling a mime type (but not as the

2008-10-13  Alexander Larsson  <alexl@redhat.com>

        * gdesktopappinfo.c:
When adding an application as handling a mime type (but
not as the default), copy the full list of desktop ids handling
that type in before adding the new one on the end of the list.
This means we're not accidentally changing the default by overriding
the info from the later directories in the search path.

Also, fixes small leak of removed_entries.

svn path=/trunk/; revision=7595

15 years agoDeprecate g_volume_monitor_adopt_orphan_mount() (#555331).
David Zeuthen [Sun, 12 Oct 2008 17:05:17 +0000 (17:05 +0000)]
Deprecate g_volume_monitor_adopt_orphan_mount() (#555331).

2008-10-12  David Zeuthen  <davidz@redhat.com>

        * gio.symbols:
        * gunionvolumemonitor.c:
        * gvolumemonitor.h:
        Deprecate g_volume_monitor_adopt_orphan_mount() (#555331).

svn path=/trunk/; revision=7594

15 years agoBug 551355 – [PATCH] Make glib build with libtool 2.2
Behdad Esfahbod [Sat, 11 Oct 2008 00:04:51 +0000 (00:04 +0000)]
Bug 551355 – [PATCH] Make glib build with libtool 2.2

2008-10-10  Behdad Esfahbod  <behdad@gnome.org>

        Bug 551355 – [PATCH] Make glib build with libtool 2.2

        * autogen.sh: Accept libtool 2.2.   We are moving towards having
        it working.

svn path=/trunk/; revision=7593

15 years agoWith libtool 2.x, regenerate libtool early. Based on bug 552107, patch by
Behdad Esfahbod [Fri, 10 Oct 2008 23:55:38 +0000 (23:55 +0000)]
With libtool 2.x, regenerate libtool early. Based on bug 552107, patch by

2008-10-10  Behdad Esfahbod  <behdad@gnome.org>

        * configure.in: With libtool 2.x, regenerate libtool early.
        Based on bug 552107, patch by Patryk Zawadzki

svn path=/trunk/; revision=7592

15 years agoUpper half of byte is >> 4, not >> 8. Found by Kjartan Maraas via sparse
Alexander Larsson [Fri, 10 Oct 2008 11:35:39 +0000 (11:35 +0000)]
Upper half of byte is >> 4, not >> 8. Found by Kjartan Maraas via sparse

2008-10-10  Alexander Larsson  <alexl@redhat.com>

* gfileattribute.c (escape_byte_string):
Upper half of byte is >> 4, not >> 8.
Found by Kjartan Maraas via sparse

svn path=/trunk/; revision=7590

15 years ago Bug 555711 – Wrong fallback order of mimetype icons
Matthias Clasen [Fri, 10 Oct 2008 05:07:56 +0000 (05:07 +0000)]
    Bug 555711 – Wrong fallback order of mimetype icons

        * gcontenttype.c: Don't prefer generic icons over
        default mimetype icons.

        * xdgmime/xdgmimecache.c (xdg_mime_cache_get_icon):
        * xdgmime/xdgmime.c (xdg_mime_get_icon): Don't fall back
        to generic icons.
        Patch by Krysztof Kosiński

svn path=/trunk/; revision=7587

15 years agoBug 555121 – Improved build-time handling of gio module-dir
Matthias Clasen [Fri, 10 Oct 2008 05:00:17 +0000 (05:00 +0000)]
Bug 555121 – Improved build-time handling of gio module-dir

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

        Bug 555121 – Improved build-time handling of gio module-dir

        * fam/Makefile.am: Use GIO_MODULE_DIR consistently.
        * Makefile.am: Create the module dir.

svn path=/trunk/; revision=7586

15 years agoFix gcc warnings
Matthias Clasen [Fri, 10 Oct 2008 04:54:51 +0000 (04:54 +0000)]
Fix gcc warnings

svn path=/trunk/; revision=7585

15 years agoBug 552861 – glib-2.0.m4 calls system(3) without storing its result
Matthias Clasen [Fri, 10 Oct 2008 04:44:53 +0000 (04:44 +0000)]
Bug 552861 – glib-2.0.m4 calls system(3) without storing its result

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

        Bug 552861 – glib-2.0.m4 calls system(3) without storing its result

        * m4macros/glib-2.0.m4: Cosmetic change to make -Werror happy.
        Patch by Andreas Köhler

svn path=/trunk/; revision=7584

15 years agoActually return -1 in case of cancelled, not old res value.
Alexander Larsson [Thu, 9 Oct 2008 10:03:12 +0000 (10:03 +0000)]
Actually return -1 in case of cancelled, not old res value.

2008-10-09  Alexander Larsson  <alexl@redhat.com>

* gunixinputstream.c (g_unix_input_stream_read):
Actually return -1 in case of cancelled, not old res value.

svn path=/trunk/; revision=7583

15 years agoBug 555313 – GFileAttribute boxed type get_type function should use
Christian Persch [Wed, 8 Oct 2008 20:54:39 +0000 (20:54 +0000)]
Bug 555313 – GFileAttribute boxed type get_type function should use
usual get_type pattern

svn path=/trunk/; revision=7580

15 years agoBug 555314 – mem leak in gmarkup
Christian Persch [Wed, 8 Oct 2008 20:54:35 +0000 (20:54 +0000)]
Bug 555314 – mem leak in gmarkup

svn path=/trunk/; revision=7579

15 years agoBug 554790 - g_convert() misbehaves with winiconv versions
Tor Lillqvist [Wed, 8 Oct 2008 20:35:39 +0000 (20:35 +0000)]
Bug 554790 - g_convert() misbehaves with winiconv versions

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

Bug 554790 - g_convert() misbehaves with winiconv versions

* glib/win_iconv.c (kernel_mbtowc): If converting from ASCII,
explicitly check for and reject 8bit chars. MultiByteToWideChar()
doesn't, at least not on XP.

svn path=/trunk/; revision=7578

15 years agoProperly include gmacros.h
Matthias Clasen [Tue, 7 Oct 2008 18:52:18 +0000 (18:52 +0000)]
Properly include gmacros.h

svn path=/trunk/; revision=7575

15 years agoBug 555309 – giochannel breaks on error Patch from Christian Persch
Behdad Esfahbod [Mon, 6 Oct 2008 22:57:49 +0000 (22:57 +0000)]
Bug 555309 – giochannel breaks on error Patch from Christian Persch

2008-10-06  Behdad Esfahbod  <behdad@gnome.org>

        Bug 555309 – giochannel breaks on error
        Patch from Christian Persch

        * glib/giounix.c (g_io_unix_read), (g_io_unix_write),
        (g_io_unix_seek), (g_io_unix_close), (g_io_unix_set_flags):
        Don't shadow err.  Oops!

svn path=/trunk/; revision=7574

15 years agoBug 554745 - GFileAttributeInfoList should be boxed
Colin Walters [Mon, 6 Oct 2008 21:59:29 +0000 (21:59 +0000)]
Bug 554745 - GFileAttributeInfoList should be boxed

2008-10-06  Colin Walters  <walters@verbum.org>

Bug 554745 - GFileAttributeInfoList should be boxed

* gio/gfileattribute.c: Define a boxed type for GFileAttributeList
for convenience of bindings.
* gio/gfileattribute.h: Prototype it.

svn path=/trunk/; revision=7573

15 years agoBug 555224 – Improve g_format_size_for_display doc
Christophe Fergeau [Mon, 6 Oct 2008 18:50:39 +0000 (18:50 +0000)]
Bug 555224 – Improve g_format_size_for_display doc
* glib/gfileutils.c: change g_format_size_for_display API doc to
explicitly say that the returned string has to be freed. Change
spelling of "newly allocated" to "newly-allocated" in g_file_read_link
API doc to be more consistent with what is done in that file.

svn path=/trunk/; revision=7572

15 years agoBug 554970 â\80\93 segfault when update-desktop-database is not available
Pascal Terjan [Sun, 5 Oct 2008 00:33:43 +0000 (00:33 +0000)]
Bug 554970 â\80\93 segfault when update-desktop-database is not available

2008-10-05  Pascal Terjan  <pterjan@linuxfr.org>

Bug 554970 â\80\93 segfault when update-desktop-database is not available
on the system

* gdesktopappinfo.c (run_update_command): Have the error set before
using it.

svn path=/trunk/; revision=7570

15 years agoUpdated Brazilian Portuguese translation.
Og B. Maciel [Sat, 4 Oct 2008 14:20:29 +0000 (14:20 +0000)]
Updated Brazilian Portuguese translation.

svn path=/trunk/; revision=7568

15 years agoIf possible, always pass FUSE file:// URIs (such as
David Zeuthen [Wed, 1 Oct 2008 17:46:57 +0000 (17:46 +0000)]
If possible, always pass FUSE file:// URIs (such as

2008-10-01  David Zeuthen  <davidz@redhat.com>

* gdesktopappinfo.c (expand_macro): If possible, always pass FUSE
file:// URIs (such as '/home/davidz/.gvfs/sftp on foo/file.avi')
instead of the gio URI (such as sftp://foo/file.avi) when using
g_app_info_launch() and friends. With a sufficiently recent gvfs,
apps using gio+gvfs will map the FUSE file:// URI back to the gio
URI (and thus bypass the fuse daemon) thanks the patch from bug
#530654.  Since Nautilus is an user of g_app_info_launch() it
means that non-gio POSIX apps, such as mplayer, will Just Work(tm)
when launced via the file manager. Win. Fixes bug #528670.

* gappinfo.c: Add some notes about the FUSE POSIX URI <-> GIO URI
mapping to the description of GAppInfo.

2008-10-01  David Zeuthen  <davidz@redhat.com>

* README.in: Add "Notes about glib 2.20" section detailing the
ramifications of the patch from bug #528670.

svn path=/trunk/; revision=7566

15 years agoBug 554092 – glib doesn't return G_FILE_ERROR_NOENT et al on OS X
Behdad Esfahbod [Tue, 30 Sep 2008 20:40:31 +0000 (20:40 +0000)]
Bug 554092 – glib doesn't return G_FILE_ERROR_NOENT et al on OS X

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

        Bug 554092 – glib doesn't return G_FILE_ERROR_NOENT et al on OS X

        * glib/giounix.c (g_io_unix_read), (g_io_unix_write),
        (g_io_unix_seek), (g_io_unix_close), (g_io_unix_set_flags),
        (g_io_unix_get_flags), (g_io_channel_new_file):
        Like mclasen says: "well, thats the way errno works...,
        save it or loose it".  Save errno.

svn path=/trunk/; revision=7565

15 years agoMakefile.decl Bypass gtester related stuff on Windows.
Tor Lillqvist [Tue, 30 Sep 2008 14:46:45 +0000 (14:46 +0000)]
Makefile.decl Bypass gtester related stuff on Windows.

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

* Makefile.decl
* glib/tests/Makefile.am: Bypass gtester related stuff on Windows.

svn path=/trunk/; revision=7564

15 years agoglib/gprintf.c Don't define _GNU_SOURCE on Windows, as _GNU_SOURCE has
Tor Lillqvist [Tue, 30 Sep 2008 14:04:35 +0000 (14:04 +0000)]
glib/gprintf.c Don't define _GNU_SOURCE on Windows, as _GNU_SOURCE has

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

* glib/gprintf.c
* glib/gnulib/vasnprintf.c: Don't define _GNU_SOURCE on Windows,
as _GNU_SOURCE has unintended side effects when compiling against
newest mingw headers.

svn path=/trunk/; revision=7563

15 years agoBuild desktop-app-info only on Unix.
Tor Lillqvist [Tue, 30 Sep 2008 11:08:38 +0000 (11:08 +0000)]
Build desktop-app-info only on Unix.

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

* tests/Makefile.am: Build desktop-app-info only on Unix.

svn path=/trunk/; revision=7562

15 years agoAvoid a g_critical(). Pass a large enough result buffer to
Tor Lillqvist [Tue, 30 Sep 2008 10:47:06 +0000 (10:47 +0000)]
Avoid a g_critical(). Pass a large enough result buffer to

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

* glocalfile.c (get_volume_for_path) [Win32]: Avoid a
g_critical(). Pass a large enough result buffer to
GetVolumePathNameW(). Just use MAX_PATH.

svn path=/trunk/; revision=7561

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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