Commit Graph

6066 Commits

Author SHA1 Message Date
Matthias Clasen
d9a932bf14 fix a comment
svn path=/trunk/; revision=7058
2008-06-19 04:40:15 +00:00
Matthias Clasen
d780a41c37 set tv_usec to 0 rather than 1 when a fraction of a second is not
* glib/gtimer.c (g_time_val_from_iso8601): set tv_usec to 0 rather
        than 1 when a fraction of a second is not specified
        (g_time_val_from_iso8601): calculate a fraction of a second
        correctly even in case it does not happen to consist of exactly
        six digits; do not allow random data after the ISO 8601 string,
        only whitespace
        (make g_time_val_to_iso8601): support fractions of a second
        Patch by Peter Kjellerstedt

        * tests/testglib.c: Update to match


svn path=/trunk/; revision=7057
2008-06-19 04:14:25 +00:00
Matthias Clasen
f6da8a493c Don't do fallback for user-home and user-desktop to avoid problems with
* glocalfileinfo.c: Don't do fallback for user-home and user-desktop
        to avoid problems with partial icon themes.



svn path=/trunk/; revision=7056
2008-06-19 03:30:17 +00:00
Hans Breuer
b696a978ea bits and pieces from gtk-2-12 and gunix*.[hc] to make the file chooser
2008-06-17  Hans Breuer  <hans@breuer.org>

        * gwin32mount.[ch] gwin32volumemonitor.[ch] : bits and pieces from 
        gtk-2-12 and gunix*.[hc] to make the file chooser show drive letter
	access again on win32, see bug #538127
        * giomodule.c : ensure GWin32VolumeMonitor is registered
        * glocaldireoctorymonitor.c : initial state on win32 is_mounted=TRUE
        * Makefile.am makefile.msc : updated

svn path=/trunk/; revision=7055
2008-06-17 21:40:04 +00:00
Hans Breuer
203ac61027 fixed the date
svn path=/trunk/; revision=7053
2008-06-16 20:35:48 +00:00
Hans Breuer
890d13b40e declaration and initialization in one step avoids c99ism
2008-05-19  Hans Breuer  <hans@breuer.org>

	* glocalfileenumerator.c(_g_local_file_enumerator_new) : declaration 
	and initialization in one step avoids c99ism

svn path=/trunk/; revision=7052
2008-06-16 20:34:42 +00:00
Christian Persch
9c17697b56 Use g_set_error_literal where appropriate. Patch from bug #535947.
svn path=/trunk/; revision=7051
2008-06-16 16:53:58 +00:00
Christian Persch
9c50d657e5 Add g_set_error_literal. Bug #535947.
svn path=/trunk/; revision=7050
2008-06-16 16:41:01 +00:00
Tor Lillqvist
cc8adfaeb8 Bug 538362 - Get Win32 icons back in the file chooser
2008-06-16  Tor Lillqvist  <tml@novell.com>

	Bug 538362 - Get Win32 icons back in the file chooser

	* gcontenttype.c (g_content_type_get_icon): Look up the icon
	corresponding to a file extension in the Registry. Patch by Hans
	Breuer.
	(get_registry_classes_key): Handle also REG_EXPAND_SZ type values.
	
2008-06-16  Tor Lillqvist  <tml@novell.com>

	Patches by Hans Breuer:

	* glocalfile.c (is_xp_or_later): Handle compiling against older
	SDK headers with missing VerifyVersionInfo().  Conditioned on
	_MSC_VER, but should probably use some better test.
	* glocalfile.c (g_local_file_query_filesystem_info): Don't test
	uninitialised statfs_result variable on Win32.



svn path=/trunk/; revision=7049
2008-06-16 13:23:14 +00:00
Michael Natterer
a4427bfff5 chain up unconditionally in finalize() and dispose(). Also don't
2008-06-16  Michael Natterer  <mitch@imendio.com>

	* *.c: chain up unconditionally in finalize() and dispose(). Also
	don't dereference these function pointers when calling them since
	that has no meaning at all.


svn path=/trunk/; revision=7048
2008-06-16 09:54:04 +00:00
Ross Burton
b207146976 Put my changelog entries in the right changelog, whoops
svn path=/trunk/; revision=7047
2008-06-16 09:31:20 +00:00
Michael Natterer
4622ed8cfc changed return value to const gchar* to fix warning.
2008-06-16  Michael Natterer  <mitch@imendio.com>

	* glib/goption.c (dgettext_swapped): changed return value to
	const gchar* to fix warning.


svn path=/trunk/; revision=7046
2008-06-16 09:25:57 +00:00
Ross Burton
17ac5f4dfb Remove check for dispose implementation as it annoys Emmanuele.
2008-06-16  Ross Burton  <ross@burtonini.com>

	* gio/gfileenumerator.c:
	Remove check for dispose implementation as it annoys Emmanuele.

svn path=/trunk/; revision=7045
2008-06-16 09:16:25 +00:00
Ross Burton
3480685d4e Bug 536252 – GFileEnumerator should allow access to the containing GFile
2008-06-16  Ross Burton  <ross@burtonini.com>

	Bug 536252 – GFileEnumerator should allow access to the containing
	GFile
	
	* gio/gfileenumerator.c:
	* gio/gfileenumerator.h:
	* gio/gfile.h:
	Add g_file_enumerator_get_container() and a container writeable
	construct-only property.  Also shuffle around typedefs to make it
	compile.
	
	* gio/glocalfileenumerator.c:
	* gio/glocalfileenumerator.h:
	* gio/glocalfile.c:
	Instead of a string filename take a GFile in the constructor and
	use it to set the container property.
	
	* gio/gio.symbols:
	* docs/reference/gio/gio-sections.txt:
	Update with new API.

svn path=/trunk/; revision=7044
2008-06-16 08:49:08 +00:00
Matthias Clasen
dd24f9957c Make includes more uniform
svn path=/trunk/; revision=7043
2008-06-16 04:36:03 +00:00
Matthias Clasen
666185a4fd Additions
svn path=/trunk/; revision=7042
2008-06-15 01:50:24 +00:00
Matthias Clasen
b0c9ea5ca3 Move docs around
svn path=/trunk/; revision=7041
2008-06-15 00:49:30 +00:00
Matthias Clasen
9c50a730e7 Document break types
svn path=/trunk/; revision=7040
2008-06-15 00:20:03 +00:00
Matthias Clasen
113f3d318a Add docs
svn path=/trunk/; revision=7039
2008-06-15 00:04:59 +00:00
Matthias Clasen
7ba2244a2d Add docs
svn path=/trunk/; revision=7038
2008-06-15 00:03:54 +00:00
Matthias Clasen
4c78992dbf Don't leak the pipes to child processes. Patch by Thiago Macieira.
* glib/gmain.c (g_main_context_init_pipe): Don't leak the
        pipes to child processes. Patch by Thiago Macieira.


svn path=/trunk/; revision=7037
2008-06-13 14:11:03 +00:00
Hans Breuer
43eeb244ac to get the default translation target on win32 use g_win32_get_locale()
2008-06-13  Hans Breuer  <hans@breuer.org>

	* glib/gstrfuncs.c : to get the default translation target on
	win32 use g_win32_get_locale() instead of setlocale(LS_MESSAGES,NULL)
	Fixes bug #538044

	* glib/makefile.msc.in gio/makefile.msc : updated

svn path=/trunk/; revision=7036
2008-06-13 08:05:33 +00:00
Yevgen Muntyan
e5347891fe Use less fancy unicode filenames, so the test doesn't fail on Mac OS X
2008-06-12  Yevgen Muntyan  <muntyan@tamu.edu>

	* tests/live-g-file.c (sample_struct):
        Use less fancy unicode filenames, so the test doesn't fail
        on Mac OS X (#531476).


svn path=/trunk/; revision=7035
2008-06-13 03:56:26 +00:00
Matthias Clasen
81a906be99 bump version
svn path=/trunk/; revision=7034
2008-06-12 18:39:50 +00:00
Matthias Clasen
135bb794fd 2.17.2
svn path=/trunk/; revision=7032
2008-06-12 18:37:44 +00:00
Matthias Clasen
67239cb92c Bump version
svn path=/trunk/; revision=7031
2008-06-12 17:23:35 +00:00
Matthias Clasen
6427d30d1f 2.17.1
svn path=/trunk/; revision=7029
2008-06-12 17:21:49 +00:00
Matthias Clasen
8f77d0cbd1 additions
svn path=/trunk/; revision=7028
2008-06-12 15:47:26 +00:00
Matthias Clasen
c304ebc0de Remove mention of G_WIN32_PRETEND_WIN9X
svn path=/trunk/; revision=7027
2008-06-12 12:59:28 +00:00
Ross Burton
98e1e4afdd Add g_file_make_directory_with_parents.
2008-06-12  Ross Burton  <ross@burtonini.com>

	* gio/gio-sections.txt:
	Add g_file_make_directory_with_parents.

svn path=/trunk/; revision=7026
2008-06-12 10:51:34 +00:00
Matthias Clasen
ca72690041 Testing documentation fixups
svn path=/trunk/; revision=7025
2008-06-12 06:20:04 +00:00
Matthias Clasen
52e1e9304a Documentation fixups
svn path=/trunk/; revision=7024
2008-06-12 06:18:14 +00:00
Matthias Clasen
c4af067eee Tiny doc fix
svn path=/trunk/; revision=7023
2008-06-12 03:55:32 +00:00
Matthias Clasen
273f7036f1 Remove an erroneous @returns
svn path=/trunk/; revision=7022
2008-06-12 03:25:56 +00:00
Matthias Clasen
dcc8b76a34 updates
svn path=/trunk/; revision=7021
2008-06-12 03:15:42 +00:00
Behdad Esfahbod
e0916c3f54 Bug 503071 – Application direction changes to right to left even if
2008-06-11  Behdad Esfahbod  <behdad@gnome.org>

        Bug 503071 – Application direction changes to right to left even if
        theres no translation

        * glib/gi18n-lib.h:
        * glib/glib.symbols:
        * glib/gstrfuncs.h:
        * glib/gstrfuncs.c:
        Add new functions g_dgettext() and g_dngettext().

        * glib/gutils.c (glib_gettext):
        * glib/gfileutils.c (g_format_size_for_display):
        * glib/goption.c (dgettext_swapped):
        Use the new functions.


svn path=/trunk/; revision=7020
2008-06-11 23:37:49 +00:00
Matthias Clasen
8882576e90 hex, I mean it
svn path=/trunk/; revision=7019
2008-06-11 22:00:06 +00:00
Djihed Afifi
c0a1ec055e Updated Arabic Translation by Khaled Hosny.
svn path=/trunk/; revision=7018
2008-06-11 21:36:42 +00:00
Matthias Clasen
3305266a37 Use po/LINGUAS
svn path=/trunk/; revision=7017
2008-06-11 20:31:44 +00:00
A. Walton
52a03b97c6 Fix broken test case.
2008-06-11  A. Walton  <awalton@gnome.org>

	* tests/g-file.c (test_g_file_new_null):
	Fix broken test case.


svn path=/trunk/; revision=7016
2008-06-11 20:02:31 +00:00
Matthias Clasen
de09a5803a Handle strfxrm returning -1 a little better. Problem pointed out by Takao
* glib/gunicollate.c (g_utf8_collate_key): Handle strfxrm returning
        -1 a little better. Problem pointed out by Takao Fujiwara


svn path=/trunk/; revision=7015
2008-06-11 19:38:35 +00:00
Matthias Clasen
f532b61fea Fix make check
svn path=/trunk/; revision=7014
2008-06-11 18:58:56 +00:00
Matthias Clasen
4f2c99af79 Allow PLT entry for g_clear_error
svn path=/trunk/; revision=7013
2008-06-11 18:50:17 +00:00
Matthias Clasen
3d89a7781b Add Since tag to goffset
svn path=/trunk/; revision=7012
2008-06-11 18:35:38 +00:00
Matthias Clasen
40334783bc Fix typos Noticed by Areg Beketovski
* glib/tmpl/macros_misc.sgml:
        * gobject/tmpl/gclosure.sgml:
        * gobject/tmpl/gtype.sgml: Fix typos
        Noticed by Areg Beketovski


svn path=/trunk/; revision=7011
2008-06-11 18:25:44 +00:00
Tor Lillqvist
fc8ee1f68a g_win32_error_message() works fine for the Winsock WSA* error codes, too,
2008-06-11  Tor Lillqvist  <tml@novell.com>

	* glib/giowin32.c: g_win32_error_message() works fine for the
	Winsock WSA* error codes, too, so drop the winsock_error_message()
	function.


svn path=/trunk/; revision=7010
2008-06-11 18:06:46 +00:00
Matthias Clasen
f9f98f1c8b Fix a typo
svn path=/trunk/; revision=7009
2008-06-11 17:56:49 +00:00
Matthias Clasen
777df550ab more doc fixage
svn path=/trunk/; revision=7008
2008-06-11 17:47:53 +00:00
Matthias Clasen
5b12bf33a4 Improve docs
svn path=/trunk/; revision=7007
2008-06-11 17:03:11 +00:00
Matthias Clasen
74820f48db Improve docs
svn path=/trunk/; revision=7006
2008-06-11 17:00:57 +00:00