* src/file-manager/fm-list-view.c:
(tree_selection_foreach_set_boolean): New.
(tree_selection_not_empty): New.
(tree_view_has_selection): New.
(event_after_callback): Handle only clicks in the bin_window.
Also, decide which menu to display by whether an item is selected
or not rather than by where the click is.
(button_press_callback): Deselect all items when you click on the
background.
(create_and_set_up_tree_view): Connect the new handler.
2002-03-05 Dave Camp <dave@ximian.com>
* components/notes/nautilus-notes.c:
(notify_listeners_if_changed): Remove the #ifdef
GNOME2_CONVERSION_COMPLETE and replace
bonobo_property_bag_notify_listeners with a
bonobo_event_source_notify_listeners_full call.
(make_notes_view): Remove the #ifdef GNOME2_CONVERSION_COMPLETE
and send the proper arguments to bonobo_control_set_properties.
2002-03-05 Anders Carlsson <andersca@gnu.org>
* src/file-manager/fm-list-view.c
(event_after_callback):
Display the background context menu if no item is
selected.
2002-03-05 Jens Finke <jens@triq.net>
* components/adapter/nautilus-adapter-stream-load-strategy.c
(nautilus_adapter_stream_load_strategy_load_location): Escape '!'
character in URIs before using it as a moniker string.
2002-03-05 Michael Meeks <michael@ximian.com>
* src/file-manager/fm-directory-view.c
(fm_directory_view_supports_zooming): check if
zoomable is non NULL.
(fm_directory_view_destroy): NULL the zoomable at
the same time as the nautilus_view, since they're
the same aggregate.
2002-03-05 Michael Meeks <michael@ximian.com>
* libnautilus-private/nautilus-icon-factory.c
(get_image_cache_view): impl.
(cache_icon_new): add the icon to the cache view.
(cache_icon_unref): destroy the icon's view widget.
* src/file-manager/fm-directory-view.c: (real_file_limit_reached):
Fix a stray NautilusFile unref that could cause big trouble.
* src/file-manager/fm-list-view.c: (event_after_callback): New,
puts up a menu when you right-click.
(create_and_set_up_tree_view): Attach new handler.
(fm_list_view_reset_to_defaults): Make this compile.
* src/file-manager/fm-directory-view.c:
(real_get_selected_icon_locations): Put a default one in here, since
there are only really icon locations for FMIconView.
(fm_directory_view_class_init): Set up default get_selected_icon_locations.
* src/file-manager/fm-list-model.c:
(fm_list_model_get_sort_column_id_from_attribute): Allow NULL.
(fm_list_model_get_sort_column_id_from_sort_type): Handle all types.
* src/file-manager/fm-list-view.c:
(set_sort_order_from_metadata_and_preferences): Fix to handle unknown
values in metadata.
(fm_list_view_reset_to_defaults): New.
(fm_list_view_class_init): Hoom up the new reset_to_defaults function.
* src/file-manager/fm-directory-view.c: Formatting tweaks.
* src/file-manager/fm-list-model.c: (remove_link_saving_prev):
Fix bug where it would skip every other node.
* src/file-manager/fm-list-view.c: (fm_list_view_select_all): New.
(fm_list_view_class_init): Add placeholders for things we need to
implement to satisfy FMDirectoryView. Implement one: select all.
* libnautilus-private/nautilus-global-preferences.c:
(nautilus_global_preferences_init_with_folder_browsing):
Call the real nautilus_global_preferences_init. Without this, all
hell breaks loose.
* libnautilus/nautilus-clipboard.c:
(merge_in_clipboard_menu_items), (merge_out_clipboard_menu_items):
Don't do anything if things are NULL. Helps us destroy cleanly.
(focus_changed_callback): Add missing gboolean return value. These
days, signal handlers have to be more careful.
(target_destroy_callback): NULL things out instead of freeing
since destroy can happen more than once.
(nautilus_clipboard_set_up_editable): Do a weak ref so the target
data gets freed.
(first_focus_callback): Add missing gboolean return value. These
days, signal handlers have to be more careful.
* src/file-manager/fm-properties-window.c: (name_field_focus_out):
Return FALSE, not TRUE.
* libnautilus-private/nautilus-directory.c:
(nautilus_directory_notify_files_removed): Don't pay any attention
if we're told about removal of a file we're renaming.
* libnautilus-private/nautilus-file-private.h: Add new call to tell
if the file is being renamed.
* libnautilus-private/nautilus-file.c: (rename_guts): Set flag to
say this file is being renamed.
(nautilus_file_rename_in_progress): New.
2002-03-04 Michael Meeks <michael@ximian.com>
* libnautilus-private/nautilus-global-preferences.c
(nautilus_global_preferences_init): split out the ultra slow
gnome-vfs thrashing bit into here
(nautilus_global_preferences_init_with_folder_browsing):
* src/nautilus-main.c (main): do a full init here so we
get the folder browsing setup.
* src/nautilus-sidebar-tabs.h:
* src/nautilus-sidebar-tabs.c: (get_property_bag): Check for a
NULL tab_view.
(tab_item_destroy): Remove the weak pointer we now use for the
tab_view lifetime.
(nautilus_sidebar_tabs_connect_view): Add g_return_if_fail.
(nautilus_sidebar_tabs_add_view): Add a weak pointer so we don't
have trouble outside the tab_view lifetime.
(nautilus_sidebar_tabs_set_title_mode): Check incoming boolean.
(nautilus_sidebar_tabs_set_visible): Check incoming boolean.
* libnautilus-private/nautilus-global-preferences.c:
* libnautilus-private/nautilus-global-preferences.h:
* src/nautilus-preferences-dialog.c:
* src/nautilus-window-menus.c:
(nautilus_window_initialize_menus_part_1):
* src/nautilus-window.c:
* src/nautilus-window.h:
Remove the web search preference and the remnants of the "go to
web search" feature.
* src/file-manager/fm-directory-view.c:
(icons_changed_callback): New function.
(fm_directory_view_init): Connect to icons_changed_callback so that the
scripts menus will observe theme changes.
(fm_directory_view_finalize): Remember to remove NAUTILUS_PREFERENCES_*
callbacks when we are done with them.
2002-03-04 Alexander Larsson <alla@lysator.liu.se>
* libnautilus-adapter/Makefile.am:
* libnautilus-private/Makefile.am:
* libnautilus/Makefile.am:
Bump major soname version to 2. Should fix bug #73142.
2002-03-03 Alexander Larsson <alla@lysator.liu.se>
Based on patch from Richard Hestilow <hestilow@ximian.com>
* Makefile.am: Add libbackground directory
* configure.in: Add CAPPLET flags and libs for libbackground
Add libbackground/Makefile to list of Makefiles
* libnautilus-private/Makefile.am: Add libbackground to
dependency_static_libs
* libnautilus-private/nautilus-directory-background.c:
(nautilus_connect_desktop_background_to_file_metadata),
(nautilus_file_background_read_desktop_settings),
(nautilus_file_background_write_desktop_settings),
(desktop_background_destroyed_callback),
(desktop_background_gconf_notify_cb),
(nautilus_file_background_receive_gconf_changes),
(set_root_pixmap): Implement reading and writing of
desktop background setting using libbackground.
2002-03-03 Alexander Larsson <alla@lysator.liu.se>
Patch from Diego Gonzlez <dggonz@yahoo.com>.
* libnautilus-private/nautilus-horizontal-splitter.c:
(splitter_hide), (splitter_show), (splitter_is_hidden),
(nautilus_horizontal_splitter_expand),
(nautilus_horizontal_splitter_hide),
(nautilus_horizontal_splitter_show),
(nautilus_horizontal_splitter_is_hidden):
* libnautilus-private/nautilus-horizontal-splitter.h:
Code to hide and show the sidebar fully.
* src/nautilus-window.c: (nautilus_window_hide_sidebar),
(nautilus_window_show_sidebar), (nautilus_window_sidebar_showing):
Use the new horizontal splitter functions.
2002-03-03 Alexander Larsson <alla@lysator.liu.se>
* libnautilus-private/nautilus-directory-background.c
(desktop_background_realized): Call
eel_background_set_is_constant_size() on the desktop
background to avoid flashing with gradients.
* configure.in:
Require eel 1.1.6
* components/throbber/nautilus-throbber.c:
(nautilus_throbber_instance_init), (nautilus_throbber_finalize):
* src/file-manager/fm-directory-view.c:
(fm_directory_view_finalize), (real_merge_menus):
* src/nautilus-window-menus.c: (help_menu_about_nautilus_callback):
Use eel_add_weak_pointer, since it's more foolproof than
g_object_add_weak_pointer. Also fix the about case so that
it only adds the weak pointer once per created window.
* libnautilus-private/nautilus-dnd.h:
Move reset constant into header.
* libnautilus-private/nautilus-file.c:
(nautilus_file_get_display_name): Use g_locale_to_utf8, so this
works even when G_BROKEN_FILENAMES is not set.
* libnautilus-private/nautilus-icon-dnd.c:
Rearrange and clean up code a bit.
* src/nautilus-property-browser.c:
(nautilus_property_browser_destroy), (add_new_pattern),
(show_color_selection_window), (add_new_color), (add_new_emblem):
* src/nautilus-sidebar-title.c: (update_icon): Get rid of dead
code that gets uri and doesn't use it. It's been showing up in bug
reports too, so this is especially nice.
* src/nautilus-window-manage-views.h:
* src/nautilus-window-manage-views.c:
(nautilus_window_manage_views_destroy),
(nautilus_window_manage_views_finalize): Break this up into two
functions again.
* src/nautilus-window.c: (nautilus_window_destroy): Re-add this,
because some of the cleanup has to be done at destroy time.
(nautilus_window_finalize): Move some of this out.
(nautilus_window_class_init): Set up both.
* components/text/nautilus-text-view.c:
* components/tree/nautilus-tree-model.c:
* libnautilus-private/nautilus-file-operations.c:
* libnautilus-private/nautilus-program-choosing.c:
* src/file-manager/fm-directory-view.c:
* src/nautilus-bookmark-list.c:
Miscellaneous porting to new names of functions, getting off
less-desirable functions.
* src/nautilus-window-manage-views.h:
* src/nautilus-window-manage-views.c: (begin_location_change): Add
a ref/unref so that window->details won't go away at an
inopportune time.
(nautilus_window_manage_views_finalize): Rename from destroy.
* src/nautilus-window.c: (load_mini_icon): Break into separate
function.
(set_up_default_icon_list): Break into separate function.
(nautilus_window_finalize): Change from destroy to finalize.
(nautilus_window_class_init): Move to bottom of file and simplify the
code a bit.
* src/file-manager/fm-directory-view.c:
(add_script_to_script_menus), (add_submenu_to_script_menus),
(update_directory_in_scripts_menu):
* src/file-manager/nautilus-directory-view-ui.xml:
Patch from Gaute Lindkvist <lindkvis@stud.ntnu.no> that adds
the script menu to the background right-click menu, not just the one
you get when you click on an object.
2002-03-01 Alexander Larsson <alla@lysator.liu.se>
* libnautilus-private/nautilus-icon-dnd.c (nautilus_icon_dnd_begin_drag):
Events are in bin_window coordinates. Not world coords.
2002-02-28 John Fleck <jfleck@inkstain.net>
* add help/xmldocs.make
* configure.in
* help/nautilus-user-manual/Makefile.am
* help/nautilus-user-manual/C/Makefile.am
* help/nautilus-user-manual/C/nautilus-user-manual-C.omf
* help/nautilus-user-manual/C/nautilus-user-manual.xml (added with
cvs magic as a copy of the old sgml doc with history)
converting old doc to xml and changing the build stuff to the new
GNOME2 docness
2002-02-28 Alexander Larsson <alla@lysator.liu.se>
* src/nautilus-sidebar.c (nautilus_sidebar_class_init):
(nautilus_sidebar_realize): Don't call
gdk_window_set_static_gravities(). That old anti-flicker
trick was just causing lots of flashing.
Remove all traces of nautilus_sidebar_realize.
* libnautilus-private/nautilus-link-desktop-file.c:
(nautilus_link_desktop_file_get_link_icon_from_desktop):
Fix handling of files with Icon entries that are full paths.
* libnautilus-private/nautilus-file.c: Name tweak.
* components/notes/nautilus-notes.c: (do_destroy): Remove some
GNOME2_CONVERSION_COMPLETE code.
* src/nautilus-theme-selector.h:
* src/nautilus-theme-selector.c:
(remove_theme_selector_idle_callback): New.
(remove_theme_selector_changed_callback): Schedule the remove to be done
at idle time, since GtkTreeView can't handle changes to the tree from
inside the selection changed signal.
(theme_selector_finalize): Cancel idle if it's still around.
(for_each_theme_callback), (theme_selector_populate_list),
(theme_selector_update_selected_theme_from_preferences),
(nautilus_theme_selector_get_selected_theme): Return NULL rather
than emitting a g_warning when no theme is selected.
* src/file-manager/fm-directory-view.c: (add_numbered_menu_item):
Escape the path too, not just the menu item name, because the path
contains other menu item names.
(add_submenu): Same.
* libnautilus-private/nautilus-link-desktop-file.c:
(nautilus_link_desktop_file_get_link_icon_from_desktop):
Fix assert where it was calling gnome_vfs_get_uri_from_local_path
on something that wasn't an absolute local path.
2002-02-28 Josh Barrow <drleary@mac.com>
* icons/Makefile.am:
* icons/Services.png:
No-one uses services anymore, remove
* icons/bubble-LL.png:
* icons/bubble-LR.png:
* icons/bubble-UL.png:
* icons/bubble-UR.png:
All of these were for a non-realized Services project.
Remove.
* icons/bullet.png:
This was for the aa version of the stretch handles. If we
decide to make the stretch handles aa, we can "cvs bring them back"
* icons/computer.png:
* icons/computer.svg:
These were both for the ~/Nautilus thing. ~/Nautilus doesn't
exist anymore.
* icons/default/desktop_home.png:
* icons/default/temp-home.png:
Rename temp-home.png to desktop_home.png as it's not very temporary.
It's been there for over a year.
* icons/druid_header.png:
* icons/druid_header_stretch.png:
* icons/druid_sidebar.png:
There's nolonger a first time druid. Remove these.
* icons/expert-selected.png:
* icons/expert.png:
* icons/intermediate-selected.png:
* icons/intermediate.png:
* icons/novice-selected.png:
* icons/novice.png:
There are nolonger user levels. Remove these
* icons/home.png:
* icons/leftarrow.png:
* icons/rightarrow.png:
* icons/uparrow.png:
* icons/search.png:
If I recall, these were from the very first try at theming
support in Nautilus. They haven't been used for a *very* long
time. Remove them.
* icons/netscape.png:
This was used in ~/Nautilus, remove it.
* icons/text-selection-frame.png:
Not used now that there's not an aa v. non-aa thing going on.
* icons/theme_preview.png:
This is now in the default theme folder.
* icons/tiny-alert.png:
* icons/multi-ok.png:
* icons/not.png:
No clue what these were, but I'm certain they're not used anywhere.
* src/file-manager/fm-desktop-icon-view.c:
(update_home_link_and_delete_copies):
Change instance of "temp-home" to "desktop_home"
* libnautilus-private/nautilus-file.c: (in_filesystem): New.
(rename_guts): Rename nautilus_file_rename to this.
(nautilus_file_rename): Convert name to locale encoding if
G_BROKEN_FILENAMES is set.
(nautilus_file_get_display_name): Convert name to UTF-8
assuming the locale character set if it's not valid UTF-8.
It was already doing it when G_BROKEN_FILENAMES was set.
* src/nautilus-sidebar.c: (add_command_buttons): Use
eel_str_replace_substring to replace the %s rather than using
g_strdup_printf. It's not safe to use a string from a data
file as a strdup format string.
* configure.in: Bump librsvg required verson.
2002-02-28 Josh Barrow <drleary@mac.com>
* icons/sierra/Makefile.am:
Remove sierra_green.png
* icons/sierra/sierra.xml:
Change instance of sierra_green.png to #BAC5C0. Why wasn't
this like this to begin with? sierra_green.png was just a
patch of #BAC5C0... what a waste!
* icons/sierra/sierra_green.png:
Remove.
Not certain, but I think that this makes the sierra theme a
tiny bit faster.
2002-02-27 Alexander Larsson <alla@lysator.liu.se>
* src/nautilus-window-menus.c (help_menu_about_nautilus_callback):
Patch from drleary@mac.com, add a weak_pointer to the about-dialog
to catch it being destroyed.
* libnautilus-private/nautilus-find-icon-image.h:
(nautilus_get_icon_file_name): Take extra argument for scalable details
* libnautilus-private/nautilus-find-icon-image.c:
(read_details): If size == 0, read scalable details, looking
for size "*" and using coordinated between 0..1000
(nautilus_get_icon_file_name): Take a scalable_details argument
and fill it out.
* libnautilus-private/nautilus-icon-factory.c
(load_pixbuf_svg): Load svg icons at the right size, considering
their embedded size, the zoom level, and the icon max size.
If there are scalable details availible, scale them and put them
in the unscaled ones.
(load_icon_from_path): Take details and max_size arguments and pass
them to load_pixbuf_rsvg.
(load_named_icon): max_size arg used for svg scaling.
Get scalable details from icon data, pass it on.
(load_icon_for_scaling): Try exact size lookup before trying
the specific zoom level sizes. This is so we don't have to scale
SVGs after their initial rendering.
(get_icon_from_cache, load_icon_scale_if_necessary,
load_specific_icon): Pass on max size as needed.
2002-02-27 Josh Barrow <drleary@mac.com>
* icons/About_Image.png:
* icons/about_background.png:
These are no longer used since we switched to GnomeAbout.
2002-02-27 Jody Goldberg <jody@gnome.org>
* components/music/configure.c : misc minor deprecation removals.
* components/music/fileinfo.c : ditto.
(nautilus_music_view_update) : reconnect the background.
* components/music/nautilus-music-view.c (play_current_file) : convert
to gconf.
* src/file-manager/fm-icon-view.c (preview_audio) : convert to gconf.
* components/hardware/nautilus-hardware-view.c
s/gtk_label_set_wrap/gtk_label_set_line_wrap/
(setup_overview_form) : Use gnome_program_locate_file to find iconf
from gnome-mime-data.
* components/hardware/main.c (main) : use nautilus_view_standard_main.
(cb_create_hardware_view) : new work around the odd inheritance of the
view.