2004-08-05  Mariano Surez-Alvarez <mariano@gnome.org>

	* gnome-desktop-item.c: move the declaration of environ out of a
	preprocessor conditional block. Fixes bug #149340.

2004-08-04  Vincent Untz  <vincent@vuntz.net>

	* gnome-desktop-item.c: (gnome_desktop_item_set_strings): the last
	argument of g_strconcat should be NULL. Should fix bug #146526.

2004-08-04  Mark McLoughlin  <mark@skynet.ie>

	* gnome-desktop-item.c: (ditem_execute): free
	the argument vector. Fixes bug #149249.

==================== 2.7.90 ====================

==================== 2.7.4 ====================

2004-07-19  Mark McLoughlin  <mark@skynet.ie>

	Hopefully a good enough fix for bug #136278.
	
	* gnome-desktop-item.c:
	(ditem_execute): pass the value of gtk_get_current_event_time()
	to sn_launcher_context_initiate().
	
2004-07-19  Mark McLoughlin  <mark@skynet.ie>
	
	* gnome-desktop-item.c: (make_environment_for_screen):
	copy and paste this from egg-spawn.c. Its in gdk now,
	but this particular function isn't part of the public
	API.

	* Makefile.am, egg-spawn.[h]: wipe the egg from my face.

==================== 2.7.3 ====================

==================== 2.7.1 ====================

2004-05-13  Mark McLoughlin  <mark@skynet.ie>

	Patch from Jorn Baayen <jorn@nl.linux.org> in bug #135481.

	* gnome-ditem-edit.c: (make_advanced_page): Make the languages
	treeview use GTK_SHADOW_IN.

==================== 2.6.1 ====================

==================== 2.6.0.1 ====================

==================== 2.6.0 ====================

==================== 2.5.92 ====================

==================== 2.5.91 ====================

2004-03-02  Mark McLoughlin  <mark@skynet.ie>

	Patch from Brian Skahan <bskahan@etria.com> to make the launcher
	editor use GtkFileChooser. Fixes bug #135965.

	* gnome-ditem-edit.c: (make_easy_page): Use new FileChooser in the
	  entry
	    
2004-02-29  Mark McLoughlin  <mark@skynet.ie>

	Fixes bug #135629. Basically, dragging and dropping a file
	from an NFS mounted dir onto a launcher using '%f' wouldn't
	work because we were using uri_is_local() rather than checking
	if its a file: URI. Root cause identified by Dan Williams.

	* gnome-desktop-item.c: Don't use uri_is_local(), use
	get_local_path() which has the semantics we require. Re-work
	the code substitution code substantially to cleanup and not
	have several different functions with only slight differences.

==================== 2.5.90 ====================

==================== 2.5.5 ====================

==================== 2.5.4 ====================

2004-01-16  Mark McLoughlin  <mark@skynet.ie>

	Patch from The Written Word in bug #131607.

	* gnome-ditem-edit.c: include libgnome/gnome-i18n.h

==================== 2.5.3 ====================

==================== 2.5.2 ====================

==================== 2.5.1 ====================

2003-11-11  Mark McLoughlin  <mark@skynet.ie>

	* Makefile.am: use $(DISABLE_DEPRECATED_FLAGS).

2003-11-03  Padraig O'Briain  <padraig.obriain@sun.com>

	* gome-ditem-edit.c: Remove unnecessary accessibility code.
	Fix bug #126199.

==================== 2.4.1.1 ====================

2003-10-15  Mark McLoughlin  <mark@skynet.ie>

	Fix for bug #122935 from Danilo Segan.

	* gnome-desktop-item.c: (insert_key): remove the "modifier
	whacking" code. This makes the matching conformant to the
	statement "If LC_MESSAGES does not have a MODIFIER  field,
	then no key with a modifier will be matched" in the
	desktop-entry-spec.

==================== 2.4.1 ====================

Fri Sep 19 15:49:13 2003  George Lebl <jirka@5z.com>

	* gnome-hint.c: use g_random_int_range instead of srandom and
	  random.  Fixes compile warning since the headers weren't right
	  I suppose and is nicer overall anyway.

2003-09-19  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>

	* gnome-desktop-item.c (gnome_desktop_item_new): 
	use translated message for "No name" in launcher GUI, but
	No string break. Fix bug #122386.
==================== 2.4.0 ====================

==================== 2.3.90 ====================

==================== 2.3.7 ====================

==================== 2.3.6.1 ====================

==================== 2.3.6 ====================

Tue Aug 05 15:22:05 2003  George Lebl <jirka@5z.com>

	* gnome-ditem-edit.c: fix the theme vs. custom icon bug here instead
	  of the panel.  This is the proper place to fix it anyway.  Also
	  theme the case where there is no icon set first.  The icon
	  entry should die and there should be a proper icon selection widget
	  here though that handles.

==================== 2.3.4 ====================

==================== 2.3.3.1 ====================

2003-06-19  Dennis Cranston <dennis_cranston at yahoo com>

	* gnome-ditem-edit.c:  Remove mnemonic conflict.

2003-06-18  Dennis Cranston <dennis_cranston at yahoo com>

	* gnome-ditem-edit.c: Adjust widget padding according to
	the HIG. Add many mnemonics and use GTK_SHADOW_NONE for 
	the scrolled window.

==================== 2.3.3 ====================

2003-06-02  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>

	* gnome-desktop-item.c (ditem_execute):
	convert .desktop contents to filesystem's filenames.(#107700)

2003-05-09  Balamurali Viswanathan <balamurali.viswanathan@wipro.com>

	* gnome-desktop-item.c: (do_percent_bubst): Maintian the 
	special characters. Fixes 103012 
 
2003-03-11  Mark McLoughlin  <mark@skynet.ie>

	* gnome-ditem-edit.c: (setup_option): fix blooper I made
	when committing a patch from Arvind. Tracked down by
	Kalle Olavi Niemitalo in bug #130240.

2003-03-10  Mark McLoughlin  <mark@skynet.ie>

	* gnome-desktop-item.c: (make_spawn_environment_for_sn_context):
	patch from  fourdan@xfce.org for fix memory corruption when
	DESKTOP_STARTUP_ID is already defined. bug #105834.

2003-03-06  Andrew Sobala  <aes@gnome.org>

	* gnome-desktop-item.c: (gnome_desktop_item_new_from_uri): remove
	mime type checking. Fixes bug #105222.

2003-02-27  Arvind Samptur <arvind.samptur@wipro.com>
	* gnome-ditem-edit.c (translations_add) : Create a GnomeDesktopItem
	if it does not exists before checking up for locale stuff.
	Fixes the crash. #107120

2003-01-22  Dan Mills  <thunder@ximian.com>
	* Makefile.am: add gnome-desktop-i18n.h to
	libgnome_desktop_2_la_SOURCES.

2003-01-17  Havoc Pennington  <hp@redhat.com>

	* gnome-desktop-item.c (ditem_execute): fix the previous fix, 
	we weren't setting DESKTOP_STARTUP_ID properly because we need to
	do that after we set the binary name and initiate the sequence
	(make_spawn_environment_for_sn_context): handle case where
	DESKTOP_STARTUP_ID is already set, since we may now call this
	function more than once.

2003-01-16  Havoc Pennington  <hp@redhat.com>

	* gnome-desktop-item.c (ditem_execute): set the "binary name"
	field of the startup notification to just argv[0], not the whole
	command line. Required moving initiation later in the function.

2002-12-05  Havoc Pennington  <hp@redhat.com>

	* gnome-desktop-item.c (make_spawn_environment_for_sn_context):
	the array was allocated one too small. Oops.

2002-12-03  Mark McLoughlin  <mark@skynet.ie>

	* gnome-desktop-item.c: (ditem_execute): fix bogus free()s.

2002-12-03  Mark McLoughlin  <mark@skynet.ie>

	* egg-spawn.c: (egg_make_spawn_environment_for_screen):
	sync with libegg.

2002-11-30  Havoc Pennington  <hp@pobox.com>

	* gnome-desktop-item.c (ditem_execute): doh, we have to initiate
	the startup sequence prior to exec'ing the child, otherwise we
	can't set DESKTOP_STARTUP_ID.
	(ditem_execute): end startup sequence if it fails
	(ditem_execute): add to envp instead of using child setup func
	(ditem_execute): get localized name from the desktop file, not 
	non-localized.
	(ditem_execute): add a timeout for the startup sequence as a last 
	fallback if it doesn't properly end, and no one else times it out.

2002-10-10  Satyajit Kanungo <satyajit.kanungo@wipro.com>

	* gnome-desktop-item.c: Added a new API gnome_desktop_item_drop_uri_list_with_env()
	  which passes the child's environment to the execution of the specified item.
	  Same as gnome_desktop_item_drop_uri_list() with an additional parameter env.
	  To be used by gnome panel  for launching the item in different head.
	  Fixes bug #94258.

	* gnome-desktop-item.h: Added the declarion of the above API.

2002-11-28  Mark McLoughlin  <mark@skynet.ie>

	Add a ditem launch variant with screen and
	workspace args for startup notification support.

	* Makefile.am, egg-spawn.[ch]: add egg-spawn
	files to the build.

	* gnome-desktop-item.[ch]:
	(ditem_execute): add screen and workspace args.
	(gnome_desktop_item_launch_on_screen_with_env): move
	from launch_with_env.
	(gnome_desktop_item_launch),
	(gnome_desktop_item_launch_with_env),
	(gnome_desktop_item_launch_on_screen):
	call on_screen_with_env.

2002-11-27  Mark McLoughlin  <mark@skynet.ie>

	* gnome-ditem-edit.c: (setup_option):
	s/MimeType/MIME Type/. #83965.

2002-10-31  Havoc Pennington  <hp@pobox.com>

	* gnome-desktop-2.0.pc.in (Requires): add
	@STARTUP_NOTIFICATION_PACKAGE@

2002-10-31  Mark McLoughlin  <mark@skynet.ie>

	* gnome-desktop-item.c: (ditem_execute): build fixes.

2002-10-29  Havoc Pennington  <hp@pobox.com>

	* gnome-desktop-item.c (ditem_execute): add startup notification
	support.

2002-09-27  Alexander Larsson  <alexl@redhat.com>

	* Makefile.am:
	* gnome-icon-loader.c:
	* gnome-icon-loader.h:
	* gnome-theme-parser.c:
	* gnome-theme-parser.h:
	Removed. Moved to libgnomeui
	
	* gnome-desktop-item.c:
	Update to use the stuff moved to libgnomeui

2002-09-18  Alexander Larsson  <alexl@redhat.com>

	* test-icon-theme.c:
	Test display name

	* gnome-icon-loader.[ch]:
	Added icon display name support
	Removed unused code.

2002-09-12  Alexander Larsson  <alexl@redhat.com>

	* gnome-icon-loader.[ch]:
	Add gnome_icon_loader_get_allow_svg.

2002-09-11  Alexander Larsson  <alexl@redhat.com>

	* gnome-icon-loader.[ch]:
	Add gnome_icon_loader_has_icon and gnome_icon_loader_lookup_icon_extended.
	Change GnomeIconData to have simpler memory management, nothing is using
	it yet anyway.

2002-08-06  Mark McLoughlin  <mark@skynet.ie>

	* gnome-icon-loader.c:
	(setup_gconf_handler): unref the GConfClient.
	(remove_gconf_handler): ditto.
	(gnome_icon_loader_finalize): use remove_gconf_handler.

2002-08-06  Mark McLoughlin  <mark@skynet.ie>

	* Makefile.am: define pixmaps and icons dir.

	* gnome-icon-loader.c:
	(remove_gconf_handler): remove unused variables.
	(gnome_icon_loader_init): add pixmaps and icons
	dir for the prefix we are installed into.
	(load_themes): don't stat the icons, we don't
	do that for themed icons anyway. Actually check
	which format we are favouring, should fix #89245.
	(suffix_from_name): impl.
	(scan_directory): use it here.

2002-07-31  Michael Meeks  <michael@michael.home>

	* gnome-desktop-item.c (ditem_save): don't
	dereference a bogus handle, if the ditem open 
	for write doesn't succeed [ no permission eg. ]

2002-07-30  Mark McLoughlin  <mark@skynet.ie>

	* Makefile.am: pass -version-info $(LT_VERSION)
	to libtool.

2002-07-28  Frank Worsley  <fworsley@shaw.ca>

	* gnome-desktop-item.c: (ditem_execute),
	(gnome_desktop_item_launch_with_env):
	* gnome-desktop-item.h:
	add new APPEND_PATHS launch flag

Thu Jul 25 14:56:20 2002  George Lebl <jirka@5z.com>

	* gnome-desktop-item.c:  Remove numeric canonization as it was
	  changing things and was likely having other effects besides that.
	  Also truncate the file after opening it before writing it.  Fixes
	  #84196

2002-07-12  Mark McLoughlin  <mark@skynet.ie>

	Apply modified version of a patch from Frank Worsley
	to make sure the 'easy' page is updated when editing
	the current locale in the advanced page. #87451.

	* gnome-desktop-item.[ch]: (gnome_desktop_item_get_attr_locale):
	implement method to find the locale the is used for a given
	attribute.

	* gnome-ditem-edit.c: (translations_add): compare this to the locale
	we are editing.

2002-07-12  Mark McLoughlin  <mark@skynet.ie>

	* gnome-desktop-item.c: (type_from_string): be a bit
	smarter with strcmps, switch on the first letter and
	then compare.

2002-06-19  Arvind Samptur <arvind.samptur@wipro.com>

	* gnome-ditem-edit.c: (setup_option) Get the
	menuitem index and set the option menu with
	gtk_option_menu_set_history. Fixes #85782

2002-07-10  jacob berkman  <jacob@ximian.com>

	* gnome-desktop-item.c (gnome_desktop_item_new_from_uri): 
	(gnome_desktop_item_new_from_uri):
	(gnome_desktop_item_get_file_status):
	(gnome_desktop_item_set_location): follow symlinks (bug #86755)

2002-07-09  Mark McLoughlin  <mark@skynet.ie>

        * gnome-desktop-item.h, gnome-ditem-edit.c:
	Patch from Glynn Foster to use X-GNOME-DocPath
	instead of DocPath.  Fixes #87431.

2002-05-21  Jorn Baayen  <jorn@nl.linux.org>

	* libgnome-desktop/gnome-ditem-edit.c: use GTK_SHADOW_IN
	for the language treeview, remove useless and inconsistent
	frames.

2002-06-21  Mark McLoughlin  <mark@skynet.ie>

	* gnome-desktop-item.[ch]:
	(ditem_execute): pass in envp.
	(gnome_desktop_item_launch): use_with_env.
	(gnome_desktop_item_launch_with_env): new variant
	function to allow enviroment for launched command
	to be specified.

2002-06-18  Mark McLoughlin  <mark@skynet.ie>

        * Makefile.am: use $(prefix)/$(DATADIRNAME)/locale instead
        of $datadir/locale for locale directory location. Reported
        by Hidetoshit Tajima in #83623.

2002-05-23  Alex Larsson <alexl@redhat.com>

	reviewed by: mark@skynet.ie

	* gnome-desktop-item.c: (gnome_desktop_item_find_icon),
	(gnome_desktop_item_get_icon):
	* gnome-desktop-item.h:
	* gnome-ditem-edit.c: (gnome_ditem_edit_sync_display):
	Use gnomeIconLoader to load icons.
	Changes the API, but if you don't know what you need to
	do, just pass NULL for icon_loader to gnome_desktop_item_get_icon.

2002-05-20  Alex Larsson <alexl@redhat.com>

	* gnome-icon-loader.c: (gnome_icon_loader_init),
	(gnome_icon_loader_set_allow_svg), (insert_theme), (load_themes),
	(scan_directory), (theme_subdir_load):
	* gnome-icon-loader.h:
	Add flag to control if svg:s are allowed.
	Implement theme inheritance (oops!)

2002-05-20  Alex Larsson <alexl@redhat.com>

	* gnome-icon-loader.c: 
	* gnome-icon-loader.h:
	Read default theme from gconf.
	Emit new "changed" signal when the icon loader changes.
	Change set_current_theme to set_custom_theme (overrides
	the system setting).
	
	* test-icon-theme.c: (main):
	Update to new api

2002-05-16  Alex Larsson <alexl@redhat.com>

	* gnome-icon-loader.h:
	* gnome-icon-loader.c:
	(gnome_icon_loader_get_search_path),
	(gnome_icon_loader_append_search_path),
	(gnome_icon_loader_prepend_search_path):
	Add new functions for path handling.
	
	* gnome-theme-parser.c:
	* gnome-theme-parser.h:
	Add copyright info.
	Remove some declarations of unimplemented functions.

2002-05-14  Alex Larsson  <alexl@redhat.com>

	* gnome-icon-loader.c (insert_theme, theme_subdir_load):
	Fix stupid strcmp bugs.

2002-05-11  Kjartan Maraas  <kmaraas@gnome.org>

	* test-ditem.c: #include <config.h>. Fixes #81418.
	From Hidetoshi Tajima <hidetoshi.tajima@sun.com>
	
2002-05-09  Alex Larsson <alexl@redhat.com>

	* Makefile.am:
	* gnome-icon-loader.c:
	* gnome-icon-loader.h:
	* gnome-theme-parser.c: 
	* gnome-theme-parser.h:
	* test-icon-theme.c:
	New files. Implements the common icon theme spec.
	http://www.freedesktop.org/standards/icon-theme-spec.html

Fri Apr 19 18:16:08 2002  George Lebl <jirka@5z.com>

	* gnome-desktop-item.c: Expand parameters before parse so that we
	  handle "%f" vs %f and such random fun.  Now we are likely very
	  similar to handling simple cases to KDE, though we handle quite
	  weird cases

	* test-ditem.c: add test cases.

Fri Apr 19 17:04:20 2002  George Lebl <jirka@5z.com>

	* gnome-desktop-item.c: For now ignore %m and %i.  This is broken,
	  and doesn't follow the spec but that's the only way to launch
	  all current KDE .desktops without breaking the spec.  This doesn't
	  fix the bug, just a temporary fix.  Perhaps it would be good if
	  both %m and %i just died, they are pretty useless to begin with.

Fri Apr 19 16:41:52 2002  George Lebl <jirka@5z.com>

	* gnome-ditem-edit.c: change the combo box to an option menu 1) this
	  has less weird semantics 2) only the standard types are allowed
	  here anyway.  Though we handle editting of files with a
	  non-standard type, just not creating one.

2002-04-15  Kjartan Maraas  <kmaraas@gnome.org>

	* gnome-ditem.edit.c: Add a call to bindtextdomain() to make it work
	in the case where you right click on something in a menu and edit it.
	Also makes localization work for the same right click menu.
	
Fri Apr 12 14:08:36 2002  George Lebl <jirka@5z.com>

	* gnome-ditem-edit.c: partly fix #75379, by changing the exec
	  label and not the type label (DOH!)

Fri Apr 12 13:17:21 2002  George Lebl <jirka@5z.com>

	* gnome-ditem-edit.c: The command box is now a GnomeFileEntry
	  so that we have a browse button

2002-03-28  Mark McLoughlin  <mark@skynet.ie>

	* gnome-ditem-edit.c:
	(table_attach_list): kill unused.
	(make_easy_page): rename from fill_easy_page and actually
	create the table and frame here.
	(make_advanced_page): rename from fill_advanced_page and redo
	how the dialog is laid out (70692)
	(make_page): kill.
	(gnome_ditem_edit_instance_init): upd for above changes.
	(gnome_ditem_edit_sync_display), (gnome_ditem_edit_sync_ditem),
	(gnome_ditem_edit_clear): fix up the GenericName stuff ..
	whatever the hell it is ..

Wed Mar 27 19:59:11 2002  George Lebl <jirka@5z.com>

	* gnome-ditem-edit.c: some UI tweaks and fixes.  Fix the front page,
	  make the advanced page less wide by squishing the
	  translated name/comment/generic name fields.  Also reverse the
	  order of the thingies in the popdown combo thing.

Wed Mar 27 10:39:24 2002  George Lebl <jirka@5z.com>

	* gnome-desktop-item.[ch], gnome-ditem-edit.c: add generic name
	  field, make escapes the same as in the spec as proposed in the
	  changes from havoc, and some minor other fixes

2002-03-27  Mark McLoughlin  <mark@skynet.ie>

	* gnome-desktop-item.c: (append_app_arg): strcmp does return
	zero if the strings are the same ... right ?

2002-03-18   Diego Gonzlez  <dggonz@yahoo.com>

	* libgnome-desktop/gnome-desktop-item
	(gnome_desktop_item_set_location_file): fix, so that it stores the
	name of the file and doesn't get into an infinite loop.

2002-03-11  Richard Hestilow  <hestilow@ximian.com>

	* gnome-desktop-item.c (insert_key): Only chomp if val != NULL.

2002-03-05  Jayaraj Rajappan	<jayaraj.rajappan@wipro.com>

	* gnome-ditem-edit.c : Set atk relation as part of accessibility changes
	* gnome-hint.c : Set atk relation and provide tooltips as part of
	  accessibility changes

2002-02-28  Darin Adler  <darin@bentspoon.com>

	* gnome-desktop-item.c: (insert_key): Chomp trailing spaces
	as we read in values from the file.

2002-02-28  Mark McLoughlin  <mark@skynet.ie>

	* gnome-ditem-edit.c: (translations_add): clear the entries
	after you click 'Add'.

2002-02-28  Mark McLoughlin  <mark@skynet.ie>

	* gnome-desktop-item.h: add GNOME_DESKTOP_ITEM_DOC_PATH.

	* gnome-ditem-edit.c:
	(count_rows): kill unused.
	(translations_add): check the return value of get_iter_first.
	(get_language): tidy up.
	(gnome_ditem_edit_sync_ditem): cleanup. Rationalise the
	treeview handling.

2002-02-28  Mark McLoughlin  <mark@skynet.ie>

	* gnome-ditem-edit.c:
	(set_iter_nth_row): kill.
	(translations_select_row): connect this to the "changed"
	signal on the GtkTreeSelection and just use
	gtk_tree_model_get.
	(count_rows): pass in the model.
	(translations_add): clean up a lot and use the treeview
	correctly.
	(setup_translations_list): impl helper func.
	(fill_advanced_page): cleanup. Fix some bugs.
	(gnome_ditem_edit_sync_display): set the icon entry filename
	correctly.
	(gnome_ditem_edit_sync_ditem): upd.

2002-02-27  Mark McLoughlin  <mark@skynet.ie>

	* Makefile.am: build test-ditem-edit.

	* test-ditem-edit.c: split out from old test code
	in gnome-ditem-edit.c and port.

	* gnome-ditem-edit.c: cleanups.

2002-02-25  Arvind S N  <arvind.samptur@wipro.com>

	* gnome-ditem-edit.c: (fill_advanced_page): emit changed
	signal when translated name/comment entries change.

2002-02-26  Mark McLoughlin  <mark@skynet.ie>

	* Makefile.am: add WARN_CFLAGS.

	* gnome-desktop-item.c:
	(readbuf_rewind): fix error param to be a GError **.
	(replace_percentsign): kill unused.
	(ditem_execute), (gnome_desktop_item_get_file_status),
	(gnome_desktop_item_clear_localestring), (get_encoding):
	kill unused variables.

	* gnome-ditem-edit.c: (count_rows): make static.

	* gnome-hint.c: clean up and fix warnings + bugs.

	* test-ditem.c: (test_ditem): kill unused variables.

2002-02-25  Mark McLoughlin  <mark@skynet.ie>

	* gnome-ditem-edit.c:
	(translations_add): create the tree with a list model so as
	to not spew warnings. Random cleanups.

2002-02-20  Darin Adler  <darin@bentspoon.com>

	* gnome-desktop-item.h:
	* gnome-desktop-item.c: (readbuf_getc): Handle case where you try
	to keep reading and the handle is NULL by treating it as EOF. This
	is also the case at the end of the string. Set a new
	"past_first_read" flag, used to optimize rewinding for the vast
	majority of desktop files that fit entirely in the buffer.
	(readbuf_gets): More g_return_if_fail.
	(readbuf_open): Add a GError parameter, and include the
	GnomeVFSResult in the error. Allocate the buf, which is now a
	separate object.
	(readbuf_new_from_string): New function, which creates a readbuf
	from an existing string.
	(readbuf_rewind): Reset eof and pos to make this actually work.
	Check the past_first_read flag to avoid re-reading if the entire
	file fits in the buffer. Reset size to trigger a read if we decide
	to re-read the buffer. Make it try to reopen the file instead of
	just malfunctioning if the GnomeVFSFileHandle is already NULL.
	(readbuf_close): Free the buf if needed.
	(read_sort_order): Pass NULL for GError * to readbuf_open.
	(gnome_desktop_item_new_from_uri): Use the GnomeVFSResult for the
	error code, rather than errno. Get rid of unneeded
	gnome_vfs_file_info_clear just before gnome_vfs_file_info_unref.
	Use the new readbuf_open, since ditem_load now takes a ReadBuf *
	instead of a URI.
	(gnome_desktop_item_new_from_string): New.
	(get_encoding): Do the check for valid UTF-8 as we read the file
	rather than re-reading it again at the end. Also get the URI from
	the ReadBuf rather than passing it separately for the "guess by
	location" hack, which is not really necessary, since the validate
	heuristic will get it right anyway. Also handle the case of a NULL
	URI properly.
	(setup_type): Rename filename to uri to make it clearer what's
	really going on here.
	(sanitize): Handle the case of a NULL URI. Also add a fallback
	name for the case where you have neither a URI nor a name in the
	file. Also fix a storage leak.
	(ditem_load): Take a ReadBuf * parameters instead of a URI, so we
	can share this between the file and non-file cases. Also fix an
	error format string to avoid segfault.
	(ditem_save): Share the error handling code for gnome_vfs_open
	and gnome_vfs_create since they did the same thing. Also change
	to use GnomeVFSResult instead of errno.

2002-02-14  Nitin Madhukar Yewale <nitin.yewale@wipro.com>

	reviewed by: Mark McLoughlin <mark@skynet.ie>

	* gnome-ditem-edit.c, gnome-hint.c, test-hint.c: port
	to non-deprecated functions.

2002-02-14  Shivram U <shivaram.upadhyayula@wipro.com>

	reviewed by: Mark McLoughlin <mark@skynet.ie>

	* gnome-ditem-edit.c: Changed "Command:" label text to
	"Type:". (#70692)

2002-02-11  Mark McLoughlin  <mark@skynet.ie>

	* gnome-desktop-item.c: (get_encoding): don't like uri.

	* gnome-ditem-edit.c: (gnome_ditem_edit_sync_display): free
	icon file name.

Fri Feb 01 17:37:09 2002  George Lebl <jirka@5z.com>

	* gnome-desktop-item.c: make sure to notice errors on save

	* test-ditem.c: fix the get_entry_type check and fix saving

Tue Jan 22 16:10:58 2002  George Lebl <jirka@5z.com>

	* gnome-desktop-item.c: when testing for tryexec, just do an
	  access (foo, X_OK) if it's an absolute filename

Wed Jan 16 18:34:55 2002  George Lebl <jirka@5z.com>

	* gnome-desktop-item.[ch]: fix error quark, and start things in
	  home directory unless a flag is passed

2002-01-16 Stephen Browne <stephen.browne@sun.com>
	
	* gnome-desktop-item.c

	gnome_desktop_item_find_icon should return NULL if icon is 
	empty string

2002-01-08  Glynn Foster  <glynn.foster@sun.com>

	* gnome-desktop-item.c: (ditem_execute): Add G_SPAWN_SEARCH_PATH
	to g_spawn_async call. Thanks to jschurger for fix.

Fri,  4 Jan 2002 22:28:51 -0500  Frank Belew <frb@ximian.com>

	* Makefile.am: remove -I$(includedir), bad things happen when 
	  prefix is the same as gnome1 and that gets added so early on the
	  list

Thu Dec 20 15:43:21 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.c: use g_spawn and return some cool errors from
	  g_spawn and g_shell on exec

Wed Dec 19 19:52:53 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.c: actually make looking for kde icons work,
	  and don't check the kde stuff if we've already found a gnome one,
	  also ignore dot directories to avoid infinite loops and such.

Wed Dec 19 18:34:00 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.c: s/G_DIR_SEPARATOR/G_DIR_SEPARATOR_S/,
	  LONG LIVE TYPE UNSAFETY!

Wed Dec 19 18:23:17 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.[ch]: add a find_icon function which
	  doesn't work only on desktop items but no matter how you got the
	  icon name.  Also deal with sizes and only look in kde hicolor
	  dirs.

2001-12-16  Gediminas Paulauskas <menesis@delfi.lt>

	* gnome-desktop/gnome-ditem-edit.c: get translations from
	GETTEXT_PACKAGE domain and with UTF-8 codeset, so that translations
	work when library is used outside of gnome-core.

Fri Dec 14 16:43:23 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.c: simplify and complete the %? substitution.
	  Now %f and friends behave in a more predictable way.  If there
	  are multiple instances on the command line you get the
	  same file.  This also fixes other corner cases and simplifies what
	  we do.  It's also more predictable, and makes more sense.  Things
	  may still be weird if you use both %u and %f on the same line,
	  but then you deserve what you get.

Fri Dec 14 15:58:06 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.[ch], gnome-ditem-edit.[ch]: added some needed
	  API.  One for setting location as file, and setting a directory
	  only editor and setting initial type string.

Sun Dec 09 15:22:03 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.c: actually set the real_argc for launching and
	  also actually add elements to the argv array

Sat Dec 08 11:27:35 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.[ch]: Make launching standards compliant and
	  realize that the standard sucks donkeyballs.  It's utterly
	  ambiguous.  I try to handle the corner cases but I dunno if I'm
	  right.  Needs more clarification.

2001-12-06  Alexander Larsson  <alla@lysator.liu.se>

	* gnome-desktop-item.c (gnome_desktop_item_new_from_uri):
	Remove old stat code.
	(gnome_desktop_item_save): Don't do magic non-abs path stuff
	to the location, it is supposed to be an uri.
	(gnome_desktop_item_get_file_status):
	Use gnome-vfs instead of stat.

Sun Dec  2 13:05:05 2001  Owen Taylor  <otaylor@redhat.com>

	* Makefile.am gnome-desktop.pc.in: Add a pc
	file for this library.

2001-11-30  Seth Nickell  <snickell@stanford.edu>

	* gnome-desktop-item.c: (get_encoding):

	Return "MIXED_ENCODING" when we aren't sure
	what the type is, at least for now. Our detection
	functions also need to be rewritten to use GnomeVFS
	fully. They assume "uri:/foo" -> "/foo".

2001-11-28  Anders Carlsson  <andersca@gnu.org>

	* gnome-hint.h: Inherit from GtkDialog instead of
	GnomeDialog.

	* gnome-hint.c: Likewise.

Tue Nov 27 00:43:13 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.c: look for kde icons in the same way the
	  panel does.  This requires more thought, kde icons are
	  no longer a simple task.

Tue Nov 20 19:37:53 2001  Owen Taylor  <otaylor@redhat.com>

	* gnome-desktop-item.h: Change include to glib-object.h.

Mon, 19 Nov 2001 01:47:56 -0500 Frank Belew <frb@ximian.com>

	* Makefile.am: added gnome-hint.h to libgnomeui_HEADERS

Sun Nov 18 00:22:22 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.c: fix the make_fake_directory, and 
	  fix some doc strings

Fri Nov 16 22:01:55 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.[ch]: use g_find_program_in_path and
	  g_path_is_absolute where appropriate.  Add a NO_TRANSLATIONS
	  load flag so that translations are not loaded (they are sometimes
	  not needed and they take long to load).  Also fix the encoding
	  getting function

2001-11-16  Glynn Foster  <glynn.foster@sun.com>

	* gnome-desktop-item.c: Fix up to work. I spent my whole day on
	something like a 10 line fix. This is just depressing. It's still
	broken with the encoding but at least it gets pretty little icons
	back on the panel again.

2001-11-14  Glynn Foster  <glynn.foster@sun.com>

	* gnome-ditem-edit.c:
	* gnome-hint.c: 

	Fix the GNOME_BOILERPLATE stuff.

2001-11-08  Mark McLoughlin  <mark@skynet.ie>

	* gnome-desktop-item.c: (gnome_desktop_item_launch): don't
	dump core if exec is NULL.

2001-11-08  Seth Nickell  <snickell@stanford.edu>

	* gnome-desktop-item.c:

	Stop including gnome-vfs-mime.h, use gnome-vfs-mime-util.h instead.

2001-11-07  Mark McLoughlin  <mark@skynet.ie>

	* gnome-desktop-item.c: (gnome_desktop_item_new_from_uri),
	(gnome_desktop_item_set_location): use gnome_vfs_file_info_new
	and gnome_vfs_file_info_unref.

Wed Nov 07 00:52:47 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.[ch]: Port to GnomeVFS.  Compiles, if
	  it actually works is a different question altogether.  However
	  it should still work and shouldn't break anything.  (Breaks
	  get/set_location api since that's uri and not filename now)

2001-10-25  Mark McLoughlin  <mark@skynet.ie>

	* gnome-hint.h: sync gnome_hint_new def.

2001-10-25 Stephen Browne <stephen.browne@sun.com?

	* gnome-desktop/gnome-hint.c
	* gnome-desktop/test-hint.c

	Some cleanup plus added support for a show at startup checkbox

2001-10-22  Stephen Browne  <stephen.browne@sun.com>

        * gnome-desktop/Makefile.am:
        * gnome-desktop/gnome-hint.c:
        * gnome-desktop/gnome-hint.h:
        * gnome-desktop/test-hint.c:

        Added a gnome_hint widget to libgnome-desktop

2001-10-11  Alex Larsson  <alexl@redhat.com>

	* gnome-desktop-item.c (ditem_execute, gnome_desktop_item_launch):
	Convert app launching to new api. Not tested yet, but at least
	compiles.

2001-10-10  Alex Larsson  <alexl@redhat.com>

	* gnome-desktop-item.c (escape_string_and_dup,
	escape_string_and_dup):
	Don't write past end of string.

2001-10-09  Havoc Pennington  <hp@redhat.com>

	* gnome-desktop-item.c (gnome_desktop_item_new): create the hash
	table here, since we use it and assume it's always non-nul

Wed Sep 26 23:04:04 2001  George Lebl <jirka@5z.com>

	* gnome-ditem-edit.[ch]:  Add a _set_editable call which makes
	  the entry editable or not.  Useful for read only items.  Currently
	  a stupid implementation.

2001-09-25  Darin Adler  <darin@bentspoon.com>

	* gnome-desktop-item.c: (gnome_desktop_item_launch): Update
	calls for change in gnome_url_show API.

Fri Sep 21 12:14:06 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.h: include gobject/gtype.h

	* gnome-ditem-edit.[ch]: include evil api to grab focus, to be
	  replaced by a correct way to do this in the future.

2001-09-21  Glynn Foster <glynn.foster@sun.com>

	* test-ditem.c: (test_ditem): Fix up this to pass the right 
	  number of args to gnome_desktop_item_get_type () and 
          gnome_desktop_item_set_localestring ()

Thu Sep 20 16:38:11 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.[ch]: make sure name/encoding/version are set,
	  location return is now const, and some better checks.  Also fix
	  saving 'under' and some 'modified' logic

	* gnome-ditem-edit.h: fix comment

Thu Sep 20 15:15:54 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.[ch]: string vector const weirdness removed

Wed Sep 19 01:42:13 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.c, gnome-ditem-edit.c: eeek, exported an
	  internal function.

Tue Sep 18 23:11:33 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.[ch]: Few more accessors, whack the push/pop
	  of sections.  Keys can now include sections, add actual error
	  returns

	* gnome-ditem-edit.[ch]: whack crack entries, make compile, and port
	  to new desktop item.

	* Makefile.am: add the ditem-edit

Sat Sep 08 01:55:29 2001  George Lebl <jirka@5z.com>

	* All bonobo stuff.  Removed for now.  This is in bonobo somewhere
	  now anyway.

	* Makefile.am: Fixup for the current no-bonobo build

	* gnome-desktop-item.[ch], test-ditem.c:  Made loading/saving work
	  and add tests

	* gnome-ditem-edit.[ch]: Add this, currently the same version that
	  was the last working one in libgnomeui HEAD.  Doesn't compile nor
	  work with the ditem yet.

Fri Sep 07 21:43:34 2001  George Lebl <jirka@5z.com>

	* gnome-desktop-item.[ch]: Put the parser into the ditem, completely
	  reshuffle the API, make it be much more anal about how it reads
	  files, simplify internal storage, and follow the spec more closely,
	  not api nor implementation complete.  Still needs a lot of work.
	  A .desktop moniker should rather be based upon this API rather
	  then being beneath it.  However that's very low on my priority list
	  right now.  But it should be simpler then before I'd think, and
	  you'd get actual spec compliant reading/writing.

Tue Sep 04 23:06:06 2001  George Lebl <jirka@5z.com>

	* Makefile.am, gnome-desktop-item.[ch]: Mostly stubify things with
	  #if 0's just to make it compile.  I will be changing the whole
	  structure of this shortly and simplifying the interface a lot
	  it seems to have grown quite a bit.

2001-08-21  Martin Baulig  <baulig@suse.de>

	* bonobo-config-ditem.c (get_encoding): If we can't determine the encoding,
	suck the whole file in and pipe it through g_utf8_validate().
	(encode_string): Never return NULL, instead use CORBA_string_dup ("").
	(bonobo_config_ditem_write_key): Deal with GNOME::LocalizedStringList.
	(bonobo_config_ditem_load): Correctly deal with newlines and wide unicode
	chars on legacy-mixed encoded files.

2001-08-20  Martin Baulig  <baulig@suse.de>

	* Makefile.am, bonobo-config-ditem.c: Disable dmalloc again. Hmm, for the
	moment it seems to work - let's see how long this lasts.

2001-08-20  Martin Baulig  <baulig@suse.de>

	* Makefile.am: Compile and install bonobo-moniker-ditem.

	* bonobo-moniker-ditem.c: Make this a stand-alone server, not a shared
	library.

	* Bonobo_Moniker_ditem.server.in.in: Renamed from Bonobo_Moniker_ditem.oaf.in.

	* bonobo-config-ditem.[ch]: Require dmalloc.

2001-08-20  Martin Baulig  <baulig@suse.de>

	* gnome-desktop-item.c (GnomeDesktopItem): Added `name', `comment'
	and `attributes' hash tables; copy all the CORBA sequences into these
	hash tables to make the lookup faster.

	* gnome-desktop-item.h: Make all `GnomeDesktopItem *'s non-const.

2001-08-20  Martin Baulig  <baulig@suse.de>

	* gnome-desktop-i18n.[ch]: New files. This is a mixture of the old
	gnome-libs/libgnome/gnome-i18n.c and gettext-0.10.38/intl/localealias.c.

	* locale.alias: New file. From gettext-0.10.38.

	* Makefile.am: Install locale.alias in $(datadir)/gnome.

2001-08-20  Martin Baulig  <baulig@suse.de>

	* bonobo-config-ditem.[ch]: Merge bonobo-config-ditem-internals.[ch]
	back into this file.

	* bonobo-config-ditem-internals.[ch]: Removed.

2001-08-20  Martin Baulig  <baulig@suse.de>

	* Makefile.am: For the moment, link test-ditem against dmalloc.
	I don't know what this is, but it crashes in malloc() without
	dmalloc, but I have dmalloc turned off .... :-(

	* gnome-desktop.xmldb: Removed, don't need this anymore.

2001-08-20  Martin Baulig  <baulig@suse.de>

	Rewrote the ditem code a bit, cleaned up its API and give the
	gnome-desktop-item.c code direct access to its internals.

	* bonobo-config-ditem-internals.[ch]: New files.

	* bonobo-config-ditem.[ch]: Moved a few functions to the new
	bonobo-config-ditem-internals.[ch].

2001-08-18  Martin Baulig  <baulig@suse.de>

	* gnome-desktop-item.c (gnome_desktop_item_get_tryexec):
	New function.

2001-08-17  Martin Baulig  <baulig@suse.de>

	* Makefile.am: Include bonobo-config-ditem.[ch] and
	bonobo-config-ditem-utils.[ch] in the library.

	* gnome-desktop-item.c: Call the code from bonobo-config-ditem.c
	directly rather than via the moniker.

2001-08-17  Martin Baulig  <baulig@suse.de>

	* gnome-ditem.[ch]: Renamed to gnome-desktop-item.[ch].

2001-08-12  Martin Baulig  <baulig@suse.de>

	* gnome-ditem.h (gnome_desktop_item_get_location): Make
	the return value non-const.

2001-08-06  Martin Baulig  <baulig@suse.de>

	* gnome-ditem.[ch]: Fix #includes for the new location.

	* Makefile.am: New file.

