Commit Graph

6241 Commits

Author SHA1 Message Date
Alexander Larsson
493cbfa607 Make new strings reuse old ones.
2008-02-25  Alexander Larsson  <alexl@redhat.com>

        * glocalfile.c:
	Make new strings reuse old ones.


svn path=/trunk/; revision=6581
2008-02-25 09:11:09 +00:00
Vincent van Adrighem
96b70c129a Translation updated by Tino Meinen.
2008-02-25  Vincent van Adrighem  <adrighem@gnome.org>

	* nl.po: Translation updated by Tino Meinen.

svn path=/trunk/; revision=6580
2008-02-25 08:59:14 +00:00
Daniel Nylander
d78e1b0c46 sv.po: Updated Swedish translation
svn path=/trunk/; revision=6579
2008-02-25 08:25:10 +00:00
Alexander Larsson
1d568f35d1 Implement trashing and filesystem::readonly for win32 (#517235) Patch from
2008-02-25  Alexander Larsson  <alexl@redhat.com>

        * glocalfile.c:
	Implement trashing and filesystem::readonly for win32 (#517235)
	Patch from Yevgen Muntyan


svn path=/trunk/; revision=6578
2008-02-25 08:15:35 +00:00
Tor Lillqvist
81419b53de Mention that the recent fix to the gspawn helper process
synchronization on Windows fixes #510664.
  

svn path=/trunk/; revision=6577
2008-02-24 22:53:52 +00:00
Tor Lillqvist
96c7abe76a Guard against _glib_get_installation_directory() returning NULL. In that
2008-02-24  Tor Lillqvist  <tml@novell.com>

	* glib/gspawn-win32.c: Guard against
	_glib_get_installation_directory() returning NULL. In that
	case, just use the name of the helper process executable
	without path.


svn path=/trunk/; revision=6576
2008-02-24 21:31:44 +00:00
Tor Lillqvist
17640e78d3 New internal function.
2008-02-24  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (_glib_get_installation_directory): New internal function.

	* glib/gspawn-win32.c: When spawning the helper process, use an
	explicit full path. (#518292)

	* glib/gspawn-win32.c
	* glib/gspawn-win32-helper.c: Fix race condition when using the
	helper process: When the helper process writes the handle of the
	actual started user process to the parent process, it must be
	duplicated in the parent process with DuplicateHandle() so that it
	is a valid handle in that process. However, if the helper process
	has happened to exit before the DuplicateHandle() call, the
	duplication will fail. Thus we must synchronise the helper
	process's exit. Use another pipe for this.

	Take care not to inherit the writing end of this pipe to the
	helper process. Also, in the helper process, take care not to
	inherit either of the pipes used for communication with the parent
	process to the started user process.


svn path=/trunk/; revision=6575
2008-02-24 21:15:47 +00:00
Åsmund Skjæveland
3bd512643d Updated Norwegian Nynorsk translation.
2008-02-24  Åsmund Skjæveland  <aasmunds@ulrik.uio.no>

	* nn.po: Updated Norwegian Nynorsk translation.

svn path=/trunk/; revision=6574
2008-02-24 16:34:26 +00:00
Åsmund Skjæveland
80e7af7662 Updated Norwegian Nynorsk translation.
2008-02-24  Åsmund Skjæveland  <aasmunds@ulrik.uio.no>

	* nn.po: Updated Norwegian Nynorsk translation.

svn path=/trunk/; revision=6573
2008-02-24 16:33:09 +00:00
Theppitak Karoonboonyanan
b65e73d68f Fix typo reported by Akom C.
2008-02-24  Theppitak Karoonboonyanan  <thep@linux.thai.net>

	* th.po: Fix typo reported by Akom C.


svn path=/trunk/; revision=6572
2008-02-24 12:09:14 +00:00
Tor Lillqvist
6eb2b42715 Use alertable wait functions so that I/O completion routines or user-mode
2008-02-24  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.c (g_poll) [Win32]: Use alertable wait functions so
	that I/O completion routines or user-mode Asynchronous Procedure
	Calls can be run. (#517484, Vlad Grecescu)


svn path=/trunk/; revision=6571
2008-02-24 01:46:42 +00:00
Tor Lillqvist
811b86fa56 Mention G_WIN32_DLLMAIN_FOR_DLL_NAME() will be deprecated in the future.
2008-02-24  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.h: Mention G_WIN32_DLLMAIN_FOR_DLL_NAME() will be
	deprecated in the future.

	* glib/gutils.c: Drop use of G_WIN32_DLLMAIN_FOR_DLL_NAME(). Use a
	minimal DllMain() instead that just saves the DLL handle.
	(g_win32_get_system_data_dirs_for_module, _glib_get_locale_dir)
	(get_module_share_dir): Use
	g_win32_get_package_installation_directory_of_module().


svn path=/trunk/; revision=6570
2008-02-24 01:07:41 +00:00
Tor Lillqvist
3af00194ea New function. Supersedes g_win32_get_package_installation_directory() and
2008-02-24  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.c
	(g_win32_get_package_installation_directory_of_module): New
	function. Supersedes g_win32_get_package_installation_directory()
	and g_win32_get_package_installation_directory().

	It makes more sense to have the function for this functionality
	take a HMODULE as parameter instead of DLL name. The typical use
	scenario has been to have a DllMain() function that retrieves the
	full pathname for the DLL in question, and saves just the basename
	of that. Then later code passes that saved dll basename to
	g_win32_get_package_installation_directory(), which retrieves the
	corresponding DLL handle, and then retrieves up its full
	pathname. (Which DLlMain() already had.) It is less convoluted to
	have a DllMain() that just saves the DLL handle, and then when
	needed call this function to get the corresponding installation
	folder.

	(get_package_directory_from_module): Use
	g_win32_get_package_installation_directory_of_module().

	(g_win32_get_package_installation_directory)
	(g_win32_get_package_installation_subdirectory): Mention these
	functions will be deprecated and recommend using
	g_win32_get_package_installation_directory_of_module() instead.
	
	* glib/gwin32.h: Declare
	g_win32_get_package_installation_directory_of_module().

	* glib/glib.symbols: Add it.


svn path=/trunk/; revision=6569
2008-02-24 00:38:01 +00:00
Gabor Kelemen
3de12eda8a Translation updated
2008-02-23  Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Translation updated


svn path=/trunk/; revision=6568
2008-02-23 21:55:49 +00:00
Priit Laes
9fd0cae872 Estonian translation update by Ivar Smolin.
2008-02-23  Priit Laes  <plaes@svn.gnome.org>

	* et.po: Estonian translation update by Ivar Smolin.

svn path=/trunk/; revision=6567
2008-02-23 08:29:08 +00:00
Matthias Clasen
28c2d53e1d Updates
svn path=/trunk/; revision=6566
2008-02-23 06:59:06 +00:00
Matthias Clasen
cd2bfb722e Add new symbols
svn path=/trunk/; revision=6565
2008-02-23 06:34:41 +00:00
Matthias Clasen
6aa117bf51 Typo fix
svn path=/trunk/; revision=6564
2008-02-23 06:34:00 +00:00
Matthias Clasen
a24587ad09 Return NULL when the key is not found. (#513171, Дилян
2008-02-23  Matthias Clasen  <mclasen@redhat.com> 

        * glib/gkeyfile.c (g_key_file_get_string_list): Return
        NULL when the key is not found.  (#513171, Дилян Палаузов)



svn path=/trunk/; revision=6563
2008-02-23 05:25:27 +00:00
Matthias Clasen
11d7305d5a Don't test user directories for being non-null. (#517084, Yevgen Muntyan)
2008-02-23  Matthias Clasen  <mclasen@redhat.com>

        * tests/testglib.c: Don't test user directories for being
        non-null.  (#517084, Yevgen Muntyan)

svn path=/trunk/; revision=6562
2008-02-23 05:14:34 +00:00
Matthias Clasen
7c7cd785f5 Documentation updates
svn path=/trunk/; revision=6561
2008-02-23 05:06:18 +00:00
Matthias Clasen
f8336c3fa8 Small doc fix
svn path=/trunk/; revision=6560
2008-02-23 05:05:39 +00:00
Matthias Clasen
5eec5db7b5 Updates
svn path=/trunk/; revision=6559
2008-02-23 05:04:13 +00:00
Luca Ferretti
1f350a9abf Updated Italian translation.
2008-02-22  Luca Ferretti  <elle.uca@libero.it>

	* it.po: Updated Italian translation.

svn path=/trunk/; revision=6558
2008-02-22 16:01:42 +00:00
Alexander Larsson
5f6ccf9a3f Look at old-style gnome mime icon names too, as many have not moved to the
2008-02-22  Alexander Larsson  <alexl@redhat.com>

	* gcontenttype.c (g_content_type_get_icon):
	Look at old-style gnome mime icon names too, as many
	have not moved to the new style.


svn path=/trunk/; revision=6557
2008-02-22 14:56:50 +00:00
Jonh Wendell
e1a9179b0f Brazilian Portuguese translation updated by Og Maciel.
2008-02-22  Jonh Wendell  <jwendell@gnome.org>

	* pt_BR.po: Brazilian Portuguese translation updated by Og Maciel.

svn path=/trunk/; revision=6556
2008-02-22 11:48:52 +00:00
Vincent van Adrighem
4b11b0ffd8 Translation updated by Tino Meinen.
2008-02-22  Vincent van Adrighem  <adrighem@gnome.org>

	* nl.po: Translation updated by Tino Meinen.

svn path=/trunk/; revision=6555
2008-02-22 07:50:24 +00:00
Matthias Clasen
f3144c7efe Doc fixes
svn path=/trunk/; revision=6554
2008-02-21 18:20:17 +00:00
Yang Zhang
31723eb78e Updated zh_CN translation from manphiz
svn path=/trunk/; revision=6553
2008-02-21 13:51:11 +00:00
Tor Lillqvist
b60f5cf11b glib/gutf8.c (g_get_charset) glib/gconvert.c (g_locale_from_utf8) Clarify
2008-02-21  Tor Lillqvist  <tml@novell.com>
	
	* glib/gutf8.c (g_get_charset)
	* glib/gconvert.c (g_locale_from_utf8)
	* docs/reference/glib/running.sgml: Clarify character set
	issues on Windows.


svn path=/trunk/; revision=6551
2008-02-21 13:07:49 +00:00
David Zeuthen
bfda430eff Implement this function by moving bits from glocalfileinfo.c
2008-02-21  David Zeuthen  <davidz@redhat.com>

	* glocalfileinfo.c: (_g_local_file_info_get):
	* gcontenttype.c:
	(g_content_type_get_icon): Implement this function by
	moving bits from glocalfileinfo.c
	(g_content_type_get_description): Unalias before getting
	description (#517687)

	* gfile.c: (g_file_class_init),
	(g_file_query_filesystem_info_async),
	(g_file_query_filesystem_info_finish),
	(query_filesystem_info_data_free),
	(query_filesystem_info_async_thread),
	(g_file_real_query_filesystem_info_async),
	(g_file_real_query_filesystem_info_finish):
	* gfile.h: Implement async version of
	g_file_query_filesystem_info()

	* gfileinfo.h: Add new attributes for filesystem::use-preview

	* gio.symbols: Update

	* gthemedicon.c: (g_themed_icon_append_name):
	* gthemedicon.h: Add new new convenience function.

	* gunionvolumemonitor.c: (g_union_volume_monitor_dispose),
	(get_mounts), (get_volumes), (get_connected_drives),
	(get_volume_for_uuid), (get_mount_for_uuid),
	(g_union_volume_monitor_init), (populate_union_monitor),
	(g_volume_monitor_get), (_g_mount_get_for_mount_path),
	(g_volume_monitor_adopt_orphan_mount):
	* gvolumemonitor.c:
	* gvolumemonitor.h: Use recursive locks so it's safe for volume
	monitor implementations to call into the main volume monitor. Also
	separate object initialization and volume monitor initialization
	such that non-native volume monitors can properly adopt their
	mounts away.


svn path=/trunk/; revision=6550
2008-02-21 12:35:05 +00:00
Alexander Larsson
bed0b36546 Fix doc typo
2008-02-21  Alexander Larsson  <alexl@redhat.com>

        * gfile.c:
	Fix doc typo


svn path=/trunk/; revision=6549
2008-02-21 11:44:48 +00:00
Alexander Larsson
db2615807c Fix doc typo
2008-02-21  Alexander Larsson  <alexl@redhat.com>

        * gfile.c:
	Fix doc typo


svn path=/trunk/; revision=6548
2008-02-21 11:43:55 +00:00
Alexander Larsson
4fb597e5f9 Add more documentation about how GFiles work (from #517086)
2008-02-21  Alexander Larsson  <alexl@redhat.com>

        * gfile.c:
	Add more documentation about how GFiles work (from #517086)


svn path=/trunk/; revision=6547
2008-02-21 10:21:11 +00:00
Alexander Larsson
6dc9b7ee00 Add new g_file_has_prefix that does the same as g_file_contains_file.
2008-02-21  Alexander Larsson  <alexl@redhat.com>

        * gfile.[ch]:
        * gio.symbols:
	Add new g_file_has_prefix that does the same as g_file_contains_file.
	Deprecate g_file_contains_file and add a macro that converts
	it to g_file_has_prefix.
	The reason for this change is that the contains_file() name seems to
	imply that this does more work than what it does, but its really only
	a name match (from #517086)
	
        * gdummyfile.c:
        * glocalfile.c:
        * tests/g-file.c:
	Update to match the above change.


svn path=/trunk/; revision=6546
2008-02-21 09:09:59 +00:00
Benjamin Otte
03c51e95a7 even more cases of not returning in error path
2008-02-20  Benjamin Otte  <otte@gnome.org>

	* gfile.c: (g_file_mount_mountable), (g_file_unmount_mountable),
	(g_file_eject_mountable):
	even more cases of not returning in error path


svn path=/trunk/; revision=6545
2008-02-20 18:52:10 +00:00
Benjamin Otte
ea6cf346d6 return from function in error path.
2008-02-20  Benjamin Otte  <otte@gnome.org>

        * gfile.c: (g_file_mount_mountable):
	return from function in error path.

svn path=/trunk/; revision=6544
2008-02-20 18:45:18 +00:00
Tor Lillqvist
87d23f18ec Change the g_error() to g_message() to avoid stopping on warnings. At
2008-02-20  Tor Lillqvist  <tml@novell.com>

	* glib/gtestutils.c (g_test_trap_fork) [Win32]: Change the
	g_error() to g_message() to avoid stopping on warnings. At least
	now testglib runs to completion and the old tests in it get
	exercised even if the newfangled ones don't.
	(g_test_trap_assertions) [Win32]: Bypass on Windows.


svn path=/trunk/; revision=6542
2008-02-19 22:53:58 +00:00
Yannig MARCHEGAY
121f43e54d Updated Occitan translation
svn path=/trunk/; revision=6541
2008-02-19 22:33:50 +00:00
Yannig MARCHEGAY
38c3f95411 Updated Occitan translation
svn path=/trunk/; revision=6540
2008-02-19 22:31:52 +00:00
Yannig MARCHEGAY
62c7120694 Updated Occitan translation
svn path=/trunk/; revision=6539
2008-02-19 22:12:09 +00:00
Sven Neumann
becae8108c moved ChangeLog entries to their proper location in docs/reference
svn path=/trunk/; revision=6537
2008-02-19 13:30:26 +00:00
Sylvain Pasche
add0a2f496 Remove trailing coma in GMountMountFlags struct
2008-02-18  Sylvain Pasche <sylvain.pasche@gmail.com>

        * gfile.h:
	 Remove trailing coma in GMountMountFlags struct


svn path=/trunk/; revision=6536
2008-02-19 08:49:16 +00:00
Ignacio Casal Quinteiro
b5a4dca963 Updated Galician Translation.
svn path=/trunk/; revision=6535
2008-02-18 21:24:51 +00:00
Matej Urbančič
802eef377a Updated Slovenian translation
svn path=/trunk/; revision=6534
2008-02-18 17:46:31 +00:00
Alexander Larsson
3b1b6a9722 Use g_unlink/g_rename instead of unlink/rename; do not pass raw filenames
2008-02-18  Alexander Larsson  <alexl@redhat.com>

        * glocalfile.c:
        * glocalfileinfo.c:
        * glocalfileoutputstream.c:
	Use g_unlink/g_rename instead of unlink/rename;
	do not pass raw filenames to g_set_error. (#517239)
	Patch from Yevgen Muntyan.


svn path=/trunk/; revision=6533
2008-02-18 15:35:16 +00:00
Nguyễn Thái Ngọc Duy
42f01287c1 Updated Vietnamese translation
2008-02-18  Nguyễn Thái Ngọc Duy <pclouds@gmail.com>

	* vi.po: Updated Vietnamese translation


svn path=/trunk/; revision=6532
2008-02-18 12:42:04 +00:00
Alexander Larsson
b221d1b36d Open files with O_BINARY on windows. (#517140)
2008-02-18  Alexander Larsson  <alexl@redhat.com>

        * glocalfile.c:
        * glocalfileoutputstream.c:
	Open files with O_BINARY on windows. (#517140)


svn path=/trunk/; revision=6531
2008-02-18 10:10:58 +00:00
Ilkka Tuohela
ee9020e45e Updated Finnish translation
svn path=/trunk/; revision=6530
2008-02-18 04:36:35 +00:00
Yair Hershkovitz
49201a0f1b updated hebrew translation
svn path=/trunk/; revision=6529
2008-02-17 16:58:52 +00:00