2001-09-30  Hans Petter Jansson  <hpj@ximian.com>

	* xml.c (shares_xml_get_imports_node): Ensure there is a node to attach stuff to.
	(shares_xml_get_exports_node): Ditto. Fixes bug #10870.

2001-09-12  Hans Petter Jansson  <hpj@ximian.com>

	* main.c (apply_clicked_cb): Implement.
	(connect_signals): Make sure we get a signal when the user hits apply.

	* tables.c: Changed the XstChangedFunc to return a boolean telling if the
	user needs to apply the changes or not.
	(set_mount_list_mounted): Implement.
	(apply_mount_change): Re-implement.
	(check_mount_change): Implement. Taken from apply_mount_change(), with freeze/thaw added.
	Undo impossible operations. Make sure its changes don't result in a modified tool state. 
	(set_value_at_with_col_def): Honour bool from XstChangedFuncs, set tool modified.
	(mount_state_changed_from_table): Now returns boolean.
	(export_set_writable): Now returns boolean (always true).
	(import_table_mount_selected_node_toggle_cb): Added freeze/thaw.

	* xml.c (shares_xml_find_import_node_by_point): Implement.

2001-09-11  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c: Include xst-mount.h.
	(print_mount_list): Implement.
	(free_mount_list): Implement.
	(apply_mount_change): Implement.
	(mount_state_changed_from_table): Adapt.
	(import_table_mount_selected_node_cb): Adapt.
	(import_mount_failed): Adapt to apply_mount_changes(), remove dialog stuff from here.
	(import_unmount_failed): Adapt to apply_mount_changes(), remove dialog stuff from here.

	* tables.h: Some new prototypes and one include.

2001-09-03  Hans Petter Jansson  <hpj@ximian.com>

	* xst-mount.[ch]: Add XstMount struct for handling mount information.

	* Makefile.am: Build it.

2001-09-03  Hans Petter Jansson  <hpj@ximian.com>

	* xst-shares-tool.[ch]: Make XstSharesTool class.

	* Makefile.am: Build it.

	* main.c (main): Use it.

2001-09-03  Hans Petter Jansson  <hpj@ximian.com>

	* validate.c (validate_import_local_path): Add dialogs covering more error cases.

2001-08-31  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c: Apply changes when table checkmark toggled.

2001-08-31  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c: Fixed a typo.

2001-08-23  Hans Petter Jansson  <hpj@ximian.com>

	* main.c: Added report hooks.

	* tables.c (import_table_mount_selected_node_toggle_cb): Apply when mount
	toggle pressed.
	(import_mount_failed): Implement.
	(import_unmount_failed): Implement.

2001-05-31  Tambet Ingo  <tambet@ximian.com>

	* import-settings.c (set_text_or_blank): Removed, use xst_ui_entry_set_text. 

	* export-settings.c (set_text_or_blank): ditto.

	* export-clients.c (set_text_or_blank): ditto.

2001-05-28  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c (set_mount_button_label_neg): Neutralize warnings.
	  (export_set_writable): Ditto.
	  (value_at_with_col_def): Plug leaks, neutralize warnings.
	  (export_clients_value_at): Ditto.

	* xml.c (shares_xml_export_get_general_write): Plug leak.

2001-05-29  Chema Celorio  <chema@celorio.com>

	* Makefile.am: clean the tool.desktop.in.in mess
	I think i now understand what we were doing

2001-05-28  Hans Petter Jansson  <hpj@ximian.com>

	* validate.[ch] (validate_export_client_pattern): Implement.

	* export-clients.c (validate_client): Implement.
	  (export_clients_run): Apply entry policies before running.
	  (export_client_add_cb): Validate pattern.
	  (export_client_delete_cb): Clear and police entry.

	* tables.c (export_get_writable): Remove a warning.
	  (export_clients_set_value_at): Validate pattern.

2001-05-29  Chema Celorio  <chema@celorio.com>

	* Makefile.am: use XST_CFLAGS
	(shares_admin_SOURCES): clean

2001-05-28  Tambet Ingo  <tambet@ximian.com>

	* tables.c (create_imports_table): Use xst_ui_load_etspec.
	(create_exports_table): ditto.
	(create_export_clients_table): ditto.

2001-05-26  Carlos Perell Marn <carlos@gnome-db.org>

        * tables.c: Extracted the ETableSpecification to an external file.

2001-05-24  Arturo Espinosa Aldama  <arturo@ximian.com>

	* 0.5 RELEASE

2001-05-23  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c: Extended the table column callbacks to include a custom get_value
	  function.
	  (value_at_with_col_def): Extend.
	  (export_set_writable): Implement.
	  (export_get_writable): Implement.

	* xml.[ch] (find_nfs_world_allow): Implement.
	  (shares_xml_export_get_restricted): Use above func.
	  (shares_xml_export_set_general_write): Fix.
	  (shares_xml_export_get_general_write): Implement.

2001-05-22  Carlos Perell Marn <carlos@gnome-db.org>

	* tables.c: Marked the "Mount" and "Unmount" strings to be translated.

2001-05-21  Carlos Perell Marn <carlos@gnome-db.org>

	* tables.c: Marked to translate the ETableSpecification labels.
	
2001-05-18  Hans Petter Jansson  <hpj@ximian.com>

	* *.pam: Modified PAM configuration so that invoking as root works.

2001-05-17  Hans Petter Jansson  <hpj@ximian.com>

	* *.pam: Modified PAM configuration so that console-helper will ask
	  for root auth.

2001-05-13  Hans Petter Jansson  <hpj@ximian.com>

	* export-settings.c (export_settings_to_node): Use the passed node,
	  not the stored one (didn't work with add).

2001-05-10  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c: It's export_clients, not exports_clients. This was causing a
	  crash due to missing widgets.

2001-05-10  Chema Celorio  <chema@celorio.com>

	* main.c (main): upd to the new init method

2001-05-09  Arturo Espinosa Aldama  <arturo@ximian.com>

	* 0.4 RELEASE

2001-05-09  Hans Petter Jansson  <hpj@ximian.com>

	* main.c: Set widget modes to something more impressive.

2001-05-08  Hans Petter Jansson  <hpj@ximian.com>

	* export-settings.c (export_settings_to_node): browseable -> browse
	  (export_settings_from_node): Ditto.

2001-05-08  Hans Petter Jansson  <hpj@ximian.com>

	* export-settings.c (export_settings_to_node): writable -> write, always
	  enabled.
		(export_settings_from_node): writable -> write.

	* tables.c: writable -> write

2001-05-04  Hans Petter Jansson  <hpj@ximian.com>

	* main.c: Removed yet more crud.

2001-05-04  Hans Petter Jansson  <hpj@ximian.com>

	* main.c: Hid export_enabled toggle, we don't have support for that yet.
	  Removed some crud.

2001-05-04  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c: Enabled writable column togglebuttons.
	  (export_set_general_write): Implement.
	  (export_set_writable): Implement.

2001-05-03  Hans Petter Jansson  <hpj@ximian.com>

	* Makefile.am: Remove pixmaps from dist.

2001-05-03  Hans Petter Jansson  <hpj@ximian.com>

	* export-settings.c (export_settings_to_node): Normalize strings.

	* import-settings.c (import_settings_to_node): Normalize strings.

2001-05-02  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c: Implement XstChangedFunc callback for XstTableColDef and update
	  tables.
	  (set_mount_button_label): Implement.
	  (set_mount_button_label_neg): Implement.
	  (mount_button_from_import_node): Implement.
	  (set_value_at_with_col_def): Invoke changed cb if specified.
	  (import_table_update_selected): Update mount button.
	  (import_table_insert_node): Deactivate action buttons.
	  (export_table_insert_node): Ditto.
	  (export_clients_table_insert_node): Ditto.
	  (import_table_mount_selected_node_toggle_cb): Remove superfluous work.

2001-05-02  Hans Petter Jansson  <hpj@ximian.com>

	* main.c: Added imports_mount_button to policy and signal table.

	* tables.c: Added user policies for import, export and export-clients tables.
	  (imports_table_cursor_change_cb): Use user policy table.
	  (exports_table_cursor_change_cb): Ditto.
	  (export_clients_table_cursor_change_cb): Ditto.
	  (set_mount_button_label): Implement.
	  (import_table_mount_selected_node_toggle_cb): Implement.
	  (import_table_delete_selected_node): Use user policy table.
	  (export_table_delete_selected_node): Ditto.
	  (export_clients_table_delete_selected): Ditto.

2001-05-02  Hans Petter Jansson  <hpj@ximian.com>

	* computer.xpm: Removed.

	* folder.xpm: Removed.

	* main.c: Added import_settings_* policed widgets to policy table.

2001-05-02  Hans Petter Jansson  <hpj@ximian.com>

	* pixmaps.[ch]: Removed, not in use anymore.

2001-05-02  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c (table_insert_row): Implemented.
	  (import_table_insert_node): Use table_insert_row().
	  (export_table_insert_node): Ditto.
	  (export_clients_table_insert): Ditto.

2001-04-30  Hans Petter Jansson  <hpj@ximian.com>

	* transfer.[ch]: Removed.

	* Makefile.am: Remove transfer.[ch].

	* export-settings.c (export_settings_from_node): Remove unused vars.

	* main.c: Remove transfer.h. Add export_settings_ac_samba and
	  export_settings_ac_nfs policies.
	  (transfer_xml_to_gui): Implement.
	  (main): Set transfer_xml_to_gui() as only XML func.

	* tables.[ch]: Fixed up prototypes to neutralize warnings.
	  (col_count): Removed.
	  (freeze_value): Removed.
	  (icon_at): Removed.
	  (value_at): Removed.
	  (export_clients_table_from_export_node): Remove unused vars.

	* validate.[ch]: Let validator protos match the one used in tables.c.

	* xml.h: Add protos for new funcs.

2001-04-30  Hans Petter Jansson  <hpj@ximian.com>

	* export-settigs.[ch] (export_settings_restrict_cb): Implement.
	  (export_settings_get_widgets): export_settings_restrict + _toggle
	  (export_settings_from_node): Update restrict toggle from config.
	  (export_settings_to_node): Update restrict in config.

	* main.c: Added callback for restrict toggle.

	* tables.c (export_clients_table_from_export_node): Don't display the
	  allow-all rule.

	* xml.c (shares_xml_export_set_restricted): Implement.
	  (shares_xml_export_get_restricted): Implement.

2001-04-30  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c: Remove clients column from exports table.

2001-04-30  Hans Petter Jansson  <hpj@ximian.com>

	* export-settings.c (export_settings_from_node): Get client list from XML.
	  If export is SMB, clear list (in case it's later changed to NFS).
	  (export_settings_set_configuration): Remove obsolete code.
	  (export_settings_get_configuration): Ditto.

	* tables.c (export_clients_table_from_export_node): Implement.

2001-04-30  Hans Petter Jansson  <hpj@ximian.com>

	* export-settings.c (export_settings_to_node): Export NFS allow specs,
	  clear allow specs if export type changed to SMB.

	* tables.c (export_clients_table_to_export_node): Implement.

	* xml.c (shares_xml_new_allow_node): Implement.
	  (shares_xml_remove_allow_nodes): Implement.

2001-04-26  Hans Petter Jansson  <hpj@ximian.com>

	* validate.c (create_path_elements): Free path element after use.
	  (validate_export_local_path): Complain if path is anything but a
	  directory.

2001-04-26  Hans Petter Jansson  <hpj@ximian.com>

	* validate.c: Implement XstPathStatus.
	  (show_boolean_choice): Implement.
	  (check_path): Implement.
	  (check_or_create_path): Implement.
	  (create_path_elements): Implement.
	  (create_path_interactive): Implement.
	  (validate_export_local_path): Check path correctness and allow user to
	  create it if it doesn't exist.

2001-04-26  Chema Celorio  <chema@celorio.com>

	* Makefile.am (shares_admin_SOURCES): add tables.h and xml.h so that
	distcheck would pass
	* Makefile.am add $(srcdir) to security.in

2001-04-25  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c: Remove table IDs, since they're not useful anymore.
	  (create_imports_table): Ditto.
	  (create_exports_table): Ditto.
	  (create_export_clients_table): Ditto.

2001-04-25  Hans Petter Jansson  <hpj@ximian.com>

	Imports and exports tables now filter and validate inline-edited values,
	with user feedback.

	* tables.c: Implement XstTableColDef, which tells the etable set_value_at and
	  value_at callbacks how to operate on specific columns. It has callbacks
	  for filtering (stripping & pretty-printing) and validating entries.
	  (imports_table_col_def): Implement table.
	  (exports_table_col_def): Implement table.
	  (set_value_at_with_col_def): Implement.
	  (value_at_with_col_def): Implement.
	  (imports_set_value_at): Remove.
	  (exports_set_value_at): Remove.
	  (imports_value_at): Remove.
	  (exports_value_at): Remove.
	  (create_generic_table): Take an XstTableColDef and set is as callback data.
	  (create_imports_table): Pass XstTableColDef to create_generic_table().
	  (create_exports_table): Ditto.
	  (create_export_clients_table): Ditto.

2001-04-25  Hans Petter Jansson  <hpj@ximian.com>

	* callbacks.[ch]: Removed as part of the cruft from the old version.

2001-04-25  Hans Petter Jansson  <hpj@ximian.com>

	* callbacks.c: set_ctree_checkmark() -> xst_ui_ctree_set_checkmark().
	  get_ctree_checkmark() -> xst_ui_ctree_get_checkmark().
	  set_clist_checkmark() -> xst_ui_clist_set_checkmark().
	  get_clist_checkmark() -> xst_ui_clist_get_checkmark().

	* transfer.c: Ditto.

2001-04-25  Hans Petter Jansson  <hpj@ximian.com>

	* import-settings.c: Remove obsolete includes.

	* export-settings.c: Ditto.

	* export-clients.c: Ditto.

2001-04-25  Hans Petter Jansson  <hpj@ximian.com>

	* export-settings.c (export_settings_validate): Use validate_* functions.

2001-04-25  Hans Petter Jansson  <hpj@ximian.com>

	* import-settings.c (import_settings_validate): Use validate_* functions.

2001-04-25  Hans Petter Jansson  <hpj@ximian.com>

	* Makefile.am: Build validate.o.

2001-04-25  Hans Petter Jansson  <hpj@ximian.com>

	* validate.[ch]: Implement all. Simple funcs that validate strings'
	  well-formedness and provide some user interaction.

2001-04-24  Hans Petter Jansson  <hpj@ximian.com>

	* export-settings.c (export_settings_run): Update dialog with share settings
	  in case these were inline edited.

2001-04-24  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c (export_clients_set_value_at): Don't modify tool - that's the job
	  of the parent dialog. Instead, update entry widgets to match new status of
	  modified row.

2001-04-24  Hans Petter Jansson  <hpj@ximian.com>

	Export Clients dialog should now behave nicely.

	* export-clients.[ch] (export_clients_clear_entries): Implement.
	  (export_clients_clear): Move some code to export_clients_clear_entries ().
	  (export_clients_apply_policies): Implement.
	  (export_client_changed_cb): Implement.

	* export-settings.c (export_settings_get_configuration): Add warning.
	  (export_settings_set_configuration): Clear export-clients and add warning.

	* main.c: Generate signal when export-client pattern changed.

2001-04-24  Hans Petter Jansson  <hpj@ximian.com>

	Strings and booleans in all of the tables should now be inline editable.

	* tables.c (export_clients_set_value_at): Implement.
	  (create_exports_table): Use exports_set_value_at ().
	  (create_export_clients_table): Use export_clients_set_value_at ().

2001-04-24  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c: Set checkbox fields to show checkboxes instead of strings.
	  (imports_set_value_at): Allow for setting checkbox and activate.
	  (exports_set_value_at): Implement.
	  (imports_value_at): Do the right thing for checkbox.
	  (exports_value_at): Do the right thing for checkbox.
	  (export_clients_value_at): Do the right thing for checkbox.
	  (create_generic_table): Take set_value_at_fn. Use it.
	  (create_tables): Make use of new arg to create_generic_table().

	* tables.h (export_clients_table_to_export_node): Proto. No impl yet.

2001-04-24  Hans Petter Jansson  <hpj@ximian.com>

	* import-settings.c (import_settings_from_node): Fix bug that would lose the
	  mount flag.

2001-04-24  Hans Petter Jansson  <hpj@ximian.com>

	This makes the export clients dialog work internally and addresses some code
	aesthetics.

	* export-clients.[ch]: Implement all.

	* main.c: Locally redefine XST_WIDGET_MODE_* to shorter labels, so table
	  becomes briefer and more readable.
	  Add export clients signals and group signals for readability.
	  Add export clients policies.

	* tables.[ch] (export_clients_table_scrolled): Implement.
	  (export_clients_spec): Implement.
	  (export_clients_basic_state): Implement.
	  (export_clients_col_count): Implement
	  (export_clients_value_at): Implement.
	  (export_clients_table_cursor_change_cb): Implement.
	  (create_export_clients_table): Implement.
	  (create_tables): Create export_clients_table_scrolled too.
	  (table_get_rows_as_gslist): Implement.
	  (table_set_rows_from_gslist): Implement.
	  (export_clients_table_update_selected): Implement.
	  (export_clients_table_get_selected): Implement.
	  (export_clients_table_insert): Implement.
	  (export_clients_table_delete_selected): Implement.
	  (export_clients_table_clear): Implement.

	* Makefile.am: Accomodate export-clients.[ch].

2001-04-19  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c: Added on-modification calls.

2001-04-19  Hans Petter Jansson  <hpj@ximian.com>

	Added mostly functional export manipulation.

	* export-settings.[ch]: Implement all.

	* main.c: Add signals for export buttons and table.

	* tables.[ch] (exports_table_cursor_change_cb): Implement.
	  (create_exports_table): Add cursor_change signal.
	  (import_table_delete_selected_node): Fix delete ordering bug.
	  (export_table_update_selected): Implement.
	  (export_table_get_selected_node): Implement.
	  (export_table_insert_node): Implement.
	  (export_table_delete_selected_node): Implement.

	* xml.[ch] (shares_xml_new_export_node): Implement.

	* Makefile.am: Accomodate export-settings.[ch].

2001-04-19  Hans Petter Jansson  <hpj@ximian.com>

	Source cleanup, get rid of some annoying globals that had the potential
	to pile up.

	* tables.[ch] (import_table_set_selected_node): Remove.
	  (import_table_get_selected_node): Get selection from ETable.
	  (import_table_insert_node): Update selection.
	  (import_table_update): Rename to import_table_update_selected().

	* import-settings.[ch] (import_settings_to_current_node): Implement.
	  (import_settings_to_node): Take node as argument.
	  (import_settings_run): Use import_settings_to_current_node().
	  (import_settings_add_run): Use new import_settings_to_node() and
	  don't update selection.

2001-04-18  Hans Petter Jansson  <hpj@ximian.com>

	This implements import deletion and fixes some small issues.

	* import-settings.c: import_settings_node moved to tables.c and renamed.
	  (import_settings_get_configuration): Use import_table_get_selected_node().
	  (import_settings_set_configuration): Don't set import_settiongs_node.
	  (import_settings_add_run): Use import_table_set_selected_node() to select
	  the new node.

	* main.c: Add imports_delete_button clicked signal.

  * tables.[ch] (imports_table_cursor_change_cb): Update import_node_selected.
	  Activate delete button when row selected.
	  (import_table_get_selected_node): Implement.
	  (import_table_set_selected_node): Implement.
	  (import_table_delete_selected_node): Implement.

2001-04-18  Hans Petter Jansson  <hpj@ximian.com>

	* import-settings.[ch]: Added checking of and feedback on import specs.

2001-04-18  Hans Petter Jansson  <hpj@ximian.com>

	From now on it should be possible to add imports manually, although no error
	checking is done yet. Also, some real bugs and compiler complaints have been
	taken out.

	* xml.[ch]: Add. These are shares-specific XML functions.

	* Makefile.am: Accomodate xml.[ch].

	* import-settings.c: Slight code restructure and some new functionality.
	  (import_settings_from_node): Add error checking, handle NULL nodes.
	  (import_settings_add_run): Implement.
	
	* import-settings.h: Add protos for new and several existing funcs.

	* tables.c (imports_value_at): Return empty string instead of NULL when data
	  missing.
	  (exports_value_at): Ditto.
	  (get_imports_root_node): Moved to xml.c and renamed.
	  (get_exports_root_node): Ditto.
	  (populate_table): Only process tags of specified type.
	  (populate_tables): Specify types when invoking populate_table().
	  (import_table_insert_node): Implement.

	* tables.h: Add with protos.

	* main.c: Add clicked signal for imports_add_button.

2001-04-18  Hans Petter Jansson  <hpj@ximian.com>

	* main.c: Add scan button.

	* import-settings.c (set_text_or_blank): Moved up.
	  Added some documentation.

2001-04-05  Hans Petter Jansson  <hpj@ximian.com>

	* import-settings.c: Add structs for dialog widgets and configuration.
	  (import_settings_get_type): Implement.
	  (import_settings_get_widgets): Implement.
	  (import_settings_configure): Ditch in favour of the following two.
	  (import_settings_get_configuration): Implement.
	  (import_settings_set_configuration): Implement.
	  (import_settings_clear): Use _get_widgets and _set_configuration.
	  (import_settings_from_node): Use struct and _set_configuration.
	  (import_settings_to_node): Implement.
	  (import_settings_run): Set configuration in XML and update ETable.

	* tables.c: Move (imports|exports)_table_scrolled to top.
	  Remove some cruft.
	  (import_table_update): Implement.

2001-04-04  Hans Petter Jansson  <hpj@ximian.com>

	* main.c (connect_signals): Add signal to change settings dialog type when
	import type selected.

	* import-settings.[ch] (import_settings_set_type): Set GtkOptionMenu
	history too.
	(import_settings_select_type_cb): Implement.
	(set_text_or_clear): Implement.
	(import_settings_configure): Implement.
	(import_settings_clear): Implement. Uses import_settings_configure ().
	(import_settings_from_node): Use import_settings_configure ().

2001-04-03  Hans Petter Jansson  <hpj@ximian.com>

	* main.c: Add signal to launch import settings dialog.

	* tables.c (imports_table_cursor_change_cb): Implement cursor changed
	  callback.

	* import-settings.c (import_settings_from_node): Implement.
	  (import_settings_run): Use gnome_dialog_run_and_close ().

2001-04-03  Hans Petter Jansson  <hpj@ximian.com>

	* main.c: Set more sensible policies for import/export buttons.
	  (main): Connect signals, prepare for the signal table.

	* tables.c: Use table identifiers.

  * import-settings.[ch]: Add early framework for the import settings dialog.

  * Makefile.am: Add import-settings.[ch].

2001-04-02  Hans Petter Jansson  <hpj@ximian.com>

	* tables.c: Neutralized most warnings.

2001-04-02  Hans Petter Jansson  <hpj@ximian.com>

	* Makefile.am: Add GAL flags.

	* main.c: Add widget policy table. Prepare for rewrite.

	* tables.c: Add beginnings of e-table support.

	* transfer.c: Comment out old transfer funcs for now, add calls to
	  e-table populating funcs.

2001-03-30  Tambet Ingo  <tambet@ximian.com>

	* Makefile.am: Add gconf cflags.

2001-02-28  Hans Petter Jansson  <hpj@ximian.com>

	* Makefile.am: Disable control-center entry.

2001-02-27  Chema Celorio  <chema@celorio.com>

	* Makefile.am (EXTRA_DIST): distcheck fixes

2001-02-22  Chema Celorio  <chema@celorio.com>

	* add xst_ prefix to the xml_ functions

2001-02-17  Chema Celorio  <chema@celorio.com>

	* main.c (main): pass NULL as options.

2001-02-06  jacob berkman  <jacob@ximian.com>

	* main.c: add signals list

2001-02-02  jacob berkman  <jacob@ximian.com>

	* *.c: port to new api

2001-01-15  Chema Celorio  <chema@celorio.com>

	*  Start ChangeLog
