1. 01 Jun, 2000 2 commits
  2. 31 May, 2000 17 commits
    • Darin Adler's avatar
      Fixed a bug where I accidentally treated root as "unable to access · d90f8124
      Darin Adler authored
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_denies_access_permission): Fixed a bug where I
      	accidentally treated root as "unable to access anything" instead
      	of "able to access everything".
      
      	* src/nautilus-sidebar-tabs.h: Fixed file name in include guard.
      	I'll probably need to write a script to find the broken ones.
      
      	* src/nautilus-window-manage-views.c: (handle_unreadable_location):
      	Fixed a bug where we unref's a file object before using it.
      
      	* src/nautilus-window-private.h: Got rid of a straggler prototype
      	for a nonexistent function.
      
      	* RENAMING: Some are done.
      d90f8124
    • John Sullivan's avatar
      Got rid of enum NautilusProgramChooserType, replaced with equivalent but · bf1ebf39
      John Sullivan authored
      	* libnautilus-extensions/nautilus-program-chooser.c:
      	(populate_program_list), (nautilus_program_chooser_new),
      	(nautilus_program_chooser_get_application),
      	(nautilus_program_chooser_get_component):
      	* libnautilus-extensions/nautilus-program-chooser.h:
      	* libnautilus-extensions/nautilus-program-choosing.c:
      	(set_up_program_chooser), (nautilus_choose_component_for_file),
      	(nautilus_choose_application_for_file): Got rid of enum
      	NautilusProgramChooserType, replaced with equivalent but
      	more general enum GnomeVFSMimeActionType.
      bf1ebf39
    • John Sullivan's avatar
      libnautilus-extensions/nautilus-mime-type.c, Removed these files, which · 92d3ad35
      John Sullivan authored
      	* libnautilus-extensions/nautilus-mime-type.c,
      	* libnautilus-extensions/nautilus-mime-type.h:
      	Removed these files, which had contained the old stopgap
      	mime-type-to-application table.
      	* libnautilus-extensions/Makefile.am: Take removed files out
      	of build.
      	* src/nautilus-property-browser.c,
      	* src/nautilus-sidebar.c: Remove #includes for removed files.
      92d3ad35
    • John Sullivan's avatar
      Change the way data from program lists is freed; this clarifies the code · 13ffa5fe
      John Sullivan authored
      	* libnautilus-extensions/nautilus-program-chooser.c:
      	(populate_program_list): Change the way data from program lists
      	is freed; this clarifies the code and fixes a double-destroy.
      	* src/nautilus-sidebar.c: (nautilus_sidebar_update_buttons):
      	Don't display "Open With..." button if there are no available
      	choices. This fixes part of bug 1044 (need to do the same
      	kind of thing for menus).
      13ffa5fe
    • Andy Hertzfeld's avatar
      added -q option to mpg123 invocation for sound previewing; at Susan's · b0af9ffe
      Andy Hertzfeld authored
      
              added -q option to mpg123 invocation for sound previewing; at Susan's
      	suggestion made the selection box 25% opaque instead of 50%
      b0af9ffe
    • Darin Adler's avatar
      Another cut on the desktop. Way closer. · 91fc8d21
      Darin Adler authored
      	* libnautilus-extensions/Makefile.am:
      	* libnautilus-extensions/nautilus-generous-bin.h:
      	* libnautilus-extensions/nautilus-generous-bin.c:
      	Added a new class NautilusGenerousBin. This is a GtkBin
      	subclass that gives its entire allocation to its child.
      	Used both in the widgetry for desktop windows and as a
      	base class for NautilusViewFrame for now.
      
      	* libnautilus-extensions/nautilus-gnome-extensions.c:
      	(turn_on_line_wrap_flag), (turn_on_line_wrap_flag_callback):
      	Changed to use gtk_container_foreach instead of the old
      	gtk_container_children, since I now understand that the
      	latter is just a convenience cover for the former.
      
      	* src/Makefile.am:
      	* src/nautilus-window-state.c: [removed]
      	* src/nautilus-window-state.h: [removed]
      	The only function in here was a wonky one that did goto_uri
      	of go_home depending on the parameter. Changed the callers
      	and things got clearer anyway.
      
      	* src/nautilus-application.h:
      	* src/nautilus-application.c: (display_caveat),
      	(nautilus_app_startup):
      	* src/nautilus-main.c: (main):
      	Changed rules about which windows are created on startup. This
      	puts us into a slightly bad state because it's now easy to
      	create a desktop window with no way to get rid of it.
      
      	* src/nautilus-desktop-window.h:
      	* src/nautilus-desktop-window.c:
      	(nautilus_desktop_window_initialize_class),
      	(nautilus_desktop_window_initialize), (destroy), (realize):
      	A better cut at the desktop window creation that now mostly works.
      
      	* src/nautilus-main.c: (main):
      	Changed the "--desktop" option's name to "--manage-desktop".
      
      	* src/nautilus-view-frame.h:
      	* src/nautilus-view-frame.c:
      	(nautilus_view_frame_initialize_class),
      	(nautilus_view_frame_initialize),
      	(nautilus_view_frame_destroy_client),
      	(nautilus_view_frame_destroy),
      	(nautilus_view_frame_construct_arg_set):
      	Changed to use NautilusGenerousBin as base class. Also use the
      	Nautilus boilerplate macros.
      
      	* src/nautilus-window-manage-views.c:
      	(nautilus_window_request_location_change):
      	Use goto_uri instead of set_initial_state.
      
      	* src/nautilus-window-private.h:
      	* src/nautilus-window.h:
      	* src/nautilus-window.c: (nautilus_window_go_home):
      	Make go_home public and move the actual code needed to go to the
      	home package into the function.
      
      	* src/nautilus-window.c: (nautilus_window_constructed):
      	Reduced the amount of hackery on behalf of the desktop window and
      	used the NautilusGenerousBin class.
      91fc8d21
    • Darin Adler's avatar
      Small updates. · a0095deb
      Darin Adler authored
      	* RENAMING: Small updates.
      
      	* components/help/converters/gnome-info2html2/main.c: (main):
      	* components/html/glibwww-init.c: (glibwww_parse_proxy_env):
      	* components/html/ntl-web-browser.c: (main):
      	* components/loser/content/nautilus-content-loser.c:
      	(ensure_fail_env):
      	* components/loser/sidebar/nautilus-sidebar-loser.c:
      	(ensure_fail_env):
      	* components/notes/nautilus-notes.c: (main):
      	* libnautilus-extensions/nautilus-view-identifier.c:
      	(get_lang_list):
      	* src/nautilus-application.c: (nautilus_app_startup):
      	* src/nautilus-main.c: (main):
      	Changed from getenv to g_getenv, even though it makes no
      	difference right now, because it's "the right thing to do (tm)".
      
      	* components/services/time/nautilus-view/trilobite-eazel-time-view.h:
      	Fixed include (the build was broken for me or anyone who doesn't
      	have old .h files sitting around in their install directory).
      
      	* libnautilus-extensions/nautilus-directory.c:
      	(construct_alternate_metafile_uri):
      	Use nautilus_get_user_directory instead of hard-coding the name
      	of the user directory.
      
      	* libnautilus-extensions/nautilus-file-utilities.h:
      	* libnautilus-extensions/nautilus-file-utilities.c:
      	(nautilus_get_user_directory), (nautilus_get_user_main_directory):
      	Use #defines instead of global constants since these are things
      	that do not change and this is not C++ :-) Added "get_" to the
      	names of these functions so they would be verbs instead of nouns.
      	(nautilus_get_desktop_directory): Added this new function for use
      	by the desktop code.
      
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	(global_preferences_create_dialog),
      	(nautilus_global_preferences_get_enabled_sidebar_panel_view_identifiers),
      	(nautilus_global_preferences_get_disabled_sidebar_panel_view_identifiers),
      	(global_preferences_register_sidebar_panels_preferences_for_ui):
      	* libnautilus-extensions/nautilus-view-identifier.h:
      	* libnautilus-extensions/nautilus-view-identifier.c:
      	(nautilus_view_identifier_list_free):
      	* src/nautilus-applicable-views.c: (nautilus_navigation_info_free):
      	Changed nautilus_view_identifier_free_list to *_list_free to match
      	other calls with similar names.
      
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	(user_level_changed_callback):
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(get_themed_icon_file_path):
      	* src/file-manager/fm-properties-window.c: (get_property_names):
      	* src/nautilus-bookmark-list.c:
      	(nautilus_bookmark_list_get_file_path):
      	* src/nautilus-property-browser.c:
      	(nautilus_property_browser_drag_data_get), (make_drag_image),
      	(remove_color), (remove_background), (remove_emblem),
      	(get_xml_path), (add_background_to_browser), (add_color_to_file),
      	(emblem_dialog_clicked), (make_properties_from_directory):
      	Change to use directory calls by new "get_" names.
      
      	* src/Makefile.am: Removed nautilus.h since it is long gone,
      	and fixed spelling of nautlus-window-state.h.
      
      	* src/file-manager/.cvsignore: Stop ignoring things that we
      	no longer generated.
      
      	* src/file-manager/desktop-item.c: [removed]
      	* src/file-manager/desktop-item.h: [removed]
      	* src/file-manager/desktop-layout.c: [removed]
      	* src/file-manager/desktop-layout.h: [removed]
      	* src/file-manager/desktop-window.c: [removed]
      	* src/file-manager/desktop-window.h: [removed]
      	The rest of the code has been harvested from the desktop
      	implementation. As I said before we can always recover it if we
      	decide we want to reuse it.
      
      	* src/file-manager/fm-main.c: [removed]
      	This was no longer used and was getting out of date. The file manager
      	is now compiled in rather than being a separate process.
      
      	* src/nautilus-desktop-window.c:
      	(nautilus_desktop_window_initialize_class),
      	(nautilus_desktop_window_initialize),
      	(nautilus_desktop_window_new), (realize):
      	Another cut at the desktop code. Still not working too well,
      	but way further along.
      
      	* src/nautilus-sidebar.h:
      	* src/nautilus-sidebar.c:
      	* src/nautilus-view-frame.c:
      	(nautilus_view_frame_handle_client_destroy_2):
      	* src/nautilus-window-manage-views.c:
      	* src/nautilus-window.h:
      	* src/nautilus-window.c:
      	* src/nautilus-window-private.h:
      	Changed the names to use Sidebar instead of IndexPanel.
      	Also changed to say sidebar panel instead of meta view in many
      	places.
      a0095deb
    • Ramiro Estrugo's avatar
      New functions to generate keys for the current user level as well as any · 21faf543
      Ramiro Estrugo authored
      * nautilus-widgets/nautilus-user-level-manager.c:
      (nautilus_user_level_manager_make_gconf_key),
      (nautilus_user_level_manager_make_current_gconf_key):
      * nautilus-widgets/nautilus-user-level-manager.h:
      
      New functions to generate keys for the current user level as well
      as any other user level.
      21faf543
    • Ramiro Estrugo's avatar
      Fix bug 993. Some frames in the preferences dialog were too big cause the · 0b4251a0
      Ramiro Estrugo authored
      * nautilus-widgets/nautilus-preferences-pane.c:
      (nautilus_preferences_pane_destroy), (prefs_pane_construct):
      
      Fix bug 993.  Some frames in the preferences dialog were too big
      cause the parent vbox was erroneously marked homogenous.
      0b4251a0
    • Ramiro Estrugo's avatar
      Remove the user level pane from the preferences dialog. Place the · 93e47686
      Ramiro Estrugo authored
      user level choices directly in the settings menu.
      
      Also uncouple user level from preferences.  User level is no
      longer a preference itself.
      
      * libnautilus-extensions/nautilus-global-preferences.c:
      (global_preferences_create_dialog),
      (global_preferences_register_for_ui),
      (user_level_changed_callback),
      (nautilus_global_preferences_shutdown),
      (nautilus_global_preferences_startup):
      Remove all of the user level ui stuff.
      
      * nautilus-widgets/nautilus-user-level-manager.c:
      (user_level_manager_new), (nautilus_user_level_manager_initialize),
      (nautilus_user_level_manager_initialize_class),
      (user_level_manager_destroy), (gconf_get_user_level_string),
      (user_level_set_default_if_needed),
      (gconf_user_level_changed_callback),
      (nautilus_user_level_manager_get),
      (nautilus_user_level_manager_set_user_level),
      (nautilus_user_level_manager_get_user_level):
      Emit the the "user_level_changed" signal from a gconf callback
      instead of "by hand".  Otherwise we are out of whack because of
      gconf asyncness.
      
      * src/nautilus-window-menus.c:
      (settings_menu_user_level_radio_group_callback),
      (settings_menu_user_level_customize_callback),
      (settings_menu_customize_callback),
      (nautilus_window_initialize_menus),
      (user_level_menu_path_to_user_level),
      (user_level_user_level_to_menu_path):
      * src/nautilus-window.h:
      Remove the "General Settings" menu item.  Replace it with a
      user level chooser as well as current user level customizer.
      93e47686
    • Pavel Cisler's avatar
      More work on fallback deletion when move to Trash is not available. · e89095d6
      Pavel Cisler authored
      2000-05-31  Pavel Cisler <pavel@eazel.com>
      
      	* src/file-manager/dfos-xfer.c: (fs_move_to_trash):
      	* src/file-manager/fm-directory-view.c: (fm_directory_is_trash),
      	(fm_directory_view_confirm_deletion),
      	(fm_directory_view_trash_or_delete_selection),
      	(duplicate_callback):
      	More work on fallback deletion when move to Trash is not available.
      	Display a warning dialog.
      	Get rid of commented out code that I'll no longer need.
      	Removed FIXMEs that are no longer true.
      e89095d6
    • Andy Hertzfeld's avatar
      finished sound preview task by superimposing an icon to indicate · f77a4a0c
      Andy Hertzfeld authored
      
              finished sound preview task by superimposing an icon to indicate
      	previewing, and terminating the preview better by killing the
      	entire process group.
      f77a4a0c
    • Pavel Cisler's avatar
      Added delete calls that set up a gnome-vfs delete operation. · 4412765d
      Pavel Cisler authored
      2000-05-30  Pavel Cisler  <pavel@eazel.com>
      
      	* src/file-manager/dfos-xfer.h:
      	* src/file-manager/dfos-xfer.c: (handle_xfer_ok),
      	(fs_delete):
      	Added delete calls that set up a gnome-vfs delete operation.
      
      	* src/file-manager/dfos-xfer.c:
      	(fs_xfer), (fs_move_to_trash), (fs_empty_trash):
      	Changed to use new xfer options making it a little
      	clearer which copy engine operation gets to run.
      
      	* src/file-manager/dfos-xfer.c:
      	(fs_xfer), (fs_move_to_trash):
      	Fixed a leak of the item_names list.
      
      	* src/file-manager/dfos-xfer.c:
      	(fs_new_folder):
      	Changed to use "untitled folder".
      
      	* src/file-manager/fm-directory-view.c:
      	(bonobo_menu_move_to_trash_callback),
      	(fm_directory_can_move_to_trash),
      	(fm_directory_view_trash_or_delete_selection), (trash_callback),
      	(compute_menu_item_info), (reset_bonobo_trash_delete_menu),
      	(fm_directory_view_real_merge_menus),
      	(fm_directory_view_real_update_menus),
      	(fm_directory_view_get_context_menu_index):
      	Add logic that picks the Delete/Move To Trash menu items depending
      	on whether selected items can be moved to Trash or not. Added code
      	that decides if items can be moved to Trash from a given folder.
      
      	* src/file-manager/dfos-corba.c: (convert_options):
      	Disabled some dead code.
      4412765d
    • Andy Hertzfeld's avatar
      fixed bug where we'd crash when drawing at the lowest zoom level in · 050fd741
      Andy Hertzfeld authored
      
      	fixed bug where we'd crash when drawing at the lowest zoom level
      	in anti-aliased mode; fixed by checking for the text drawing
      	conditions.
      050fd741
    • John Sullivan's avatar
      Adapted much of the open-with and view-as code to use · 29279c2e
      John Sullivan authored
      	the new API, whose implementation awaits. This causes
      	us to temporarily lose the command-buttons-in-sidebar
      	feature until the new API's implementation happens.
      
      	Some of these changes are only partially done; I've
      	got a list of things to finish still. But feel free
      	to bug me about anything in particular that seems bad.
      
      	* libnautilus-extensions/nautilus-program-chooser.h:
      	* libnautilus-extensions/nautilus-program-chooser.c:
      	(populate_program_list): Use real API to add programs
      	to list in dialog.
      	(nautilus_program_chooser_new): Remember whether this
      	is an application-choosing or component-choosing dialog.
      	(nautilus_program_chooser_get_application),
      	(nautilus_program_chooser_get_component): New functions,
      	get the item in the list that the user selected.
      	* libnautilus-extensions/nautilus-program-choosing.h:
      	Change parameter in NautilusApplicationChoiceCallback
      	from char * to GnomeVFSMimeApplication.
      	* libnautilus-extensions/nautilus-program-choosing.c:
      	(nautilus_choose_application_for_file),
      	(nautilus_choose_component_for_file): Get the chosen
      	item from the dialog instead of returning a hardwired
      	value.
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_chose_application_callback): Take
      	GnomeVFSMimeApplication instead of char *.
      	(add_open_with_gtk_menu_item): Enable menu items now
      	that they work.
      	(launch_application_from_menu_item): New function, callback
      	used when user picks an app from context menu.
      	(view_uri_from_menu_item): New function, callback used
      	when user picks a viewer from context menu.
      	(add_application_to_gtk_menu),
      	(add_component_to_gtk_menu): New functions, set up menu items.
      	(create_open_with_gtk_menu): Use real API to populate
      	open_with context menu items.
      	(bonobo_menu_select_all_callback), (select_all_callback),
      	(fm_directory_view_real_merge_menus):
      	Fixed bug where context menu "Select All" didn't work by
      	separating bonobo and gtk callbacks.
      	* src/nautilus-sidebar.c:
      	(nautilus_index_panel_chose_application_callback),
      	(add_command_buttons), (gnome_vfs_mime_application_list_free),
      	(nautilus_index_panel_update_buttons): Use real API instead
      	of hardwired set of buttons for different MIME types. This
      	currently means you always get only the "Open with ..." button,
      	but the real buttons will reappear once we have our new
      	application-choosing scheme in place.
      29279c2e
    • Maciej Stachowiak's avatar
      Task 1057: Terminal-based programs should open into a new terminal window · eab1242a
      Maciej Stachowiak authored
      	* libnautilus-extensions/nautilus-program-choosing.h,
      	libnautilus-extensions/nautilus-program-choosing.c:
      	(nautilus_launch_application): Take a GnomeVFSMimeApplication *
      	instead of a command string; add gnome-terminal -x
      	(nautilus_launch_application_from_command): Old version that takes
      	a command string renamed. Also, uses `system' instead of `execlp',
      	so command-line arguments in the command string work.
      	* libnautilus-extensions/nautilus-program-chooser.c
      	(launch_mime_capplet): Adjusted to conform.
      	* src/file-manager/fm-directory-view.c
      	(fm_directory_view_launch_application): Likewise.
      	* src/nautilus-sidebar.c: (command_button_callback,
      	nautilus_sidebar_chose_application_callback, add_command_buttons):
      	Likewise.
      	* test/test-nautilus-mime-actions.c (print_application): Show the
      	requires_terminal field for applications.
      eab1242a
    • John Sullivan's avatar
      Adapted much of the open-with and view-as code to use · 703d6566
      John Sullivan authored
      	the new API, whose implementation awaits. This causes
      	us to temporarily lose the command-buttons-in-sidebar
      	feature until the new API's implementation happens.
      
      	Some of these changes are only partially done; I've
      	got a list of things to finish still. But feel free
      	to bug me about anything in particular that seems bad.
      
      	* libnautilus-extensions/nautilus-program-chooser.h:
      	* libnautilus-extensions/nautilus-program-chooser.c:
      	(populate_program_list): Use real API to add programs
      	to list in dialog.
      	(nautilus_program_chooser_new): Remember whether this
      	is an application-choosing or component-choosing dialog.
      	(nautilus_program_chooser_get_application),
      	(nautilus_program_chooser_get_component): New functions,
      	get the item in the list that the user selected.
      	* libnautilus-extensions/nautilus-program-choosing.h:
      	Change parameter in NautilusApplicationChoiceCallback
      	from char * to GnomeVFSMimeApplication.
      	* libnautilus-extensions/nautilus-program-choosing.c:
      	(nautilus_choose_application_for_file),
      	(nautilus_choose_component_for_file): Get the chosen
      	item from the dialog instead of returning a hardwired
      	value.
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_chose_application_callback): Take
      	GnomeVFSMimeApplication instead of char *.
      	(add_open_with_gtk_menu_item): Enable menu items now
      	that they work.
      	(launch_application_from_menu_item): New function, callback
      	used when user picks an app from context menu.
      	(view_uri_from_menu_item): New function, callback used
      	when user picks a viewer from context menu.
      	(add_application_to_gtk_menu),
      	(add_component_to_gtk_menu): New functions, set up menu items.
      	(create_open_with_gtk_menu): Use real API to populate
      	open_with context menu items.
      	(bonobo_menu_select_all_callback), (select_all_callback),
      	(fm_directory_view_real_merge_menus):
      	Fixed bug where context menu "Select All" didn't work by
      	separating bonobo and gtk callbacks.
      	* src/nautilus-sidebar.c:
      	(nautilus_index_panel_chose_application_callback),
      	(add_command_buttons), (gnome_vfs_mime_application_list_free),
      	(nautilus_index_panel_update_buttons): Use real API instead
      	of hardwired set of buttons for different MIME types. This
      	currently means you always get only the "Open with ..." button,
      	but the real buttons will reappear once we have our new
      	application-choosing scheme in place.
      703d6566
  3. 30 May, 2000 9 commits
    • Andy Hertzfeld's avatar
      preview a broader range of sounds using "play", and (completely unrelated) · f665e65e
      Andy Hertzfeld authored
      
               preview a broader range of sounds using "play", and (completely
      	 unrelated) draw the icon stretch handles in anti-aliased mode.
      f665e65e
    • Pavel Cisler's avatar
      New copy engine entry calls supporting New Folder creation. Pass NULL to · 161115bb
      Pavel Cisler authored
      2000-05-30  Pavel Cisler  <pavel@eazel.com>
      
      	* src/file-manager/dfos-xfer.h:
      	* src/file-manager/dfos-xfer.c: (sync_xfer_callback), (fs_xfer),
      	(new_folder_xfer_callback), (fs_new_folder), (fs_move_to_trash),
      	(fs_empty_trash):
      	New copy engine entry calls supporting New Folder creation.
      	Pass NULL to sync_xfer_callback because it doesn't use any pass-thru
      	state.
      
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_initialize_class),
      	(bonobo_menu_new_folder_callback), (start_renaming_item),
      	(new_folder_rename_later), (new_folder_done),
      	(fm_directory_view_new_folder), (compute_menu_item_info),
      	(fm_directory_view_real_create_selection_context_menu_items),
      	(reset_bonobo_open_with_menu),
      	(fm_directory_view_real_merge_menus),
      	(fm_icon_view_start_renaming_item),
      	(fm_icon_view_initialize_class):
      	Add the "New Folder" command. Add a menu item that invokes it.
      	Add code to allow me to select the new folder once it was
      	created and start a rename on it.
      161115bb
    • Ramiro Estrugo's avatar
      Instead of creating our own gconf client, share one with the user level · 3058e232
      Ramiro Estrugo authored
      * nautilus-widgets/nautilus-preferences.c:
      (nautilus_preferences_initialize):
      Instead of creating our own gconf client, share one with the user
      level manager.  Otherwise i get weird gconf connection errors.
      
      * nautilus-widgets/nautilus-user-level-manager.c:
      (user_level_manager_new),
      (nautilus_user_level_manager_initialize_class),
      (user_level_manager_ensure_global_manager),
      (user_level_set_default_if_needed),
      (nautilus_user_level_manager_get),
      (nautilus_user_level_manager_get_user_level),
      (nautilus_user_level_manager_get_user_level_names),
      (nautilus_user_level_manager_get_gconf_client):
      * nautilus-widgets/nautilus-user-level-manager.h:
      Add method to expose a refed gconf client.
      Change the global manager initialization code to prevent stoopid
      infinite loop.  Let gconf know about the ~/.gconf/nautilus
      directory.
      3058e232
    • Ramiro Estrugo's avatar
      New class to manager user level stuff. · 6cb85015
      Ramiro Estrugo authored
      * nautilus-widgets/nautilus-user-level-manager.c:
      (user_level_manager_new), (nautilus_user_level_manager_initialize),
      (nautilus_user_level_manager_initialize_class),
      (user_level_manager_destroy),
      (user_level_manager_get_global_manager),
      (user_level_manager_is_initialized), (get_gconf_user_level_string),
      (user_level_set_default_if_needed),
      (nautilus_user_level_manager_get),
      (nautilus_user_level_manager_set_user_level),
      (nautilus_user_level_manager_get_user_level),
      (nautilus_user_level_manager_get_num_user_levels),
      (nautilus_user_level_manager_get_user_level_names):
      * nautilus-widgets/nautilus-user-level-manager.h:
      New class to manager user level stuff.
      
      * libnautilus-extensions/nautilus-global-preferences.c:
      (nautilus_global_preferences_startup):
      * nautilus-widgets/Makefile.am:
      * nautilus-widgets/nautilus-preferences.c:
      (nautilus_preferences_initialize):
      * nautilus-widgets/nautilus-preferences.h:
      * nautilus-widgets/test-nautilus-preferences.c: (main):
      Undo the last stoopid change cuz the user level stuff is now
      hidden in the NautilusUserLevelManager class.
      6cb85015
    • Pavel Cisler's avatar
      More drag&drop support calls shared between list and icon view. · ed231e9a
      Pavel Cisler authored
      2000-05-30  Pavel Cisler <pavel@eazel.com>
      
      	* libnautilus-extensions/nautilus-drag.c:
      	* libnautilus-extensions/nautilus-drag.h:
      	(nautilus_drag_items_local), (nautilus_drag_can_accept_item),
      	(nautilus_drag_can_accept_items):
      	More drag&drop support calls shared between list and icon view.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_selection_items_local),
      	(receive_dropped_keyword),
      	(nautilus_icon_container_receive_dropped_icons),
      	(nautilus_icon_dnd_update_drop_target):
      	Remove calls that are replaced by nautilus-drag.c equivalents.
      	Tweak some whitespace.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	(nautilus_gtk_marshal_NONE__INT_INT_INT):
      	Add some more signal glue.
      
      	* libnautilus-extensions/nautilus-list.h:
      	* libnautilus-extensions/nautilus-list.c:
      	(nautilus_list_initialize_class), (nautilus_list_drag_drop),
      	(nautilus_list_row_at):
      	Add more drop handling. Add signal that sends of dropped data
      	and context to fm-list-view.c. Added nautilus_list_row_at
      	that fm-list-view.c needs to handle the drop.
      
      	* src/file-manager/fm-directory-view.c:
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-icon-view.c: (icon_view_can_accept_item),
      	(icon_view_get_container_uri), (icon_view_move_copy_items),
      	(create_icon_container), (fm_directory_view_get_uri),
      	(fm_directory_view_move_copy_items),
      	(fm_directory_view_can_accept_item):
      	Rework public calls to not take a container view as an argument
      	and can be used by both list and icon view classes.
      	Add new private signal handler callbacks that replace the
      	public calls.
      
      	* src/file-manager/fm-list-view.c: (fm_list_nautilus_file_at),
      	(fm_list_handle_dropped_icons), (create_list):
      	Drop handling code.
      ed231e9a
    • Ramiro Estrugo's avatar
      Rename (nautilus_preferences_find_preference) to · 009a53f0
      Ramiro Estrugo authored
      * nautilus-widgets/nautilus-preferences-group.c:
      (nautilus_preferences_group_add_item):
      * nautilus-widgets/nautilus-preferences-item.c:
      (preferences_item_construct), (enum_radio_group_changed_callback):
      * nautilus-widgets/nautilus-preferences.c:
      (nautilus_preferences_find_preference):
      * nautilus-widgets/nautilus-preferences.h:
      
      Rename (nautilus_preferences_find_preference) to
      (nautilus_preferences_find_preference) to avoid confusion with a
      function ill add next.
      009a53f0
    • Ramiro Estrugo's avatar
      Cleanup preferences to make the code easier to modify. Name things more · 4a563ae0
      Ramiro Estrugo authored
      * libnautilus-extensions/nautilus-global-preferences.c:
      (nautilus_global_preferences_startup):
      * nautilus-widgets/nautilus-preferences.c:
      (preferences_hash_node_alloc), (preferences_hash_node_free),
      (preferences_hash_node_add_callback),
      (preferences_hash_node_remove_callback),
      (preferences_hash_node_free_func),
      (preferneces_callback_node_alloc),
      (preferneces_callback_node_free),
      (preferneces_callback_node_free_func),
      (preferneces_callback_node_invoke_func), (preferences_register),
      (nautilus_preferences_get_preference),
      (nautilus_preferences_set_info), (set_default_value_if_needed),
      (nautilus_preferences_enum_add_entry),
      (preferences_hash_node_lookup),
      (preferences_hash_node_lookup_with_registration),
      (preferences_gconf_callback),
      (nautilus_preferences_add_boolean_callback),
      (nautilus_preferences_add_enum_callback),
      (nautilus_preferences_add_callback),
      (nautilus_preferences_remove_callback),
      (nautilus_preferences_set_boolean),
      (nautilus_preferences_get_boolean),
      (nautilus_preferences_set_enum), (nautilus_preferences_get_enum),
      (nautilus_preferences_set), (nautilus_preferences_get),
      (nautilus_preferences_initialize),
      (nautilus_preferences_is_initialized),
      (nautilus_preferences_shutdown):
      * nautilus-widgets/nautilus-preferences.h:
      * nautilus-widgets/test-nautilus-preferences.c: (main):
      
      Cleanup preferences to make the code easier to modify.  Name
      things more consistently.  Put global variables in a struct to
      make then clearly distiguishable from local ones.
      
      Also, add change the initialize api to be fed the number of user
      levels and their names.  More on this later.
      4a563ae0
    • Ramiro Estrugo's avatar
      Change preferences startup code to occur in only one place. · 9a05e06f
      Ramiro Estrugo authored
      * components/history/nautilus-history-view.c: (main):
      * libnautilus-extensions/nautilus-global-preferences.c:
      (nautilus_global_preferences_startup):
      * libnautilus-extensions/nautilus-global-preferences.h:
      * src/nautilus-application.c: (nautilus_app_class_init):
      * src/nautilus-main.c: (main):
      
      Change preferences startup code to occur in only one place.
      9a05e06f
    • Andy Hertzfeld's avatar
      implemented task 259, simple UI for previewing sounds, by making the icon · d11a03fb
      Andy Hertzfeld authored
      
              implemented task 259, simple UI for previewing sounds, by making the
      	icon container emit a preview signal when an icon is moused-over.
      	Connect the signal in fm-icon-view, where we inspect the type.
      	For now we just support mp3s, but more sound types are coming soon,
      	and the door's open for other types of previewing.  Use a timeout
      	task to provide an adjustable delay before playing.
      d11a03fb
  4. 29 May, 2000 9 commits
    • John Sullivan's avatar
      Removed unused variable. · 17b8049c
      John Sullivan authored
      	* libnautilus-extensions/nautilus-list.c:
      	(nautilus_list_drag_drop): Removed unused variable.
      17b8049c
    • Pavel Cisler's avatar
      Start splitting out drag&drop code common between icon view and list view · 1356a678
      Pavel Cisler authored
      2000-05-29  Pavel Cisler <pavel@eazel.com>
      
      	* libnautilus-extensions/Makefile.am:
      	* libnautilus-extensions/nautilus-drag.c:
      	* libnautilus-extensions/nautilus-drag.h:
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	* libnautilus-extensions/nautilus-icon-dnd.h:
      	* libnautilus-extensions/nautilus-list.c:
      	(nautilus_drag_selection_item_new), (drag_selection_item_destroy),
      	(nautilus_drag_destroy_selection_list),
      	(nautilus_drag_build_selection_list),
      	(create_selection_shadow),
      	(nautilus_icon_container_dropped_icon_feedback),
      	(drag_data_received_callback),
      	(nautilus_icon_container_ensure_drag_data), (drag_end_callback),
      	(nautilus_icon_container_selection_items_local),
      	(nautilus_icon_canvas_item_can_accept_items), (handle_local_move),
      	(handle_nonlocal_move),
      	(nautilus_icon_container_receive_dropped_icons),
      	(nautilus_icon_container_free_drag_data), (nautilus_icon_dnd_fini),
      	(drag_drop_callback), (nautilus_list_initialize), (nautilus_list_drag_end),
      	(nautilus_list_drag_leave), (nautilus_list_drag_drop),
      	(nautilus_list_drag_data_received):
      	Start splitting out drag&drop code common between icon view and list view
      	into a new file.
      	Start adding drag&drop calls to list view.
      	Bunch of renamings.
      1356a678
    • Ramiro Estrugo's avatar
      New function to access the index for a given string. · 2923a788
      Ramiro Estrugo authored
      * libnautilus-extensions/nautilus-string-list.c:
      (nautilus_string_list_get_index_for_string),
      (nautilus_self_check_string_list):
      * libnautilus-extensions/nautilus-string-list.h:
      New function to access the index for a given string.
      2923a788
    • Ramiro Estrugo's avatar
      Add preference for filename fonts. Not wired up to anything yet. · 428bf455
      Ramiro Estrugo authored
      * libnautilus-extensions/nautilus-global-preferences.c:
      (global_preferences_create_dialog),
      (global_preferences_register_for_ui):
      * libnautilus-extensions/nautilus-global-preferences.h:
      
      Add preference for filename fonts.  Not wired up to anything yet.
      
      * nautilus-widgets/nautilus-preferences-item.c,
      (preferences_item_construct),
      (preferences_item_create_font_family),
      (enum_radio_group_changed_callback),
      (boolean_button_toggled_callback), (font_family_changed_callback):
      * nautilus-widgets/nautilus-preferences-item.h:
      
      Add UI support for choosing a font family via preferences.
      
      * nautilus-widgets/nautilus-string-picker.c:
      (nautilus_string_picker_initialize),
      (nautilus_string_picker_destroy),
      (nautilus_string_picker_set_string_list),
      (nautilus_string_picker_get_text),
      (nautilus_string_picker_set_text):
      * nautilus-widgets/nautilus-string-picker.h:
      
      Add methods to set/get the current text.  Keep track of the string
      list ourselves so that we dont have to peek/poke into internal
      stuff in the gtkcombo.
      428bf455
    • Ramiro Estrugo's avatar
      nautilus-widgets/nautilus-string-picker.c, New widget to pick a string · 7b4e5be3
      Ramiro Estrugo authored
      * nautilus-widgets/nautilus-string-picker.c,
      * nautilus-widgets/nautilus-string-picker.h:
      New widget to pick a string from a list.
      
      * nautilus-widgets/test-nautilus-preferences.c:
      New test program.  Test prefrences things.
      
      * nautilus-widgets/test-nautilus-widgets.c:
      Remove preference tests.  Test only non preference widgetry.
      
      * nautilus-widgets/Makefile.am,
      * nautilus-widgets/.cvsignore:
      Add test-nautilus-preferences.
      7b4e5be3
    • Ramiro Estrugo's avatar
      libnautilus-extensions/nautilus-string-list.h, New function to return the · b6046f5e
      Ramiro Estrugo authored
      * libnautilus-extensions/nautilus-string-list.h,
      * libnautilus-extensions/nautilus-string-list.c:
      (nautilus_string_list_as_g_list): New function to return the
      string list as a GList.
      b6046f5e
    • Ramiro Estrugo's avatar
      Remove unneeded inclusion of nautilus-string-list.h · 7de61352
      Ramiro Estrugo authored
      * libnautilus-extensions/nautilus-global-preferences.h:
      
      Remove unneeded inclusion of nautilus-string-list.h
      
      * libnautilus-extensions/nautilus-global-preferences.c:
      
      Fix a user visible typo in appearance/graphics.
      Add a better description for the sidebar panels pane (bug 304)
      7de61352
    • Andy Hertzfeld's avatar
      added preference for Susan's alternative toolbar icons, which still · 60f644a4
      Andy Hertzfeld authored
      
              added preference for Susan's alternative toolbar icons, which still
      	default to the standard Gnome ones.
      60f644a4
    • Ramiro Estrugo's avatar
      Make sure the preference values are indeed different than the · 69748988
      Ramiro Estrugo authored
      currently stored ones.  Otherwise, bogus callbacks get emitted
      causing innefecient (and unneeded!) things such as directories
      reloading.
      69748988
  5. 28 May, 2000 1 commit
    • Pavel Cisler's avatar
      Used the fixed-up gnome_vfs_shutdown to properly synchronize with GnomeVFS · 3bc14c44
      Pavel Cisler authored
      2000-05-27  Pavel Cisler  <pavel@eazel.com>
      
      	* src/nautilus-application.c: (nautilus_app_quit):
      	Used the fixed-up gnome_vfs_shutdown to properly synchronize
      	with GnomeVFS threads that are still finishing up. Got rid of
      	nautilus_app_real_quit and the other hacky code that I used
      	to do this before gnome_vfs_shutdown was working properly.
      	Got rid of a bunch of FIXMEs that are now take care of.
      
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(cancel_directory_counts), (top_left_read_close),
      	(cancel_top_left_read), (nautilus_metafile_read_cancel),
      	(start_getting_directory_counts), (start_getting_top_lefts):
      	Added cancel calls to the different GnomeVFS async tasks that
      	can be running when opening a Nautilus window, called them
      	from the NautilusDirectory destroy call.
      
      	Nautilus now shuts down GnomeVFS jobs cleanly during a quit.
      	There is still a problem where in some cases it will take a
      	while before the async jobs go away. This seems to be because
      	the corresponding NautilusDirectory doesn't get destroyed right
      	away when a window is closed. I need to get Darin to help me fix
      	this.
      3bc14c44
  6. 27 May, 2000 2 commits
    • Maciej Stachowiak's avatar
      Removed these unused files. Remove them from the build. · 6b25b672
      Maciej Stachowiak authored
      	* libnautilus-extensions/nautilus-scroll-frame.c,
      	libnautilus-extensions/nautilus-scroll-frame.h: Removed these
      	unused files.
      	* libnautilus-extensions/Makefile.am: Remove them from the build.
      6b25b672
    • Maciej Stachowiak's avatar
      components/history/ntl-history-view.c -> · a15fd9f8
      Maciej Stachowiak authored
      	* Renamed files as follows, as per RENAMING:
      	components/history/ntl-history-view.c -> components/history/nautilus-history-view.c
      	components/history/ntl-history-view.oafinfo -> components/history/nautilus-history-view.oafinfo
      	components/notes/ntl-notes.c -> components/notes/nautilus-notes.c
      	components/notes/ntl-notes.oafinfo -> components/notes/nautilus-notes.oafinfo
      	libnautilus-extensions/gtkscrollframe.c -> libnautilus-extensions/nautilus-scroll-frame.c
      	libnautilus-extensions/gtkscrollframe.h -> libnautilus-extensions/nautilus-scroll-frame.h
      	libnautilus/nautilus-view-frame.c -> libnautilus/nautilus-view.c
      	libnautilus/nautilus-view-frame.h -> libnautilus/nautilus-view.h
      	src/nautilus-index-tabs.c -> src/nautilus-sidebar-tabs.c
      	src/nautilus-index-tabs.h -> src/nautilus-sidebar-tabs.h
      	src/nautilus-index-title.c -> src/nautilus-sidebar-title.c
      	src/nautilus-index-title.h -> src/nautilus-sidebar-title.h
      	src/nautilus-zoomable-frame-svr.c -> src/nautilus-zoomable-frame-corba.c
      	src/ntl-app.c -> src/nautilus-application.c
      	src/ntl-app.h -> src/nautilus-application.h
      	src/ntl-index-panel.c -> src/nautilus-sidebar.c
      	src/ntl-index-panel.h -> src/nautilus-sidebar.h
      	src/ntl-main.c -> src/nautilus-main.c
      	src/ntl-miniicon.c -> libnautilus-extensions/nautilus-mini-icon.c
      	src/ntl-miniicon.h -> libnautilus-extensions/nautilus-mini-icon.h
      	src/ntl-uri-map.c -> src/nautilus-applicable-views.c
      	src/ntl-uri-map.h -> src/nautilus-applicable-views.h
      	src/ntl-view-bonobo-control.c -> src/nautilus-view-frame-bonobo-control.c
      	src/ntl-view-bonobo-subdoc.c -> src/nautilus-view-frame-bonobo-embeddable.c
      	src/ntl-view-frame-svr.c -> src/nautilus-view-frame-corba.c
      	src/ntl-view-nautilus.c -> src/nautilus-view-frame-nautilus-view.c
      	src/ntl-view-private.h -> src/nautilus-view-frame-private.h
      	src/ntl-view.c -> src/nautilus-view-frame.c
      	src/ntl-view.h -> src/nautilus-view-frame.h
      	src/ntl-window-msgs.c -> src/nautilus-window-manage-views.c
      	src/ntl-window-msgs.h -> src/nautilus-window-manage-views.h
      	src/ntl-window-private.h -> src/nautilus-window-private.h
      	src/ntl-window-state.c -> src/nautilus-window-state.c
      	src/ntl-window-state.h -> src/nautilus-window-state.h
      	src/ntl-window.c -> src/nautilus-window.c
      	src/ntl-window.h -> src/nautilus-window.h
      
      	* components/history/Makefile.am, components/notes/Makefile.am,
      	libnautilus-extensions/Makefile.am, libnautilus/Makefile.am,
      	po/POTFILES.in, src/Makefile.am,
      	components/hardware/nautilus-hardware-view.h,
      	components/loser/content/nautilus-content-loser.h,
      	components/loser/sidebar/nautilus-sidebar-loser.h,
      	components/mozilla/nautilus-mozilla-content-view.h,
      	components/music/nautilus-music-view.h,
      	components/rpmview/nautilus-rpm-view.h,
      	components/sample/nautilus-sample-content-view.h,
      	components/services/startup/nautilus-view/nautilus-service-startup-view.h,
      	libnautilus/libnautilus.h, src/nautilus-desktop-window.h,
      	src/nautilus-window-menus.c, src/nautilus-window-toolbars.c,
      	src/file-manager/fm-directory-view.h : Updated for renamings.
      
      	* RENAMING: removed old renamings
      a15fd9f8