1. 21 Mar, 2001 1 commit
    • John Sullivan's avatar
      Fixed bug 4355: Built-in bookmarks icons change after first view · 65e9e66c
      John Sullivan authored
      	Also reduced the number of times that refresh_bookmarks_menu
      	is called since it was showing up in some profiling.
      
      	* libnautilus-extensions/nautilus-bookmark.h:
      	* libnautilus-extensions/nautilus-bookmark.c:
      	(nautilus_bookmark_initialize_class), (nautilus_bookmark_set_name),
      	(bookmark_file_changed_callback): Split the "changed" signal into
      	"appearance_changed" and "content_changed". "appearance_changed" is
      	emitted only if the name or icon change. "content_changed" is emitted
      	if the URI changes.
      
      	* src/nautilus-bookmark-list.c: (insert_bookmark_internal):
      	Connect to both appearance_changed and content_changed.
      
      	* src/nautilus-window-menus.c: (bookmark_holder_new):
      	Refresh menu only on appearance_changed, not content_changed.
      
      	* data/static_bookmarks.xml: Added "i-web" as icon name for
      	all the built-in bookmarks, since this is the icon they will
      	end up with after being visited. (Now, visiting a built-in
      	bookmark will not cause a refresh of the bookmarks menu.)
      65e9e66c
  2. 20 Mar, 2001 5 commits
    • John Sullivan's avatar
      shell-quote the script name. Fixes bug Robin found where scripts with · 13a6070f
      John Sullivan authored
      	* src/file-manager/fm-directory-view.c: (run_script_callback):
      	shell-quote the script name. Fixes bug Robin found where scripts
      	with spaces in their names didn't work.
      13a6070f
    • John Sullivan's avatar
      reviewed by: Pavel Cisler <pavel@eazel.com> · baf6d374
      John Sullivan authored
      	Finished bug 4875 (design for running arbitrary scripts on
      	selected items)
      
      	There are lots of ways this could be improved, but I've
      	finished the first pass at this feature. We'll need to get
      	feedback before deciding how to improve it later. Please
      	play with it -- hopefully it is self-explanatory. Start by
      	selecting Scripts > Open Scripts Folder.
      
      	* libnautilus-extensions/nautilus-file.h:
      	* libnautilus-extensions/nautilus-file.c:
      	(compare_by_name_cover): Simple cover for compare_by_name
      	that casts parameters.
      	(nautilus_file_list_sort_by_name): New public function.
      
      	* src/file-manager/nautilus-directory-view-ui.xml: Added name to
      	separators before "Open Scripts Folder" so they can be referred
      	to in code (shown/hidden)
      
      	* src/file-manager/fm-directory-view.c:
      	(get_scripts_directory): Create Scripts directory if it doesn't
      	exist; mark name of scripts directory for localization.
      	(add_numbered_menu_item): Add pixbuf parameter.
      	(add_application_to_bonobo_menu),
      	(add_component_to_bonobo_menu): pass NULL for pixbuf
      	(get_file_names_as_parameter_string): Changed name from
      	get_selected_file_names..., now takes file list as parameter.
      	(get_file_paths_or_uris_as_newline_delimited_string): New function.
      	(get_file_paths_as_newline_delimited_string),
      	(get_file_uris_as_newline_delimited_string): New functions, simple
      	covers for get_file_paths_or_uris...
      	(set_script_environment_variables): New function, sets some environment
      	variables up so scripts can use them.
      	(unset_script_environment_variables): New function, unsets those same
      	environment variables.
      	(run_script_callback): set/unset environment variables around calling
      	script.
      	(add_script_to_menus): add pixbufs for files
      	(reset_scripts_menu): sort scripts by name; hide separator after scripts
      	if there are no scripts
      	(notify_user_if_no_scripts_callback): Explain script behavior and
      	special environment variables in Details part of dialog.
      	(call_when_ready_on_scripts_directory): include attributes required to
      	get icon for file.
      	(open_scripts_folder_callback): Change error message for unexpected
      	case where scripts folder is nonexistent.
      baf6d374
    • Robin Slomkowski's avatar
      upped version 1.0.0 · da27a552
      Robin Slomkowski authored
      	* configure.in: upped version 1.0.0
      da27a552
    • John Sullivan's avatar
      More work on bug 4875 (design for running arbitrary · eb74cbe2
      John Sullivan authored
      	scripts on selected items).
      
      	Mostly done with this first pass. I still need to
      	set a few environment variables for the scripts' sake,
      	and I still need to add	code to create the scripts folder
      	if it's missing. (To test at this point, create your own
      	directory named "scripts" in ~/Nautilus.)
      
      	* src/file-manager/nautilus-directory-view-ui.xml: Renamed
      	Run Script submenu to Scripts; added Open Scripts Folder to
      	Scripts submenu.
      
      	* src/file-manager/fm-directory-view.c:
      	(get_scripts_directory): returns NULL if directory doesn't exist.
      	(scripts_added_or_changed_callback): New function, marks
      	scripts menu invalid and schedules menu update.
      	(connect_script_handlers): new function, monitor scripts
      	directory and connect to files_added and files_changed signals
      	so we can notice when scripts have changed.
      	(fm_directory_view_initialize): Call connect_script_handlers.
      	(get_selected_file_names_as_parameter_string): New function,
      	returns string of selected file names, each shell-quoted.
      	(run_script_callback): Pass selected file names if directory
      	is local (else pass nothing); add FIXMEs
      	(reset_scripts_menu): Don't change sensitivity based on script
      	non-zero count since there's always the Open Scripts Folder item.
      	(any_valid_scripts): New helper routine to see if scripts folder
      	contains any executables.
      	(notify_user_if_no_scripts_callback): New function, puts up
      	informative message if there are no executables in scripts folder.
      	(call_when_ready_on_scripts_directory): New helper function,
      	slightly generalized from schedule_reset_scripts_menu.
      	(schedule_reset_scripts_menu): Now calls new helper function.
      	(open_scripts_folder_callback): New function, displays the contents
      	of the scripts folder and also presents informative message if
      	it contains no executables.
      	(real_merge_menus): Add open_scripts_folder_callback for verb; mark
      	scripts submenu invalid rather than updating it here.
      	(real_update_menus): reset scripts menu if it's marked invalid.
      	(disconnect_scripts_directory_handler): New helper function to
      	disconnect a signal handler on the scripts directory.
      	(disconnect_script_handlers): disconnect all the stuff we connected.
      eb74cbe2
    • Pavel Cisler's avatar
      reviewed by: Gene Z. Ragan <gzr@eazel.com> · 08ab6d79
      Pavel Cisler authored
      2001-03-19  Pavel Cisler  <pavel@eazel.com>
      
      	reviewed by: Gene Z. Ragan  <gzr@eazel.com>
      
      	* libnautilus-extensions/nautilus-glyph.c:
      	(nautilus_glyph_draw_to_pixbuf):
      	Speed up drag-selection a whole bunch by making this call
      	4 x faster in the anti-aliased mode.
      08ab6d79
  3. 19 Mar, 2001 5 commits
  4. 17 Mar, 2001 6 commits
    • Gene Z. Ragan's avatar
      One final tweak to get the cdparanoia checks right. · 0ccfd189
      Gene Z. Ragan authored
      2001-03-16  Gene Z. Ragan  <gzr@eazel.com>
      
      	* libnautilus-extensions/Makefile.am:
      	One final tweak to get the cdparanoia checks right.
      0ccfd189
    • Gene Z. Ragan's avatar
      Add checks for cdparanoia to allow enabling of cd audio mounting on the · 556468e3
      Gene Z. Ragan authored
      2001-03-16  Gene Z. Ragan  <gzr@eazel.com>
      
      	* configure.in:
      	* libnautilus-extensions/Makefile.am:
      	Add checks for cdparanoia to allow enabling of
      	cd audio mounting on the desktop.
      
      	* libnautilus-extensions/nautilus-volume-monitor.c:
      	* libnautilus-extensions/nautilus-volume-monitor.h:
      	Clean up build conditional audio CD handling and
      	centralize the allocation of NautilusVolume structures.
      556468e3
    • Darin Adler's avatar
      forgot Pavel's name · b7432db5
      Darin Adler authored
      b7432db5
    • Darin Adler's avatar
      reviewed by: Pavel Cisler <pavel@eazel.com> · 42bdd593
      Darin Adler authored
      	Fix bug 610, a small per-window storage leak.
      
      	* src/nautilus-window.c: (unref_mini_icon): Free icon at quit
      	time for leak checking purposes.
      	(nautilus_window_initialize_class): Create the mini-icon here.
      	(nautilus_window_realize): Use it here, instead of re-making
      	it each time.
      42bdd593
    • John Sullivan's avatar
      reviewed by: Darin Adler <darin@eazel.com> · 4586f1f0
      John Sullivan authored
      	First batch of work for bug 4875 (design for running arbitrary
      	scripts on selected items). Only works locally, doesn't notice
      	changes to scripts directory, doesn't pass selected items as
      	parameters, many other details unfinished.
      
      	* src/file-manager/nautilus-directory-view-ui.xml: Add "Run Script"
      	submenus to File and context menus; add missing tip I happened to
      	notice to Open With submenu.
      
      	* src/file-manager/fm-directory-view.c:
      	(script_launch_parameters_new), (script_launch_parameters_free):
      	New helper functions to manage lifetime of parameters for script
      	menu items.
      	(get_scripts_directory): New function, returns NautilusDirectory
      	object (or NULL) representing scripts directory.
      	(fm_directory_view_initialize): Remember scripts directory in
      	details struct.
      	(fm_directory_view_destroy): clean up scripts directory stuff.
      	(add_numbered_menu_item): renamed from add_open_with_program_menu_item
      	with no other changes, since it was already exactly general enough
      	for my new use.
      	(add_application_to_bonobo_menu), (add_component_to_bonobo_menu):
      	Update for name change.
      	(change_to_view_directory): New function to change working
      	directory to the one displayed.
      	(run_script_callback): New function to actually execute the script;
      	temporarily changes the working directory.
      	(add_script_to_menus): New function, adds one script to the two
      	Run Script menus.
      	(reset_scripts_menu): New function, fills in the two Run Script
      	menus from scratch.
      	(reset_scripts_menu_callback): New call_when_ready callback, calls
      	reset_scripts_menu.
      	(disconnect_script_handlers): New function, cleans up pending callbacks.
      	(schedule_reset_scripts_menu): New function, sets up a callback when
      	the files in the scripts directory are sufficiently known.
      	(real_merge_menus): Call schedule_reset_scripts_menu.
      
      
      	Fixed bug 7232 (vague error message and console spam when
      	refreshing a directory deleted outside of Nautilus)
      
      	* src/file-manager/fm-error-reporting.c:
      	(fm_report_error_loading_directory): Handle the NOT_FOUND
      	case explicitly.
      4586f1f0
    • Darin Adler's avatar
      reviewed by: John Sullivan <sullivan@eazel.com> · 99d8949d
      Darin Adler authored
      	Fix bug 7778 (Trash directory state not saved properly).
      
      	* libnautilus-extensions/nautilus-trash-file.c:
      	(is_delegated_attribute): Function that returns TRUE if it's passed
      	one of the attributes that needs to be delegated to the individual
      	directories that make up the trash.
      	(is_delegated_attribute_predicate): Cover to use partition call on.
      	(partition_attributes): Helper that partitions a list into a list
      	of the delegated and non-delegated attributes.
      	(real_monitor_add), (real_monitor_remove),
      	(real_call_when_ready), (real_cancel_call_when_ready),
      	(real_check_if_ready): Calls to be used for the trash itself for
      	the non-delegated attributes.
      	(trash_callback_destroy): Destroy both attribute lists.
      	(monitor_add_file): Only monitor delegated attributes here.
      	(trash_file_call_when_ready): Wait for the delegated attributes
      	on the other files, the non-delegated attributes on this file.
      	(trash_file_cancel_call_when_ready): Cancel the wait for both
      	the main file and the other files.
      	(trash_file_check_if_ready): Check for the delegated attributes
      	on the other files, the non-delegated attributes on this file.
      	(trash_file_monitor_add): Monitor the delegated attributes
      	on the other files, the non-delegated attributes on this file.
      	(trash_file_monitor_remove): Remove the monitor from both the
      	main file and the other files.
      
      	* libnautilus-extensions/nautilus-vfs-file.c: Formatting tweaks.
      99d8949d
  5. 16 Mar, 2001 4 commits
    • Darin Adler's avatar
      reviewed by: John Sullivan <sullivan@eazel.com> · dcb478cf
      Darin Adler authored
      	Fix bug 6495 (Emacs-style keybindings not working in location bar
      	and other NautilusEntry fields) by adding an expert preference to
      	control whether the Emacs shortcuts or the ones in the menu bar
      	take precedence. I started with Maciej's patch and did many
      	refinements.
      
      	Fix bug 1788 ("Select All" needs to be implemented for text): I
      	had to add Select All so it won't do the icon view's Select All
      	when you do a select all with the location bar focused.
      
      	Fix bug 5612 (clicking to deselect causes incorrect menu
      	sensitivity) by adding another signal handler for button clicks.
      
      	Fix bug 7581 (When trying to restart Nautilus after crash from bug
      	7579 I get a Segmentation Fault). I was just lucky enough to run
      	into the problem on my machine.
      
      	* libnautilus-extensions/nautilus-global-preferences.h:
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	(global_preferences_install_descriptions),
      	(global_preferences_install_defaults),
      	(global_preferences_install_visibility),
      	(global_preferences_create_dialog): Added the new Emacs-shortcut
      	preference with the wording requested in the bug report.
      
      	* libnautilus-extensions/nautilus-entry.h:
      	* libnautilus-extensions/nautilus-entry.c:
      	(emacs_shortcuts_preference_changed_callback): Track the
      	preference.
      	(nautilus_entry_initialize): Set up the callback to track the
      	preference.
      	(nautilus_entry_destroy): Tear down the callback to track the
      	preference.
      	(nautilus_entry_key_press): Allow the emacs shortcuts built into
      	GtkEntry to work if the preference is set that way. Also, only
      	emit the selection_changed signal if the key is actually handled.
      	(nautilus_entry_motion_notify): Simplify the logic, since it's
      	OK to send the selection_changed signal a little too often.
      	(select_all_at_idle): Handle the case where the object is
      	destroyed.
      	(nautilus_entry_select_all_at_idle): Ref the object to handle the
      	case where the object is destroyed before the idle happens.
      	(nautilus_entry_button_press): Send a selection_changed message,
      	since pressing the button can cause a selection change.
      	(nautilus_entry_button_release): Send a selection_changed message,
      	since pressing the button can cause a selection change.
      	(nautilus_entry_initialize_class): Add new default handlers. Also,
      	move to bottom of file so we don't need so many forward
      	declarations.
      
      	* libnautilus/nautilus-clipboard-ui.xml: Add a Select All Text
      	command.
      	* libnautilus/nautilus-clipboard.c: (select_all): New function to
      	select all the text in a GtkEditable. Sadly it needs a special
      	case for GtkText.
      	(select_all_idle_callback): Callback used to select the text from
      	idle.
      	(select_all_callback): Callback that sets up the idle. Called from
      	the bonobo verb.
      	(initialize_clipboard_component_with_callback_data): Add the
      	callback for Select All.
      
      	* librsvg/rsvg.c: (rsvg_state_init): Initialize more fields,
      	including font_size.
      	(rsvg_text_handler_characters): Don't try to draw if the font
      	size is 0 or negative.
      	* librsvg/art_render_mask.c: (art_render_mask_render): Handle
      	cases where x1 < x0. The old code would seg. fault. This was the
      	reason we got a crash in bug 7581.
      
      	* configure.in: Upped the required version of gnome-vfs.
      dcb478cf
    • Robey Pointer's avatar
      Fixed the old "--help" bug in the installer, finally. · a85afd0f
      Robey Pointer authored
      	* nautilus-installer/src/main.c: (main):
      
      	Fixed the old "--help" bug in the installer, finally.
      a85afd0f
    • Pablo Saratxaga's avatar
      updated Azeri file · 89598141
      Pablo Saratxaga authored
      89598141
    • Darin Adler's avatar
      fix bug # · 77a04417
      Darin Adler authored
      77a04417
  6. 15 Mar, 2001 3 commits
    • Darin Adler's avatar
      reviewed by: John Sullivan <sullivan@eazel.com> · 1c5c03bc
      Darin Adler authored
      	Fix bug 7783 (Makefile.am used to install xml data is wrong):
      
      	* data/Makefile.am: Integrate build fix from fcrozat. Don't use
      	the magic "info" name since it is used for special purposes on
      	Mandrake and other systems.
      
      	Other strings:
      
      	* THANKS: Added some people who made recent contributions.
      	* check-THANKS.pl: Add some more alternate names.
      
      	* components/help/hyperbola-filefmt.c: (locale_score): Fix legal
      	code that doesn't compile with some versions of gcc by adding a
      	cast.
      
      	* help/nautilus-user-manual/es/.cvsignore: Add
      	nautilus-user-manual.junk.
      
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(metafile_read_check_for_directory_callback),
      	(metafile_read_done_callback),
      	(metafile_write_failure_close_callback),
      	(metafile_write_success_close_callback),
      	(metafile_write_create_callback), (directory_load_callback),
      	(directory_count_callback), (new_files_callback), (has_problem),
      	(deep_count_callback), (mime_list_callback),
      	(top_left_read_callback), (get_info_callback),
      	(activation_uri_nautilus_link_read_callback),
      	(activation_uri_gmc_link_read_callback),
      	(cancel_activation_uri_for_file): Add ref/unref pairs that we need
      	in callbacks that use NautilusDirectory objects but that also send
      	out signals which might end up unref'ing them.
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(nautilus_self_check_file_operations): Add tests to demonstrate
      	bug 7701.
      
      	* libnautilus-extensions/nautilus-smooth-text-layout-cache.c:
      	(nautilus_self_check_smooth_text_layout_cache): Fix some destroys
      	that should have been unrefs.
      
      	* libnautilus-extensions/nautilus-string.c:
      	(nautilus_self_check_string): Added tests for
      	nautilus_str_get_after_prefix.
      1c5c03bc
    • Stano Visnovsky's avatar
      Updated Slovak translation · 93b00cb5
      Stano Visnovsky authored
      93b00cb5
    • Christian Rose's avatar
      Improved the Swedish translation, thanks goes to Göran Uddeborg · d606b236
      Christian Rose authored
      <goeran@uddeborg.pp.se>.
      d606b236
  7. 14 Mar, 2001 6 commits
    • Gene Z. Ragan's avatar
      Handle a case where Netscape submits duplicate drag data before the first · 19a003d9
      Gene Z. Ragan authored
      2001-03-14  Gene Z. Ragan  <gzr@eazel.com>
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(drag_data_received_callback):
      	Handle a case where Netscape submits duplicate drag data
      	before the first instance of the data has been freed.
      19a003d9
    • Gene Z. Ragan's avatar
      Fixed a minor annoying layout bug on the desktop. When icons were placed · 959703aa
      Gene Z. Ragan authored
      2001-03-14  Gene Z. Ragan  <gzr@eazel.com>
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(icon_set_position):
      	Fixed a minor annoying layout bug on the desktop. When icons were placed
      	near the bottom of the desktop, they would sometimes jump
      	partially offscreen.
      959703aa
    • John Sullivan's avatar
      Fixed bug 7696 ("Find" does nothing if location bar hidden) · 0805af3e
      John Sullivan authored
      	* src/nautilus-window-menus.c:
      	(file_menu_toggle_find_mode_callback): Show location bar
      	if it had been hidden. This is used by both Find/Browse menu
      	item and Find button.
      0805af3e
    • John Sullivan's avatar
      Fixed bug 7597 (Cut Text's underline accelerator changes · 89cdddf3
      John Sullivan authored
      	to conflict with Copy Text's when a text field is focussed)
      
      	* libnautilus/nautilus-clipboard-ui.xml: Changed _Cut Text
      	to Cut _Text here, to match what it is when no text field
      	is focussed.
      89cdddf3
    • Ramiro Estrugo's avatar
      Dont clobber any fonts that the user might have installed in ~/.nautilus. · 14eec077
      Ramiro Estrugo authored
      	* helper-scripts/nautilus-restore-settings-to-default.sh:
      	Dont clobber any fonts that the user might have installed in
      	~/.nautilus.  This is a bit of hack, but its very inconvenient to
      	have these fonts be trashed when testing Nautilus in a "from
      	scratch" environment.
      
      	* nautilus.spec.in:
      	Add the "restore settings to default" script to the package.
      14eec077
    • Gene Z. Ragan's avatar
      I have been itching to check some code in for 1.2, so now I am doing it! · fa8d59b3
      Gene Z. Ragan authored
      2001-03-13  Gene Z. Ragan  <gzr@eazel.com>
      
      	I have been itching to check some code in for 1.2,
      	so now I am doing it!
      
      	This will enable drag support from Netscape to Nautilus.
      	Only the desktop handles the drags for now. When I complete
      	the async calls in NautilusFile, it will be safe to have the signal
      	handled by other views such as FMDirectoryView.
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	* libnautilus-extensions/nautilus-icon-container.h:
      	(nautilus_icon_container_initialize_class):
      	Change name of signal create_nautilus_links
      	to handle_uri_list.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(drag_data_received_callback), (receive_dropped_uri_list),
      	(nautilus_icon_container_get_drop_action):
      	Add more general logic to handle a drop of a list of URIs.
      	Don't expect them to only contain only the paths to
      	gmc desktop entries.
      
      	* src/file-manager/fm-desktop-icon-view.c:
      	(fm_desktop_icon_view_initialize):
      	Connect to changed signal name handle_uri_list.
      
      	(icon_view_handle_uri_list):
      	Use more generalized logic to handle a drop of a URI list.
      	Determine what the list element contains and either convert from
      	a DesktopEntry or create a link that contains a URI.
      fa8d59b3
  8. 13 Mar, 2001 4 commits
  9. 12 Mar, 2001 6 commits