Commit Graph

6369 Commits

Author SHA1 Message Date
Ryan Lortie
fc10cb46ad Bug 568723 – g_buffered_input_stream_fill_async doesn't take count == -1
2009-01-22  Ryan Lortie  <desrt@desrt.ca>

        Bug 568723 – g_buffered_input_stream_fill_async doesn't take count == -1

        * gbufferedinputstream.c (g_buffered_input_stream_fill_async,
        g_buffered_input_stream_fill): check for count < -1 instead of count <
        0 and copy modified check to non-async version for consistency.
        document the "count = -1" API.


svn path=/trunk/; revision=7828
2009-01-22 19:18:26 +00:00
Ryan Lortie
fb50c2ae1a Bug 568741 – g_buffered_input_stream_fill_async doesn't work
2009-01-22  Ryan Lortie  <desrt@desrt.ca>

        Bug 568741 – g_buffered_input_stream_fill_async doesn't work

        * gbufferedinputstream.c (fill_async_callback): grow the buffer tail
        after we have successfully read data from the base stream


svn path=/trunk/; revision=7827
2009-01-22 19:00:05 +00:00
Tor Lillqvist
98d2cdd9e6 Drop the code in the else branch of #if GLIB_CHECK_VERSION (2, 19, 0).
2009-01-21  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.c (g_win32_locale_filename_from_utf8): Drop the code
	in the else branch of #if GLIB_CHECK_VERSION (2, 19, 0). Drop
	unused variables.


svn path=/trunk/; revision=7826
2009-01-21 16:18:39 +00:00
Ryan Lortie
a9c978a354 Bug 568394 – dropping the last reference to a stream filter closes the
2009-01-20  Ryan Lortie  <desrt@desrt.ca>

        Bug 568394 – dropping the last reference to a stream filter closes the
        base stream

        * gfilterinputstream.h:
        * gfilterinputstream.c: add "close-base-stream" property and only
        close the base stream if it is true.  issue async close callbacks from
        correct source object.
        * gfilteroutputstream.h:
        * gfilteroutputstream.c: add a "close-base-stream" property and only
        close the base stream if it is true.  issue async close callbacks from
        correct source object.
        * gbufferedoutputstream: check g_filter_output_stream_get_close_base()
        before closing the base stream.  fix invalid source tag comparison in
        close_async (was comparing to flush_async).
        * ../docs/reference/gio/gio-sections.txt:
        * gio.symbols: add
        g_filter_{in,out}put_stream_{g,s}et_close_base_stream
        * tests/filter-streams.c: new test cases
        * tests/Makefile.am: add new test
        * tests/.gitignore: add new test


svn path=/trunk/; revision=7825
2009-01-21 14:09:56 +00:00
Changwoo Ryu
4a22510022 Updated Korean translation
svn path=/trunk/; revision=7824
2009-01-20 21:24:38 +00:00
Matthias Clasen
a5156974cc fix a typo
svn path=/trunk/; revision=7823
2009-01-20 17:05:26 +00:00
Matthias Clasen
ce9729b2fb Expand docs
svn path=/trunk/; revision=7822
2009-01-19 22:58:38 +00:00
Matthias Clasen
af6a048743 2.19.5
svn path=/trunk/; revision=7820
2009-01-19 07:46:43 +00:00
Matthias Clasen
4a6a9dae2c Doc addition
svn path=/trunk/; revision=7819
2009-01-19 07:05:07 +00:00
Matthias Clasen
b71046b70f Fix a typo
svn path=/trunk/; revision=7818
2009-01-19 07:01:57 +00:00
Matthias Clasen
b77a6eeac9 Some cleanups
svn path=/trunk/; revision=7817
2009-01-19 06:09:11 +00:00
Matthias Clasen
8e3622114b Updates
svn path=/trunk/; revision=7816
2009-01-18 07:33:37 +00:00
Matthias Clasen
a5fd60a8ac Define an ENABLE_REGEX macro
* configure.in: Define an ENABLE_REGEX macro

        * gobject/gboxed.c: Don't refer to g_regex_ref if ENABLE_REGEX
        is not defined.


svn path=/trunk/; revision=7815
2009-01-18 06:53:44 +00:00
Matthias Clasen
a55229a520 Quell some compiler wanrings
svn path=/trunk/; revision=7814
2009-01-18 06:44:04 +00:00
Matthias Clasen
d6f23279e7 Update PCRE to 7.8
svn path=/trunk/; revision=7813
2009-01-18 06:32:03 +00:00
Matthias Clasen
1da8112081 If !ENABLE_NLS, make textomain() macro return "messages" in case of a NULL
* glib/glibintl.h: If !ENABLE_NLS, make textomain() macro
        return "messages" in case of a NULL argument. Patch by
        Peter Kjellerstedt.


svn path=/trunk/; revision=7812
2009-01-18 01:08:17 +00:00
Matthias Clasen
ed6c7f0e32 Use offsetof instead of __builtin_offsetof, for icc's sake. Proposed by
* glib/gmacros.h (G_STRUCT_OFFSETOF): Use offsetof instead of
        __builtin_offsetof, for icc's sake. Proposed by Hrvoje Niksic.



svn path=/trunk/; revision=7811
2009-01-18 01:03:00 +00:00
Jorge Gonzalez Gonzalez
3e9aa9229e Updated Spanish translation
svn path=/trunk/; revision=7810
2009-01-17 11:26:31 +00:00
Gil Forcada Codinachs
ba30c68364 Updated Catalan translation
svn path=/trunk/; revision=7809
2009-01-16 14:27:36 +00:00
Luca Ferretti
23690b6b65 Added missing gio/gemblemedicon.c
2009-01-14  Luca Ferretti  <elle.uca@libero.it>

	* POTFILES.in: Added missing gio/gemblemedicon.c

svn path=/trunk/; revision=7808
2009-01-14 21:01:13 +00:00
Matthias Clasen
c8dd07333a Bug 564728 Add function to decode base64 encoded data in place
2009-01-13  Matthias Clasen  <mclasen@redhat.com>

        Bug 564728 Add function to decode base64 encoded data in place

        * glib/glib.symbols:
        * glib/gbase64.[hc] (g_base64_decode_inplace): New convenience
        API to decode in place, overwriting the input string. Patch by
        Sebastian Dröge.


svn path=/trunk/; revision=7807
2009-01-13 19:59:32 +00:00
Tor Lillqvist
0f35c33ecf win32/vs8/README New files. Mention this VS solution and projects are
2009-01-13  Tor Lillqvist  <tml@novell.com>

	* win32/vs8/README
	* win32/vs9/README: New files. Mention this VS solution and
	projects are experimental and that https://code.launchpad.net/oah
	might be a better choice.

	* win32/vs8/Makefile.am
	* win32/vs9/Makefile.am (EXTRA_DIST): Add the READMEs and two
	missing vcproj files.


svn path=/trunk/; revision=7806
2009-01-13 12:13:55 +00:00
Matthias Clasen
cc1dc5ce20 Improve docs
svn path=/trunk/; revision=7805
2009-01-13 02:24:46 +00:00
Tor Lillqvist
ed2e6c0814 Guard against a mis-written GOptionArgFunc that has returned FALSE but not
2009-01-12  Tor Lillqvist  <tml@novell.com>

	* glib/goption.c (parse_arg): Guard against a mis-written
	GOptionArgFunc that has returned FALSE but not set the GError.


svn path=/trunk/; revision=7804
2009-01-12 11:45:52 +00:00
Matthias Clasen
c5e6e11d8e Improve docs
svn path=/trunk/; revision=7802
2009-01-11 04:58:25 +00:00
Matthias Clasen
38202496e7 Docs improvement
svn path=/trunk/; revision=7801
2009-01-11 04:53:34 +00:00
Tor Lillqvist
f5b5154a88 Cosmetics.
svn path=/trunk/; revision=7795
2009-01-09 10:39:00 +00:00
Tor Lillqvist
eeb4d5939d Bug 567138 - get_package_directory_from_module() does not free its lock
2009-01-09  Tor Lillqvist  <tml@iki.fi>

	Bug 567138 - get_package_directory_from_module() does not free its
	lock when failing

	* glib/gwin32.c (get_package_directory_from_module): Obvious fix.


svn path=/trunk/; revision=7794
2009-01-09 10:37:31 +00:00
Matthias Clasen
f8cfff0686 Don't assume filenames are UTF-8.
* xdgmime/xdgmimecache.c:
        * xdgmime/xdgmimeglob.c: Don't assume filenames are UTF-8.

svn path=/trunk/; revision=7784
2009-01-09 05:19:17 +00:00
Matthias Clasen
a6b965efa1 Make tests work with current shared-mime-info
svn path=/trunk/; revision=7783
2009-01-09 04:53:14 +00:00
Matthias Clasen
2479abee27 Add a G_IO_ERROR_TOO_MANY_OPEN_FILES error code. Requested by Olivier
* gioenums.h: Add a G_IO_ERROR_TOO_MANY_OPEN_FILES error code.
        Requested by Olivier Sessink.

        * gioerror.c: Translate EMFILE to G_IO_ERROR_TOO_MANY_OPEN_FILES.

        * glocalfileenumerator.c: Translate G_FILE_ERROR_MFILE to
        G_IO_ERROR_TOO_MANY_OPEN_FILES.


svn path=/trunk/; revision=7782
2009-01-08 01:32:15 +00:00
Daniel Nylander
5cacbdae8d sv.po: Updated Swedish translation
svn path=/trunk/; revision=7781
2009-01-08 00:00:01 +00:00
Luca Ferretti
3e3f1a427c Updated Italian translation.
2009-01-06  Luca Ferretti  <elle.uca@libero.it>

	* it.po: Updated Italian translation.

svn path=/trunk/; revision=7780
2009-01-06 12:01:43 +00:00
Matthias Clasen
84cca3b58d Bump version
svn path=/trunk/; revision=7779
2009-01-05 18:08:25 +00:00
Matthias Clasen
85fa6de695 2.19.4
svn path=/trunk/; revision=7777
2009-01-05 18:06:05 +00:00
Matthias Clasen
90408a37fa Updates
svn path=/trunk/; revision=7776
2009-01-05 16:58:09 +00:00
Dan Winship
7943f976d4 cast a "char **" to "const char **" to avoid a warning.
* gdesktopappinfo.c (update_mimeapps_list): cast a "char **" to
	"const char **" to avoid a warning.

	* gemblem.c (g_emblem_from_tokens):
	* gemblemedicon.c (g_emblemed_icon_from_tokens):
	* xdgmime/xdgmime.c (xdg_mime_get_icon): remove unused
	variables

svn path=/trunk/; revision=7775
2009-01-05 16:57:55 +00:00
Matthias Clasen
a836486e24 Try using O_NOATIME when sniffing for mime types. Based on a patch by A.
* glocalfileinfo.c (get_content_type): Try using O_NOATIME when
        sniffing for mime types. Based on a patch by A. Walton


svn path=/trunk/; revision=7773
2009-01-05 16:20:40 +00:00
Dan Winship
b9cf1ed275 update
* glib/tests/.gitignore: update

	* tests/.gitignore: update, sort

	* tests/gobject/.gitignore: add

svn path=/trunk/; revision=7772
2009-01-05 14:56:55 +00:00
Kjartan Maraas
e665fb822e Updated Norwegian bokmål translation.
2009-01-05  Kjartan Maraas  <kmaraas@gnome.org>

	* nb.po: Updated Norwegian bokmål translation.

svn path=/trunk/; revision=7771
2009-01-05 14:33:35 +00:00
Tor Lillqvist
48e6a374bc Bug 566348 - g_file_open_tmp uses the wrong g_mkstemp on win32
2009-01-05  Tor Lillqvist  <tml@iki.fi>

	Bug 566348 - g_file_open_tmp uses the wrong g_mkstemp on win32

	* glib/gfileutils.c: Move the binary compatibility versions of
	g_file_test(), g_file_get_contents(), g_mkstemp() and
	g_file_open_tmp() last in the file. Remove the restriction that
	the XXXXXX is last in the template in the binary compatibility
	version of g_mkstemp(). Thanks to Morten Welinder and Jody
	Goldberg.


svn path=/trunk/; revision=7770
2009-01-05 10:08:00 +00:00
Ryan Lortie
481559a031 improve add new simple-async-result test new file to test
2009-01-05  Ryan Lortie  <desrt@desrt.ca>

        * tests/.gitignore: improve
        * tests/Makefile.am: add new simple-async-result test
        * tests/simple-async-result.c: new file to test GSimpleAsyncResult


svn path=/trunk/; revision=7767
2009-01-05 06:58:22 +00:00
Ryan Lortie
876f03f807 Add g_simple_async_result_is_valid(). Implementation by Dan Winship.
2009-01-05  Ryan Lortie  <desrt@desrt.ca>

        * gio.symbols:
        * ../docs/reference/gio/gio-sections.txt:
        * gsimpleasyncresult.h:
        * gsimpleasyncresult.c: Add g_simple_async_result_is_valid().
        Implementation by Dan Winship.  Closes #566170.


svn path=/trunk/; revision=7766
2009-01-05 06:57:16 +00:00
Leonardo Ferreira Fontenelle
0b1f4e5080 Updated Brazilian Portuguese translation.
2009-01-04  Leonardo Ferreira Fontenelle  <leonardof@gnome.org>

	* pt_BR.po: Updated Brazilian Portuguese translation.

svn path=/trunk/; revision=7765
2009-01-05 00:42:48 +00:00
Lu Gan
211256cd1f Update zh_CN.po
svn path=/trunk/; revision=7764
2009-01-04 15:27:20 +00:00
Matthias Clasen
e9b6963f67 Updates
svn path=/trunk/; revision=7763
2009-01-03 07:30:26 +00:00
Matthias Clasen
889152e4c6 Add docs
svn path=/trunk/; revision=7762
2009-01-03 05:10:33 +00:00
Matthias Clasen
34928d8d05 Move docs inline
svn path=/trunk/; revision=7761
2009-01-03 04:15:17 +00:00
Matthias Clasen
6e5efcdb1d Use visibility attribute for new enough sun cc. Patch by Chris Wang
* configure.in: Use visibility attribute for new enough sun cc.
        Patch by Chris Wang


svn path=/trunk/; revision=7760
2009-01-03 01:00:38 +00:00
Behdad Esfahbod
bf201e0fb7 Bug 565136 – Gobject's "notify" signal parameters are wrong in gtk-doc
2009-01-02  Behdad Esfahbod  <behdad@gnome.org>

        Bug 565136 – Gobject's "notify" signal parameters are wrong in gtk-doc
        Patch from  Andrzej Zaborowski

        * gobject.c (g_object_do_class_init): Fix param order in docs.


svn path=/trunk/; revision=7759
2009-01-02 06:09:26 +00:00