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.
* libnautilus-private/nautilus-directory-metafile.c:
(free_factory): Just release, don't unref.
(get_metafile): Don't keep a ref. Also fix CORBA objref leak.
* libnautilus-private/nautilus-icon-factory.c:
(get_icon_from_cache):
* libnautilus-private/nautilus-metafile-factory.c:
(nautilus_metafile_factory_get_instance): Return the same
instance each time, don't ref, since lifetime is not managed
by ref counting.
* libnautilus/nautilus-clipboard.c:
(initialize_clipboard_component_with_callback_data):
Get rid of BonoboUIComponent leak.
* src/nautilus-application.c: Formatting tweaks.
* libnautilus-private/nautilus-bookmark.c: Minor cleanup.
* test/Makefile.am:
* test/test-nautilus-async-activation.c: Remove.
2002-02-27 Michael Meeks <michael@ximian.com>
* libnautilus-private/nautilus-file-operations.c
(handle_transfer_overwrite, handle_transfer_vfs_error),
(handle_transfer_overwrite): pass a widget context to
help pango.
(extract_and_ellipsize_file_name_for_dialog),
(format_and_ellipsize_uri_for_dialog): pass pango context
to ellipsization.
(ellipsize_string_for_dialog): re-implement for pango.
(get_label_font): kill.
* src/nautilus-sidebar-tabs.c: (make_tab_text_layout): New
(draw_one_tab_plain), (draw_one_tab_themed), (get_tab_width):
Use common function to create PangoLayout so we don't forget
anything. The old code forgot to set the font description in
one case, leading to wrong-looking sidebar tabs.
* src/nautilus-theme-selector.h:
* src/nautilus-theme-selector.c: Minor cleanup.
2002-02-25 Dave Camp <dave@ximian.com>
* components/news/nautilus-news-pixmaps.h: Removed.
* components/news/Makefile.am: Build
nautilus-cell-renderer-news.c, don't build
nautilus-news-pixmaps.h.
* components/news/nautilus-news.c:
(toggle_open_state), (rss_logo_callback),
(set_bonobo_properties), (rss_read_done_callback),
(max_items_changed), (set_views_for_mode), (switch_page),
(configure_button_clicked), (add_site_button_clicked),
(add_site_from_fields), (remove_selected_site),
(nautilus_news_load_location), (empty_message_size_allocate),
(set_up_edit_widgets), (set_up_configure_widgets),
(set_up_main_widgets), (make_news_view): use a GtkNotebook to
store the pages of the news view, and switch between them instead
of individually hiding and showing the widgets when pages are
flipped. This allowed all the size negotiation code to go away,
as the GtkNotebook takes care of it.
* components/news/nautilus-news.c: (update_node),
(get_channel_markup), (get_item_markup), (set_bonobo_properties),
(do_destroy), (go_to_uri), (set_row_widths), (wrap_idle),
(nautilus_news_size_allocate), (node_data_for_path),
(nautilus_news_activate_path), (nautilus_news_row_activated),
(nautilus_news_button_release_event), (nautilus_news_set_title),
(free_rss_data_item), (free_channel),
(nautilus_news_set_news_changed), (clear_channel_changed_flags),
(nautilus_news_make_channel_document), (rss_logo_callback),
(extract_items), (has_matching_uri), (mark_new_items),
(extract_rss_title), (extract_scripting_news_title),
(rss_read_done_callback), (nautilus_news_insert_channel),
(nautilus_news_load_channel), (detach_items), (remove_items),
(update_channels), (update_items),
(nautilus_news_make_new_channel), (nautilus_news_add_channels),
(nautilus_news_load_images), (nautilus_news_cell_data_func),
(nautilus_news_row_expanded), (nautilus_news_row_collapsed),
(max_items_changed),
(add_channel_to_remove_list), (add_site_from_fields),
(remove_selected_site), (add_command_buttons),
(nautilus_news_load_location), (add_channel_entry),
(empty_message_size_allocate), (make_remove_widgets),
(set_up_configure_widgets), (set_up_main_widgets),
(make_news_view): Use a GtkTreeView to render the news.
(make_news_view): Remove the #ifdef GNOME2_CONVERSION_COMPLETE
and send the proper arguments to bonobo_control_set_properties.
(nautilus_news_set_news_changed): Remove the #ifdef
GNOME2_CONVERSION_COMPLETE and replace
bonobo_property_bag_notify_listeners with a
bonobo_event_source_notify_listeners_full call.
2002-02-26 Alexander Larsson <alla@lysator.liu.se>
* libnautilus-private/nautilus-icon-factory.c (load_icon_for_scaling):
Fix typo that used NAUTILUS_ZOOM_LEVEL_STANDARD instead of
NAUTILUS_ICON_SIZE_STANDARD. This made nautilus cache many icons twice.
(get_icon_from_cache): Need to handle the case where an inner
get_icon_from_cache call already put the icon in the cache.
2002-02-27 Michael Meeks <michael@ximian.com>
* libnautilus-private/nautilus-undo-manager.c
(corba_append, corba_forget, corba_undo): fix the
undo manager impl. to map the servant properly.
2002-02-26 Michael Meeks <michael@ximian.com>
* libnautilus-private/nautilus-entry.c
(nautilus_entry_get_type): write out in full so we
can handle the editable interface.
(nautilus_entry_editable_init): setup the editable
interface.
(nautilus_entry_set_selection_bounds),
(nautilus_entry_insert_text),
(nautilus_entry_delete_text): re-instate.
* Many files:
Simplified calls to bonobo_object_ref/unref.
* components/history/nautilus-history-view.c: (update_history):
Fixed so that a history update while one is already in progress
will work properly.
* libnautilus/nautilus-view.c:
(remove_listener): New.
(update_listener): Renamed from nautilus_view_set_frame, made it
handle various cases better. Fixed leak of property bag.
(forget_cached_view_frame): New.
(nautilus_view_set_frame_callback): Use new forget_cached_view_frame
and update_listener.
(nautilus_view_construct_from_bonobo_control): Use
g_signal_connect_object. Not sure if this is better, since they
are part of the same aggregate.
(nautilus_view_finalize): Use new forget_cached_view_frame and
remove_listener.
(nautilus_view_dispose): Use new forget_cached_view_frame and
remove_listener.
(nautilus_view_get_view_frame): Fixed leak of control frame.
(nautilus_view_set_listener_mask): Simplified, and made it work even
if you call it multiple times, by calling new update_listener.
* libnautilus-private/nautilus-icon-canvas-item.c:
(create_label_layout): Handle NULL font_name case just in case.
* libnautilus-private/nautilus-icon-container.c:
(nautilus_icon_container_set_zoom_level): Use
invalidate_label_sizes instead of setting update_icon_font.
(nautilus_icon_container_set_font_name): Do nothing if font name
doesn't change. If it does, use invalidate_label_sizes rather than
setting update_icon_font.
(nautilus_icon_container_set_font_size_table): Only redraw if font
size changes. Also, use invalidate_label_sizes rather than setting
update_icon_font.
* libnautilus-private/nautilus-directory.c:
(add_preferences_callbacks):
* libnautilus-private/nautilus-icon-factory.c: (get_icon_factory):
Initialize global preferences as needed.
* src/file-manager/fm-icon-view.c: (fm_icon_view_finalize):
* src/file-manager/fm-search-list-view.c: (real_destroy):
* src/nautilus-application.c: (nautilus_application_destroy),
(nautilus_application_create_window),
(nautilus_application_class_init):
* src/nautilus-main.c: (main):
* src/nautilus-view-frame.c: (create_corba_objects): Fix property
bag leak.
2002-02-26 Michael Meeks <michael@ximian.com>
* components/history/nautilus-history-view.c
(update_history): only set the selection if we have
some items.
2002-02-26 David Emory Watson <dwatson@cs.ucr.edu>
* src/nautilus-location-bar.c:
(accumulate_name),
(has_exactly_one_slash): UTF8 fixes.
(try_to_expand_path): UTF8 and gtk_editable fixes.
(get_editable_length): Rename to
(get_editable_number_of_chars): this and include UTF8 fixes.
(editable_key_press_callback): Rename to
(editable_event_after_callback): this. Modify to skip non key_press
events.
(nautilus_location_bar_init): Replace marshaled key_press_event signal
with normal event_after signal.
* libnautilus-private/nautilus-file.c:
(nautilus_file_get_display_name): Patch from Havard Wigtil
that makes us return the right name, rather than returning
an already-freed pointer.
2002-02-26 Anders Carlsson <andersca@gnu.org>
* libnautilus-private/nautilus-drag-window.c
(drag_begin_emission_callback):
Use gtk_widget_get_toplevel to find out the top-level
window.
2002-02-25 Anders Carlsson <andersca@gnu.org>
* libnautilus-private/nautilus-drag-window.c:
(wm_protocols_filter), (nautilus_drag_window_realize),
(nautilus_drag_window_register):
Get the don't-raise-on-drag feature working again.
2002-02-25 Anders Carlsson <andersca@gnu.org>
* components/tree/nautilus-tree-model.c:
(nautilus_tree_model_get_column_type),
(nautilus_tree_model_get_value):
* components/tree/nautilus-tree-model.h:
* components/tree/nautilus-tree-view.c: (create_tree):
Let "Loading" and "Empty" special nodes be italic.
* libnautilus-private/nautilus-global-preferences.c:
(default_font_callback):
Return "sans" here instead of "fixed"
* libnautilus-private/nautilus-icon-canvas-item.c:
(draw_or_measure_label_text), (create_label_layout),
Set font from icon container name, use gdk_gc_set_rgb_fg_color.
* libnautilus-private/nautilus-icon-container.c: (finalize):
(realize), (nautilus_icon_container_init),
(nautilus_icon_container_update_icon),
(nautilus_icon_container_set_zoom_level),
(nautilus_icon_container_request_update_all),
(nautilus_icon_container_get_label_color), (update_label_color),
(nautilus_icon_container_theme_changed),
(nautilus_icon_container_set_font_name),
(nautilus_icon_container_set_font_size_table):
Add support for setting fonts, and fix some bugs with the
label color handling.
* libnautilus-private/nautilus-icon-container.h:
Add nautilus_icon_container_set_font_name and
nautilus_icon_container_set_font_size_table.
* libnautilus-private/nautilus-icon-factory.c:
(embedded_text_font_changed_callback), (embed_text):
Set the font of the embedded text to the default font.
* libnautilus-private/nautilus-icon-private.h:
Add font name and font size table variables to
NautilusIconContainerDetails.
* libnautilus-private/nautilus-program-chooser.c:
(nautilus_program_chooser_init):
Fix button ordering according to the HIG.
* src/file-manager/fm-icon-view.c:
(fm_icon_view_update_icon_container_fonts),
(fm_icon_view_update_icon_container_font_size_table):
Set font name and font size table in the icon container.
* src/nautilus-sidebar-tabs.c:
(nautilus_sidebar_tabs_load_theme_data),
(default_font_changed_callback), (nautilus_sidebar_tabs_init),
(nautilus_sidebar_tabs_destroy), (draw_one_tab_plain),
(draw_one_tab_themed):
Use the "default font" preference.
* src/nautilus-sidebar-title.c:
(nautilus_sidebar_title_class_init),
(default_font_changed_callback), (nautilus_sidebar_title_init),
(nautilus_sidebar_title_destroy), (update_title_font):
Use the "default font" preference.
* src/nautilus-window-menus.c: (help_menu_about_nautilus_callback):
Use the GnomeAbout widget.
2002-02-25 Michael Meeks <michael@ximian.com>
* libnautilus-private/nautilus-file-operations.c
(fit_rect_on_screen, center_dialog_over_rect),
(center_dialog_over_window): kill deprecated code, use
gtk_window_set_transient instead.
* libnautilus-private/nautilus-file-operations-progress.c
(nautilus_file_operations_progress_init): setup the default
dialog width instead of the bar's.
2002-02-21 Michael Meeks <michael@ximian.com>
* libnautilus-private/nautilus-customization-data.c
(add_reset_text): port, requires new eel API.
2002-02-24 Seth Nickell <snickell@stanford.edu>
* src/file-manager/nautilus-indexing-info.c:
(update_progress_display), (index_progress_dialog_new):
Convert deprecated use of GtkProgress to GtkProgressBar
to fix the build.
2002-02-24 Alexander Larsson <alla@lysator.liu.se>
* libnautilus-private/nautilus-directory-background.c (image_loading_done_callback):
Enable gdk_window_set_back_pixmap() again. This limits flicker when
switching workspaces and moving windows.
2002-02-24 Alexander Larsson <alla@lysator.liu.se>
* libnautilus-private/nautilus-icon-container.c (realize):
Don't set background pixmap None. Gtk+ already does that when
scrolling windows these days, and due to a bug in Gtk+ (now fixed)
this was actually making that feature not work!
2002-02-23 Alexander Larsson <alla@lysator.liu.se>
* src/nautilus-window.c (nautilus_window_class_init):
Set the default icon list for all windows.
(nautilus_window_realize): Remove old
GNOME2_CONVERSION_COMPLETE code for setting the window
icon.
* libnautilus-private/nautilus-icon-container.c:
(remove_context_menu_timeout): New.
(clear_drag_state): Use remove_context_menu_timeout.
(motion_notify_event): Use remove_context_menu_timeout.
This fixes a bug where you might end up with two timeouts.
Remove the code marked "KLUDGE ALERT" which seemed to mess
up dragging coordinates.
2002-02-22 Kjartan Maraas <kmaraas@gnome.org>
* components/hardware/main.c: Remove #ifdef ENABLE_NLS since it's not
supported in GNOME 2.
* components/music/fileinfo.c: Same here.
* libnautilus/nautilus-view-standard-main. Here too.
* src/nautilus-main.c: Same here.
2002-02-20 Jody Goldberg <jody@gnome.org>
* components/adapter/Makefile.am : add DISABLE_DEPRECATED_CFLAGS.
* components/adapter/nautilus-adapter-load-strategy.c
(nautilus_adapter_load_strategy_get) : ProgressiveDataSink is gone in
gnome2.
* components/adapter/nautilus-adapter-embed-strategy.c
(nautilus_adapter_embed_strategy_class_init) : use g_cclosure_marshal_*
which are not deprecated.
(nautilus_adapter_embed_strategy_get) : try ControlFactory in place of
Embeddable.
* components/adapter/nautilus-adapter-control-factory-embed-strategy.c :
* components/adapter/nautilus-adapter-control-factory-embed-strategy.c :
Renamed from nautilus-adapter-embeddable-embed-strategy.c
Convert to ControlFactory.
* components/adapter/nautilus-adapter-control-factory-embed-strategy.h :
Convert to G_* casts.
* components/adapter/nautilus-adapter.c :
s/gtk_signal_disconnect/g_signal_handler_disconnect/
* components/image-viewer/: Remove. Michael already took it out of the
tarball, so I am removing it from cvs for clarity.
* libnautilus-private/nautilus-icon-container.c:
(nautilus_icon_container_init): Use g_signal_connect_object with
G_CONNECT_SWAPPED instead of g_signal_connect_closure.
* src/nautilus-desktop-window.c: Some code cleanup.
* libnautilus-private/Makefile.am: Remove nautilus-desktop-file-loader.[ch].
* libnautilus-private/nautilus-desktop-file-loader.c: Remove.
* libnautilus-private/nautilus-desktop-file-loader.h: Remove.
* libnautilus-private/nautilus-directory-async.c:
(link_info_nautilus_link_read_callback): Pass in NULL for the new
optional URI parameter for parsing existing link files.
* libnautilus-private/nautilus-link-desktop-file.h:
* libnautilus-private/nautilus-link-desktop-file.c:
Change to use GnomeDesktopItem instead of NautilusDesktopFile.
* libnautilus-private/nautilus-link.h:
* libnautilus-private/nautilus-link.c:
(nautilus_link_get_link_uri_given_file_contents),
(nautilus_link_get_link_name_given_file_contents),
(nautilus_link_get_link_icon_given_file_contents):
Add optional URI parameter for parsing existing link files. This
is passed down to the GnomeDesktopItem level, which can sometimes
do a better job if it knows the URI.
* src/file-manager/fm-directory-view.c: (activate_callback):
Change to use GnomeDesktopItem instead of NautilusDesktopFile. Also,
simplify error handling.
* Many files:
Fix includes to use <> style in headers more consistently, and remove
unnecessarily includes.
2002-02-20 David Emory Watson <dwatson@cs.ucr.edu>
* src/file-manager/fm-directory-view.c:
(update_scripts_menu): Avoid race condition by resetting
scripts_invalid flag before we build the script menus.
(update_directory_in_scripts_menu): Simplified code.
(add_scripts_directory): Moved into
(add_directory_to_scripts_directory_list): here.
(remove_scripts_directory): Renamed to
(remove_directory_from_scripts_directory_list): this.
(update_scripts_menu): Made code more readable.
2002-02-20 jacob berkman <jacob@ximian.com>
* src/file-manager/nautilus-indexing-info.c:
(show_index_progress_dialog), (show_last_index_time_dialog),
(show_indexing_info_dialog):
s/g_signal_connect_object/g_signal_connect_swapped/, as this was
gtk_signal_connect_object which is not the same as
g_signal_connect_object
2002-02-20 Michael Meeks <michael@ximian.com>
* libnautilus/nautilus-view.c
(nautilus_view_set_frame): don't spew debug as we
disconnect from a dead parent.
* src/nautilus-sidebar-tabs.c
(tab_item_destroy): ditto.
* src/nautilus-window.
(nautilus_window_unrealize): ditto.
2002-02-19 jacob berkman <jacob@ximian.com>
* configure.in: require gnome-desktop library
* libnautilus-private/nautilus-icon-dnd.[ch]:
(nautilus_icon_dnd_uri_list_extract_uris),
(nautilus_icon_dnd_uri_list_free_strings): paste old gnome-mime
code here as we still need it
* libnautilus-private/nautilus-link-desktop-file.[ch]:
(nautilus_link_desktop_file_local_create_from_gnome_entry):
* libnautilus-private/nautilus-link-historical.[ch]:
(nautilus_link_historical_local_create_from_gnome_entry):
* libnautilus-private/nautilus-link.[ch]:
(nautilus_link_local_create_from_gnome_entry):
* src/file-manager/fm-icon-view.c: (icon_view_handle_uri_list):
port to gnome-desktop and re-enable
* src/nautilus-location-bar.c: (drag_data_received_callback): use
new uri list functions
* src/nautilus-zoom-control.c: (draw_number),
(nautilus_zoom_control_unload_images),
(nautilus_zoom_control_load_images): port to PangoLayout and
re-enable text fallback
2002-02-19 jacob berkman <jacob@ximian.com>
* libnautilus-private/nautilus-icon-dnd.c (drag_data_received_callback):
(nautilus_icon_container_free_drag_data): call
gtk_selection_data_copy() and gtk_selection_data_free() rather
than the eel versions
2002-02-19 Michael Meeks <michael@ximian.com>
* src/nautilus-window-manage-views.c
(determined_initial_view_callback): ensure we survive
without trashing the WM, even if we can get no working
mime data at all.
* libnautilus-private/nautilus-icon-container.c
(nautilus_icon_container_init): g_signal_connect_object
is not like gtk_signal_connect_object_while_alive, it's
missing a vital arg. swap.
2002-02-17 Kjartan Maraas <kmaraas@gnome.org>
* libnautilus-private/nautilus-icon-container.c: Remove calls to
gtk_widget_push|pop_visual() since they do nothing now.
* configure.in: Require eel 1.1.5.
* src/nautilus-sidebar-tabs.c
(nautilus_sidebar_tabs_set_color): Use eel_gdk_color_parse () for
backward compatible color spec. parsing.
* src/nautilus-property-browser.c:
(make_color_drag_image): Same as above.
(nautilus_property_browser_drag_data_get): Same as above.
* components/tree/nautilus-tree-model.c:
(schedule_destroy_unneeded_children): Record the idle ID so we can
cancel it properly.
* components/tree/nautilus-tree-view.c: (sort_model_iter_to_file):
New.
(sort_model_path_to_file): Renamed from path_to_file to clarify
which kid of path.
(selection_changed_callback): Replaces the old row_activated_callback.
Switch to the selected directory when you click on a row.
(create_tree): Connect the "changed" to the selection object.
* src/file-manager/fm-directory-view.c: Formatting tweaks.
(update_directory_in_scripts_menu): Fix storage leak.
* src/file-manager/fm-icon-view.c: (renaming_icon_callback): Enable
a bit of GNOME2_CONVERSION_COMPLETE code.
(create_icon_container): Formatting tweaks.
* src/file-manager/fm-directory-view.c:
(metadata_for_directory_as_file_ready_callback),
(metadata_for_files_in_directory_ready_callback):
A few places where we said "=" but meant "==".
* configure.in: Require at least libxml 2.4.7, since that's
the version where xmlFree and friends were moved out of
<libxml/xmlmemory.h>.
* components/news/nautilus-news.c:
* components/text/nautilus-text-view.c:
* libnautilus-private/nautilus-customization-data.c:
* libnautilus-private/nautilus-directory-async.c:
* libnautilus-private/nautilus-find-icon-image.c:
* libnautilus-private/nautilus-link-desktop-file.c:
* libnautilus-private/nautilus-link-historical.c:
* libnautilus-private/nautilus-link.c:
* libnautilus-private/nautilus-metafile.c:
* libnautilus-private/nautilus-theme.c:
* libnautilus-private/nautilus-volume-monitor.c:
* src/nautilus-bookmark-list.c:
* src/nautilus-property-browser.c:
* src/nautilus-window-menus.c:
Remove unneeded include of <libxml/xmlmemory.h>.
* components/tree/nautilus-tree-model.c: (get_node_uri): New,
used only for logging ref. counts.
(decrement_ref_count): New.
(abandon_node_ref_count): New.
(abandon_dummy_row_ref_count): New.
(report_dummy_row_inserted): Do nothing if the parent is not yet
in the inserted state.
(report_dummy_row_deleted): Make it abandon any lingering ref
count that's still in the dummy row.
(report_node_inserted): Make it report that the dummy node is
inserted if the node starts with a dummy child. Also, set the new
inserted state so we know this node is live.
(report_node_contents_changed): Do nothing if the node is not
yet in the inserted state.
(report_node_has_child_toggled): Do nothing if the node is not yet
in the inserted state.
(report_dummy_row_contents_changed): Do nothing if the parent is
not yet in the inserted state.
(stop_monitoring_directory): Set done_loading to FALSE so we'll get
a dummy node for directories we are not monitoring.
(destroy_node_without_reporting): Abandon any ref count left in the
node. Also set the inserted state to FALSE before destroying children.
(destroy_node): Report if the parent gains a dummy node as a result
of destroying this node.
(update_node_without_reporting): Don't clear done_loading any more,
since stop_monitoring_directory does it now.
(reparent_node): Abandon any ref count that's still in the node
before reparenting it.
(schedule_destroy_unneeded_children): New.
(last_child_unref): Use new schedule_destroy_unneeded_children
function so we cna share code with the new abandon ref count functions.
(nautilus_tree_model_ref_node), (nautilus_tree_model_unref_node): Add
some logging for debugging purposes.
* components/tree/nautilus-tree-view.c: (compare_rows): Sort function
to use when GtkTreeModelSort works.
(create_tree): Hook up sort function.
* components/tree/nautilus-tree-model.h:
* components/tree/nautilus-tree-model.c:
(get_parent_node_from_file): New.
(insert_node): New.
(reparent_node): New.
(update_node): Handle files that disappear or move.
(process_file_change): Don't create nodes for files that are
already gone by the time we get here.
(done_loading_callback): Don't assert if the node for this file
is gone by the time this shows up.
(done_loading_idle_callback): New.
(start_monitoring_directory): Do a done_loading callback for
directories that are already fully loaded at the start. We have
to do this at idle time, though, since the tree code can't handle
all the new nodes showing up inside ref_node.
(nautilus_tree_model_iter_n_children): Add; was missing.
(destroy_unneeded_children): New.
(destroy_unneeded_children_idle_callback): New.
(last_child_unref): Destroy the children at idle time, not right
away. I did this to try to make GtkTreeModelSort work, but it
didn't fix the whole problem, so maybe take this out later.
(nautilus_tree_model_unref_node): Tighten assert.
(nautilus_tree_model_iter_get_file): New.
(nautilus_tree_model_finalize): Cleanup for new idle functions.
(nautilus_tree_model_tree_model_init):
* components/tree/nautilus-tree-view.c: (load_expansion_state):
New placeholder, not yet implemented.
(path_to_file): New.
(prepend_one_uri): New.
(save_expansion_state): New.
(save_expansion_state_idle_callback): New.
(schedule_save_expansion_state_callback): New.
(got_activation_uri_callback): New.
(cancel_activation): New.
(row_activated_callback): New.
(create_tree): Put in first cut at using GtkTreeModelSort;
couldn't get it working so it's ifdef'd out. Save list of expanded
URIs next idle after a row is expanded or collapsed. Switch the
view location when a row is activated.
(tree_activate_callback): Put in a call to load_expansion_state,
although it's not implemented yet.
(nautilus_tree_view_finalize): Cleanup for new idle functions.
2002-02-06 Dave Camp <dave@ximian.com>
* components/news/nautilus-news.c: Make this component build with
the deprecation flags set.
(update_size_and_redraw): #ifed out the gtk_widget_set_usize()
call pending changes to the size negotation code.
(get_xml_path): Use g_file_test() instead of g_file_exists().
(add_channel_to_remove_list), (remove_selected_site),
(make_remove_widgets): Use a GtkTreeView instead of a GtkCList
here.
(determine_sort_position): Use gtk_container_get_children()
instead of gtk_container_children().
(add_channel_entry): Use g_object_set_data() instead of
gtk_object_set_user_data().
(remove_list_selection_changed): New function, update the remove
button.
(update_remove_button): Make the remove button insensitive if no
channel is selected for removal.
(make_remove_widgets), (make_add_widgets), (add_command_buttons):
Use gtk_box_set_spacing() instead of gtk_button_box_set_spacing(),
and remove calls to gtk_button_box_set_child_size().
2002-02-06 Michael Meeks <michael@ximian.com>
* src/nautilus-window-manage-views.c
(load_new_location_in_sidebar_panels): guard
against re-enterancy; hold refs on the sidebars.
* src/file-manager/fm-directory-view.c
(fm_directory_view_class_init): move re-entering
auto preference registers to
(fm_directory_view_init): here.
* components/tree/nautilus-tree-change-queue.c: Remove.
* components/tree/nautilus-tree-change-queue.h: Remove.
* components/tree/nautilus-tree-view-dnd.c: Remove.
* components/tree/nautilus-tree-view-dnd.h: Remove.
* components/tree/nautilus-tree-view-private.h: Remove.
* libnautilus-private/Makefile.am:
* libnautilus-private/nautilus-dnd.c:
* libnautilus-private/nautilus-dnd.h:
Move eel-dnd.[ch] back into Nautilus, because it currently is
completely file-manager-specific.
* libnautilus-private/nautilus-file-dnd.c:
* libnautilus-private/nautilus-file-dnd.h:
* libnautilus-private/nautilus-icon-dnd.c:
* libnautilus-private/nautilus-icon-dnd.h:
* src/file-manager/fm-icon-view.c:
* src/file-manager/fm-list-view.c:
Change to use eel-dnd.[ch] in their new location in Nautilus.
* src/file-manager/fm-directory-view.c: Add included needed due
to include changes.
2002-02-04 Michael Meeks <michael@ximian.com>
* src/file-manager/fm-icon-view.c
(fm_icon_view_class_init): move re-enterant CORBA stuff
(fm_icon_view_init): to here.
* src/nautilus-shell-ui.xml: add a default placeholder.
* configure.in (BONOBO_UI_REQUIRED): require a fixed
libbonoboui that can cope with default placeholders.
* .cvsignore: Don't ignore tarballs.
* NEWS: Bump version number.
* configure.in: Bump version number.
* src/file-manager/fm-directory-view.c: (activate_callback):
Clean up code here a bit; patch submitted by David Emory Watson.
* src/file-manager/nautilus-icon-view-ui.xml: Tweak wording as
suggested by Steve Fox <drfickle@k-lug.org>.
2002-02-01 Dave Camp <dave@ximian.com>
* configure.in: Increased GNOME_UI_REQUIRED to 1.110.1
* libnautilus-private/nautilus-icon-container.c:
(nautilus_icon_container_class_init): Use
nautilus_marshal_VOID__POINTER_STRING instead of
nautilus_marshal_VOID__POINTER_POINTER for the icon_text_changed
signal.
(handle_focus_out_event): Return FALSE.
(nautilus_icon_container_start_renaming_selected_item),
(end_renaming_mode): Use GnomeIconTextItem instead of
NautilusIconTextItem. This includes changing how the size was
calculated, as NautilusIconTextItem expected a center point and
maximum width, and GnomeIconTextItem expects a bounding box.
* libnautilus-private/nautilus-icon-private.h: Use
GnomeIconTextItem instead of NautilusIconTextItem for
rename_widget.
* libnautilus-private/nautilus-marshal.list: Added
VOID:POINTER,STRING.
* src/file-manager/fm-icon-view.c: (renaming_icon_callback):
Temporarily #ifed out the
nautilus_clipboard_set_up_editable_in_control for the renaming
editable.
2002-01-31 John Harper <jsh@unfactored.org>
Make the search feature work again:
* configure.in: fixed how HAVE_MEDUSA is defined. Add
MEDUSA_CFLAGS to CORE_CFLAGS
* src/file-manager/fm-search-list-view.c: moved some of the
GNOME2_CONVERSION_COMPLETE ifdefs around so that we get a
functional object, just without some of the features of the
original
* src/nautilus-shell-ui.xml: copied search parts from nautilus
1 version
* src/nautilus-application.c (create_object): reenable
search-list-view creation
* src/file-manager/nautilus-indexing-info.c: random changes to
make it compile (untested as yet)
* configure.in: Bump eel version required.
* libnautilus-private/nautilus-icon-container.c:
(rubberband_timeout_callback), (start_rubberbanding),
(update_stretch_at_idle), (motion_notify_event):
* libnautilus-private/nautilus-icon-dnd.c: (icon_get_data_binder),
(nautilus_icon_container_position_shadow),
(receive_dropped_keyword),
(nautilus_icon_container_find_drop_target),
(nautilus_icon_container_receive_dropped_icons),
(nautilus_icon_container_get_drop_action),
(nautilus_icon_dnd_update_drop_target), (nautilus_icon_dnd_init),
(nautilus_icon_dnd_begin_drag):
Use new eel functions that eliminate the funky interaction between
the new GtkLayout and GnomeCanvas. Basically, all the functions
that deal with window coordinates are getting bin_window
coordinates instead. This should really be fixed in GnomeCanvas.
2002-01-30 Zbigniew Chyla <cyba@gnome.pl>
* libnautilus-private/nautilus-authn-manager.c
(construct_password_dialog):
DO NOT mark empty strings for translation.
* NEWS: Update for 1.1.3 release.
* configure.in: Bump version.
* src/file-manager/fm-directory-view.c:
(fm_directory_view_finalize), (real_merge_menus):
Use a weak pointer so we don't retain a pointer to the UI component
if the BonoboControl goes away, but we don't. This doesn't really
fix anything, but it also does no harm.
2002-01-28 Seth Nickell <snickell@stanford.edu>
* data/applications.desktop.in:
* data/preferences.desktop.in:
Bring start-here stuff up to date with current
URI schemes, update to use appropriate system icons.
* libnautilus-private/nautilus-program-choosing.c
(nautilus_launch_application_from_command): Changed the system(3) call to
launch application from command. Instead use eel_gnome_shell_execute.
* src/file-manager/fm-directory-view.c (activate_callback):
Now use newly public NautilusDesktopFile class & nautilus_desktop_file_launch
to launch the corresponding command.
* libnautilus-private/nautilus-desktop-file-loader.c:
* libnautilus-private/nautilus-desktop-file-loader.h:
Made the NautilusDesktopFile class public. The struct has been moved
from the source to the header. The nautilus_desktop_file_new method
is not static any more.
* libnautilus-private/nautilus-desktop-file-loader.c
(nautilus_desktop_file_launch):
Add the locale name taken from the desktop file to display it
through xalf (launch feedback).
2002-01-28 Gediminas Paulauskas <menesis@delfi.lt>
* libnautilus-private/nautilus-directory.c,
libnautilus-private/nautilus-icon-container.c: use g_list_copy
instead of eel version
* src/nautilus-preferences-dialog.c,
src/nautilus-property-browser.c,
src/nautilus-window-manage-views.c,
src/nautilus-window-menus.c,
src/file-manager/fm-properties-window.c: use gtk_window_present
instead of eel version.
2002-01-28 Seth Nickell <snickell@stanford.edu>
* libnautilus-private/nautilus-global-preferences.c:
(import_old_preferences_if_needed),
(nautilus_global_preferences_init):
Add a function for moving preference values (if they exist)
from their old location to their new location, if it
hasn't already been done.
* libnautilus-private/nautilus-global-preferences.h:
Change the location/name of THEME, SHOW_HIDDEN_FILES and
SHOW_BACKUP_FILES so other file viewers in GNOME can smoothly
access them.
2002-01-28 Anders Carlsson <andersca@gnu.org>
* libnautilus-private/nautilus-file.c:
* libnautilus-private/nautilus-file.h:
Remove gmc link support and calls to gnome_set_metadata.
* libnautilus-private/nautilus-file-operations.c
(create_transfer_dialog): Set transfer_info as user_data.
* libnautilus-private/nautilus-file-operations-progress.c: Move stuff
to finalize.
* libnautilus-private/nautilus-entry.c: Remove cursor obscuring code
since that exists in GtkEntry now.
2002-01-27 Anders Carlsson <andersca@gnu.org>
* src/file-manager/fm-properties-window.c (attach_label): Add selectable argument.
(attach_value_label): set selectable to TRUE.
(attach_ellipsizing_value_label): Likewise.
(attach_title_field): set selectable to FALSE.
2002-01-23 Anders Carlsson <andersca@gnu.org>
* libnautilus/nautilus-view-standard-main.c (delayed_quit_timeout_callback):
Use gtk_main_quit.
2002-01-25 Michael Meeks <michael@ximian.com>
* libnautilus-private/nautilus-bookmark.c
(nautilus_bookmark_set_name): return a 'changed'
boolean.
* src/nautilus-window-manage-views.c
(update_title): only re-send history if it changed.
* src/nautilus-window.c (add_to_history_list): prune
the end of the list more succinctly, don't fire
send_history_list_changed if we didn't change the list.
* libnautilus-private/nautilus-icon-factory.c: (cache_icon_new):
No last_unref_handler any more.
(cache_icon_unref): Just keep one ref for the factory, just like
in the old days, since we don't have a "last_unref_handler" any
more.
(nautilus_icon_factory_possibly_free_cached_icon): Look at
ref_count rather than looking at "outstanding" flag.
(nautilus_icon_factory_get_pixbuf_for_icon): Just ref, no fancy
"oustanding" logic.
(embed_text): Rewrite to use Pango.
* src/file-manager/fm-list-model.h: Tweak formatting and order.
* src/file-manager/fm-list-model.c: Tweak formatting and order.
* src/file-manager/fm-list-view.h: Tweak formatting and order.
* src/file-manager/fm-list-view.c: Tweak formatting and order.
* src/file-manager/fm-properties-window.c:
(select_image_button_callback): Turn this code back on.
* src/nautilus-bookmarks-window.c: (on_row_move): Remove puts.
* src/nautilus-complex-search-bar.c:
(nautilus_complex_search_bar_queue_resize): GnomeDock -> BonoboDock.
* src/nautilus-property-browser.c: (nautilus_emblem_dialog_new):
Finish porting to GtkDialog.
(nautilus_color_selection_dialog_new): Finish porting to
GtkDialog.
(add_new_pattern): Re-enable some code.
(labeled_image_configure): Re-enable some code, take out other stuff.
(labeled_image_new): Take out some dead code.
(property_browser_category_button_new): Take out some dead code.
* src/nautilus-sidebar-tabs.c: (tab_item_destroy),
(tab_indicator_changed_callback),
(nautilus_sidebar_tabs_connect_view):
Use a listener object now, not a listener ID.
* src/nautilus-simple-search-bar.c:
(nautilus_simple_search_bar_class_init): Remove some undo code.
* src/nautilus-switchable-navigation-bar.c:
(nautilus_switchable_navigation_bar_set_mode): GnomeDock -> BonoboDock.
* src/nautilus-switchable-search-bar.c:
(nautilus_switchable_search_bar_set_mode): GnomeDock -> BonoboDock.
* src/nautilus-view-frame.c: (destroy_view): Make deregister code use
the BonoboUIEngine instead of the BonoboWindow.
* components/hardware/nautilus-hardware-view.c:
(nautilus_hardware_view_init): Re-enable the property bag.
* components/image-viewer/Makefile.am: Remove io-png.[ch].
* components/image-viewer/io-png.c: Remove.
* components/image-viewer/io-png.h: Remove.
* components/image-viewer/nautilus-image-view.c:
(save_image_to_stream): Not implemented.
* libnautilus-private/nautilus-directory-metafile.c:
(nautilus_directory_register_metadata_monitor),
(nautilus_directory_unregister_metadata_monitor):
Wipe out some bonobo_object_corba_objref calls.
* src/nautilus-window.h: Make the throbber private.
* src/nautilus-window-private.h: Make the throbber private.
Use a listener object now, not a listener ID.
* src/nautilus-window-toolbars.c:
(nautilus_window_initialize_toolbars): Move the throbber
into details.
* src/nautilus-window.c: (nautilus_window_constructed),
(nautilus_window_unrealize): Use the new listener calls that
use an object, not an ID.
(nautilus_window_allow_stop): Move the throbber into details.
* components/adapter/main.c: (main):
* components/image-viewer/nautilus-image-view.c:
(init_server_factory):
* components/throbber/main.c: (main):
Use newfangled gnome-client.h calls to turn off session management.
* libnautilus/nautilus-view-standard-main.c:
(nautilus_view_standard_main_multi): Since we think
the per-display IID scheme is broken in bonobo-activation,
we turned it off there, rather than turning it off here.
2002-01-23 Michael Meeks <michael@ximian.com>
* libnautilus/nautilus-view-standard-main.c
(nautilus_view_standard_main_multi): re-remove the
per display IID creation scheme - it's broken.
* components/throbber/nautilus-throbber.c
(nautilus_throbber_draw): kill, no draw methods
in gtk 2.0
(draw_throbber_image): remove bonobo bug
workaround, if it still exists it should be fixed
in bonobo and fold into
(nautilus_throbber_expose): here
(draw_pixbuf): fold into
(nautilus_throbber_expose): here, and fix
rendering bugs.
(nautilus_throbber_size_allocate): kill bogus
sizing logic.
(nautilus_throbber_button_release_event): do
conversion.
(nautilus_throbber_destroy): remove
force_destroy_later.
2002-01-21 Michael Meeks <michael@ximian.com>
* src/nautilus-window.c,
* src/nautilus-application.c,
* src/nautilus-view-frame.c,
* libnautilus-private/nautilus-undo-manager.c,
* libnautilus-private/nautilus-metafile-factory.c,
* libnautilus/nautilus-undo-transaction.c,
s/bonobo_object_corba_objref/BONOBO_OBJREF/
* libnautilus-private/nautilus-directory-metafile.c
(get_factory): update referencing.
* libnautilus/nautilus-view.c
(nautilus_view_get_view_frame): impl. helper to
reduce sync CORBA traffic.
(view_frame_call_end, view_frame_call_begin): upd.
(nautilus_view_dispose): release the CORBA ref. if we
took it.
(nautilus_view_set_frame): unset the frame if we
loose it.
* libnautilus-private/nautilus-bonobo-extensions.c
(add_numbered_menu_item_internal): kill the label encoding.
(nautilus_bonobo_add_submenu): ditto.
(nautilus_bonobo_set_icon): kill unused.
* components/adaptor/bonobo-stream-vfs.[ch]: remove, now
inside gnome-vfs.
* libnautilus-private/nautilus-icon-factory.c:
(load_icon_for_scaling): Disable the code that destroys the fallback
icon at shutdown time since it was hitting some snags.
* libnautilus/nautilus-view-standard-main.c:
(nautilus_view_standard_main_multi): Add a bonobo_activate to try
to reduce the complaints at quit time.
* src/nautilus-location-bar.c: (editable_key_press_callback):
Make the End key do what the right arrow key did.
* src/nautilus-window-manage-views.c: (use_saved_window_positions),
(open_location), (position_and_show_window_callback),
(determined_initial_view_callback): Open windows right away unless
we are using saved window positions.
* icons/default/Makefile: Remove.
* icons/default/Makefile.in: Remove.
2002-01-16 Havoc Pennington <hp@redhat.com>
* libnautilus-private/nautilus-file-operations.c
(ellipsize_string_for_dialog): add comment about how this should
be fixed
* components/news/nautilus-news.c (ellipsize_string): add comment
about how this should be fixed
* check-signals.pl: Remove.
* components/adapter/bonobo-stream-vfs.c: Remove.
* components/adapter/bonobo-stream-vfs.h: Remove.
* components/adapter/nautilus-adapter-progressive-load-strategy.c: Remove.
* components/adapter/nautilus-adapter-progressive-load-strategy.h: Remove.
* components/adapter/Makefile.am:
* components/hardware/Makefile.am:
* components/history/Makefile.am:
* components/image-viewer/Makefile.am:
* components/music/Makefile.am:
* components/news/Makefile.am:
* components/notes/Makefile.am:
* components/text/Makefile.am:
* components/throbber/Makefile.am:
* components/tree/Makefile.am:
* libnautilus-private/Makefile.am:
* test/Makefile.am:
General cleanups, mostly formatting.
* configure.in: Remove libiconv stuff, since we don't use it
any more. Do esound stuff in the main call to pkg-config, not
a separate set of variables.
* components/image-viewer/nautilus-image-view.c: Remove unused
libart includes.
* cut-n-paste-code/widgets/gimphwrapbox/gtkwrapbox.h: Remove
the use of "decrement" as a synonym for "remove".
* test/test.c: Remove unused libart include.
2002-01-21 Anders Carlsson <andersca@gnu.org>
* configure.in:
Change libprofiler location.
* libnautilus-private/nautilus-directory-async.c:
(lacks_link_info), (make_dot_directory_uri), (link_info_start):
Remove support for gmc style links.
* libnautilus-private/nautilus-entry.c:
(emacs_shortcuts_preference_changed_callback),
(nautilus_entry_init), (nautilus_entry_finalize),
(nautilus_entry_key_press), (select_all_at_idle),
(nautilus_entry_select_all_at_idle):
Use gtk_idle_add instead and store the idle id in the details
struct. This fixes some weirdness in the file properties dialog,
since the "destroy" signal can be emitted more than once.
* libnautilus-private/nautilus-icon-canvas-item.c:
(update_label_layouts):
Enable underlining.
* libnautilus-private/nautilus-monitor.c: (get_event_uri):
Silently return if we can't find the base path. This is valid when
we've called nautilus_monitor_cancel but still have some events
in the queue.
* Makefile.am: Remove nautilus-launch-icon.png.
* components/hardware/nautilus-hardware-view.c: (setup_form_title),
(setup_overview_form): Port from EelImage to GtkImage.
* components/music/nautilus-music-view.c: Remove unused include.
* src/nautilus-theme-selector.c: Remove unused includes.
* libnautilus-private/nautilus-bonobo-extensions.c:
(bonobo_activation_activation_callback): Add warning message so we
get to see the error from bonobo-activation.
* libnautilus-private/nautilus-directory-metafile.c: (get_factory):
* libnautilus-private/nautilus-icon-factory.c: (get_icon_factory),
(load_icon_for_scaling), (embed_text):
* libnautilus-private/nautilus-metafile-factory.c:
(nautilus_metafile_factory_get_instance):
* libnautilus-private/nautilus-theme.c:
(nautilus_theme_get_theme_data_from_theme):
* libnautilus-private/nautilus-trash-monitor.c:
(nautilus_trash_monitor_get):
* libnautilus-private/nautilus-volume-monitor.c:
(nautilus_volume_monitor_get):
* src/file-manager/nautilus-indexing-info.c:
(show_indexing_info_dialog):
* src/nautilus-preferences-dialog.c:
(global_preferences_get_dialog):
* src/nautilus-window.c: (nautilus_window_class_init),
(add_to_history_list):
Use eel_debug_call_at_shutdown instead of g_atexit.
* libnautilus-private/nautilus-file.c:
(nautilus_file_get_display_name): Add G_BROKEN_FILENAMES support.
* libnautilus-private/nautilus-global-preferences.c:
(nautilus_global_preferences_init): Remove eel_smooth_widget code.
* libnautilus/Makefile.am: Add missing ORBIT_IDL dependency.
* libnautilus/nautilus-view-standard-main.c:
(nautilus_view_standard_main_multi): Remove
bonobo_ui_debug_shutdown for now. It does us no good unless we
also do eel_debug_shut_down, but libnautilus can't depend on eel.
* nautilus-launch-icon.png: Remove.
* src/file-manager/fm-properties-window.c:
(update_properties_window_icon),
(fm_properties_window_drag_data_received),
(create_image_widget_for_file): Port from EelImage to GtkImage.
* src/nautilus-component-adapter-factory.c:
(nautilus_component_adapter_factory_get): Use
eel_debug_call_at_shutdown instead of g_atexit.
(nautilus_component_adapter_factory_create_adapter): Look at
exceptions before looking at return values from CORBA calls.
* src/nautilus-main.c: (main): Add a call to eel_debug_shut_down.
* src/nautilus-property-browser.c:
(nautilus_property_browser_init), (element_clicked_callback),
(nautilus_property_browser_update_contents): Port from EelViewport
to GtkViewport.
* src/nautilus-search-bar-criterion.c:
(nautilus_search_bar_criterion_destroy),
(nautilus_search_bar_criterion_new_from_values): Fix for change
that made NautilusSignaller no longer a GtkObject.
* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_init),
(update_icon), (add_emblem): Port from EelImage to GtkImage.
* src/nautilus-signaller.h:
* src/nautilus-signaller.c: (nautilus_signaller_get_current): Use
eel_debug_call_at_shutdown instead of g_atexit.
(nautilus_signaller_instance_init),
(nautilus_signaller_class_init): Change to GObject, not GtkObject.
* src/nautilus-window-menus.c: (get_bookmark_list): Use
eel_debug_call_at_shutdown instead of g_atexit.
(nautilus_window_initialize_go_menu): Fix for change that made
NautilusSignaller no longer a GtkObject.
* test/test-nautilus-preferences-change.c: Remove unused include.
* test/test-nautilus-preferences-display.c: Remove unused includes.
* test/test-nautilus-wrap-table.c: Remove unused includes.
* test/test.c: Remove unused function.
* test/test.h: Remove unused function.
2002-01-18 Michael Meeks <michael@ximian.com>
* libnautilus-private/nautilus-directory-background.c
(image_loading_done_callback): don't set the background, it
causes a strange segv later.
* src/nautilus-window-toolbars.c
(set_widget_for_bonobo_control): fold into
(set_up_back_or_forward_toolbar_item): here.
(set_up_standard_bonobo_button): kill redundant
freeze / thaws.
(set_up_special_bonobo_button): don't do nasty
pixbuf roundtrips on a NULL icon_file_name
(get_pixbuf_for_xml_node): kill - somewhat inefficient.
(set_up_special_bonobo_button): set a straight pixbuf
on the button item for more speed, and kill bogus
in-proc freeze/thaw.
(set_up_back_or_forward_toolbar_item): rename to
(create_back_or_forward_toolbar_item): this to better
reflect function, aggregate a property bag.
(back_or_forward_tooblar_item_property_set_cb): impl.
2002-01-17 Anders Carlsson <andersca@gnu.org>
* libnautilus-private/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_update_bounds),
(draw_or_measure_label_text), (update_label_layouts),
(get_label_layout), (draw_label_layout), (draw_label_layout_aa),
(draw_or_measure_label_text_aa), (nautilus_icon_canvas_item_event):
Add non-aa pango support.
* libnautilus-private/nautilus-directory-async.c (make_dot_directory_uri):
Do an sync check for the .directory file before scheduling an async read
of the file.
2002-01-17 Anders Carlsson <andersca@gnu.org>
* src/file-manager/fm-list-model.c: New file.
* src/file-manager/fm-list-model.h: New file.
* src/file-manager/fm-list-view.c: Port to GtkTreeView.
* src/file-manager/fm-list-view.h: Port to GtkTreeView.
* src/file-manager/fm-directory-view.c (fm_directory_view_destroy):
Stop and clear the directory view before setting view to NULL because
clearing the directory when nautilus_view is NULL can trigger an assertion.
* libnautilus-private/nautilus-mime-actions.c: Added include
needed for compatibility with new gnome-vfs.
* src/file-manager/fm-directory-view.c:
(set_up_scripts_directory_global): Fix mistake with use of
GNOME_DOT_GNOME by using gnome_util_home_file instead.
* components/hardware/main.c: (main):
* components/image-viewer/nautilus-image-view.c:
(init_server_factory):
* components/loser/content/main.c: (main):
* components/loser/sidebar/main.c: (main):
* components/throbber/main.c: (main):
* libnautilus/nautilus-view-standard-main.c:
(nautilus_view_standard_main_multi),
(nautilus_view_create_from_get_type_function):
* src/nautilus-main.c: (main):
Remove unneeded code and restore display-specific registration.
This gets rid of a bunch of GNOME2_CONVERSION_COMPLETE ifdefs.
* libnautilus-private/nautilus-directory-metafile-monitor.h:
* libnautilus-private/nautilus-metafile-factory.c:
* libnautilus-private/nautilus-metafile-factory.h:
* libnautilus-private/nautilus-metafile.h:
These had emacs mode lines that said they were IDL files.
* libnautilus-private/nautilus-directory-metafile-monitor.c:
* libnautilus-private/nautilus-metafile-factory.c:
* libnautilus-private/nautilus-metafile.c:
* libnautilus-private/nautilus-undo-context.c:
* libnautilus-private/nautilus-undo-manager.c:
* libnautilus/nautilus-undo-transaction.c:
* src/nautilus-application.c:
* src/nautilus-shell.c:
* src/nautilus-view-frame-corba.c:
Use BONOBO_CLASS_BOILERPLATE_FULL instead of EEL_BONOBO_BOILERPLATE_FULL.
* src/nautilus-sidebar-title.c: (measure_width_callback),
(update_more_info): First cut at implementing date that fits into
sidebar. Not working yet.
* src/nautilus-theme-selector.c:
(install_theme_button_clicked_callback):
Remove eel_gtk_window_set_up_close_accelerator call, since this is a
GtkDialog that comes its own close accelerator.
2002-01-15 Johan Dahlin <jdahlin@telia.com>
* libnautilus/Makefile.am (nautilus_view_component_idl_stamp):
* libnautilus/nautilus-view-component.idl: define
__nautilus_view_component_COMPILATION instead of
NAUTILUS_VIEW_COMPONENT_COMPILATION, to be compatible with
libbonobo and bonobo-activation's idls.
* configure.in: Bump required eel version number. Get rid of
ORBIT_REQUIRED.
* libnautilus/Makefile.am: Remove unneeded "-I$(builddir)" since
it is screwing up "make distcheck".
* src/nautilus-desktop-window.c: (finalize),
(nautilus_desktop_window_class_init):
Fix another of those double-destroy problems by turning a destroy
into a finalize.
rid of all the Makefile.am hackery so that everything ends up in
the tarball.
* configure.in: Bumped version to 1.1.1.
* components/Makefile.am: Re-enabled all the subdirs.
* components/adapter/Makefile.am: Re-enabled
nautilus-adapter-embeddable-embed-strategy.[ch].
* components/adapter/nautilus-adapter-embeddable-embed-strategy.c:
Put an #if GNOME2_CONVERSION_COMPLETE around the whole thing.
* components/loser/content/Makefile.am:
* components/loser/sidebar/Makefile.am:
Update for COMPONENT_CFLAGS in NAUTILUS_PRIVATE_CFLAGS.
* components/loser/content/main.c: (loser_make_object), (main):
* components/loser/sidebar/main.c: (loser_make_object), (main):
* components/loser/content/nautilus-content-loser.c:
(nautilus_content_loser_init):
* components/loser/sidebar/nautilus-sidebar-loser.c:
(nautilus_sidebar_loser_init):
Make these compile, not sure if they actually work.
* components/shell/Nautilus_View_shell.server.in: Remove.
* components/shell/shell.c: Remove.
This component can go in a separate package -- it doesn't need to be
part of the main Nautilus source tree.
* components/text/Makefile.am: Turned off compiling of the component,
but used EXTRA_DIST to make sure the source code still gets into the
tarball.
* components/tree/Makefile.am: Removed $(COMPONENT_LIBS) from the
libnautilus_tree_view_la_SOURCES list. Not sure why it was in there.
* libnautilus-private/Makefile.am: Remove stale references to the
nautilus-druid-related headers.
* libnautilus/nautilus-view-standard-main.c:
(nautilus_view_standard_main_multi): Remove some
GNOME2_CONVERSION_COMPLETE code that is now clearly not going to
be needed. Left in the stuff that is a placeholder for things we
still need.
* src/Makefile.am: Distribute the profiler sources even when they are
not built.
* libnautilus-private/nautilus-icon-container.c: Whitespace tweak.
* libnautilus-private/nautilus-file.c: (make_valid_utf8),
(nautilus_file_get_display_name), (nautilus_file_get_name): First
cut at ensuring file names are always valid UTF-8. We probably
need other checks like this for various other places we read in
external stuff. Also, we might later decide to cache the "made
valid" name. Finally, we might want to support the glib
G_BROKEN_FILENAMES feature.
* TODO: Mention bad looking text.
* libnautilus-private/nautilus-icon-container.c: (destroy),
(finalize), (nautilus_icon_container_init), (item_event_callback),
(nautilus_icon_container_clear):
Various fixes to make destroy on a NautilusIconContainer work.
* components/tree/nautilus-tree-view-dnd.c:
(nautilus_tree_view_drag_motion), (nautilus_tree_view_drag_drop),
(nautilus_tree_view_button_press),
(nautilus_tree_view_button_release),
(nautilus_tree_view_motion_notify):
* libnautilus-private/nautilus-undo-signal-handlers.c:
(editable_key_press_event):
* src/nautilus-bookmarks-window.c: (handle_close_accelerator):
Remove unneeded stop_emit-type calls, now that the signal machinery
understands that TRUE means to stop emitting in some cases.
* .cvsignore:
* Makefile.am:
* nautilus-help.desktop.in: Remove.
Remove nautilus-help.desktop since Nautilus isn't the help browser
any more.
* components/adapter/nautilus-adapter-load-strategy.c:
(nautilus_adapter_load_strategy_class_init):
* components/news/nautilus-news.c: (set_up_main_widgets):
* libnautilus-private/nautilus-bookmark.c:
(nautilus_bookmark_class_init):
* libnautilus-private/nautilus-volume-monitor.c:
(nautilus_volume_monitor_class_init):
* src/file-manager/fm-desktop-icon-view.c:
(fm_desktop_icon_view_destroy),
(fm_desktop_icon_view_handle_middle_click), (delayed_init),
(fm_desktop_icon_view_init), (desktop_icons_compare_callback):
* src/nautilus-sidebar.c: (nautilus_sidebar_finalize),
(nautilus_sidebar_update_buttons), (nautilus_sidebar_set_uri):
Use more g_signal, less gtk_signal stuff.
* components/hardware/nautilus-hardware-view.c: (setup_form_title),
(setup_overview_form), (setup_CPU_form), (setup_RAM_form),
(setup_IDE_form):
* components/news/nautilus-news.c: (set_up_main_widgets):
* src/file-manager/nautilus-indexing-info.c:
(update_progress_display), (last_index_time_dialog_new),
(index_progress_dialog_new):
* src/nautilus-property-browser.c:
(nautilus_property_browser_init), (element_clicked_callback),
(labeled_image_new), (make_properties_from_directories),
(add_reset_property), (make_properties_from_xml_node):
* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_init),
(nautilus_sidebar_title_select_text_color), (update_title_font),
(update_title), (update_more_info),
(sidebar_title_create_title_label),
(sidebar_title_create_more_info_label):
Port more code from EelLabel to GtkLabel. Also change all code that
was using things like "make_larger" to use "set_scale" now.
* components/music/nautilus-music-view.c: (xpm_label_box),
(xpm_dual_label_box), (nautilus_music_view_set_album_image):
* libnautilus-private/nautilus-bookmark.c:
(create_image_widget_for_bookmark),
(nautilus_bookmark_menu_item_new):
* src/nautilus-complex-search-bar.c:
(load_find_them_pixmap_widget):
Port more code from GtkPixmap to GtkImage.
* components/notes/nautilus-notes.c:
* components/throbber/nautilus-throbber.c:
* src/file-manager/fm-properties-window.c:
* src/nautilus-zoom-control.c:
Remove extra includes.
* libnautilus-private/nautilus-icon-factory.c:
* libnautilus-private/nautilus-icon-factory.h:
Remove nautilus_icon_factory_get_pixmap_and_mask_for_file.
* src/nautilus-about.c: (draw_aa_string), (draw_author_list),
(nautilus_about_draw_info): Port to use Pango to draw the text. It
looks really bad right now, but should be straightforward to fix.
2002-01-08 Anders Carlsson <andersca@gnu.org>
* libnautilus-private/nautilus-bonobo-extensions.c (activation_handle_free):
New function to free a handle and it's associated object.
(activation_idle_callback): Call activation_handle_free.
(activation_cancel): Likewise.
2002-01-08 Anders Carlsson <andersca@gnu.org>
* src/nautilus-zoom-control.c (nautilus_zoom_control_finalize): Remove
preferences calback in ::finalize.
(nautilus_zoom_control_unload_images): Set image pointers to NULL after
unloading images.
* src/nautilus-window-menus.c: Remove some userlevel #defines.
* src/nautilus-switchable-search-bar.c
(nautilus_switchable_search_bar_finalize): Remove the preferences callback
in ::finalize instead of ::destroy.
* src/nautilus-switchable-navigation-bar.c: Create the search bar lazily.
Creating the search bar came up high on the profile when creating new windows,
and doing it lazily helps, especially when we don't have medusa support yet.
(nautilus_switchable_navigation_bar_finalize): Free details in ::finalize.
* src/nautilus-simple-search-bar.c (nautilus_simple_search_bar_finalize):
Free details in ::finalize.
(nautilus_simple_search_bar_destroy): Disable the undo stuff. Perhaps we could
call connect to "destroy" in nautilus_undo_set_up_nautilus_entry_for_undo
and call nautilus_undo_tear_down_nautilus_entry_for_undo there instead.
* src/nautilus-sidebar.c (nautilus_sidebar_init): Ref and sink the title tab.
(nautilus_sidebar_finalize): Move things from ::finalize to ::destroy.
* src/nautilus-preferences-dialog.c
(preferences_dialog_populate_themes_group): The image chooser isn't
broken anymore so we can enable it now.
* src/nautilus-main.c (main): Call gtk_main instead of bonobo_main
since bonobo_main is for non-gui apps and won't be affected by
gtk_main_quit.
* src/nautilus-location-bar.c: Destroy things in ::finalize
instead of in ::destroy.
* src/nautilus-profiler.c: Port to GtkTextView.
* src/nautilus-application.c (nautilus_application_new):
Call bonobo_generic_factory_construct_noreg so that we set
the IID.
(nautilus_application_destroy): Unref the undo manager
in ::destroy instead.
* libnautilus-private/nautilus-icon-container.c:
Use g_list_sort_with_data when sorting icons so we can get rid
of the hack_icon_container hack.
* libnautilus-private/nautilus-entry.c: Free details struct
in ::finalize instead of in ::destroy
* libnautilus-private/nautilus-icon-dnd.c
(confirm_switch_to_manual_layout): Compare with GTK_RESPONSE_YES.
* libnautilus-private/nautilus-file-operations.c
(confirm_empty_trash): Compare with GTK_RESPONSE_YES.
So now you know what I've been doing during christmas...
* libnautilus-private/nautilus-desktop-file-loader.c:
(validated_strdup): Fixed to use g_iconv instead of iconv,
starting with a patch from Jean Schurger <jschurger@schurger.org>.
* libnautilus-private/nautilus-font-factory.c: Remove.
* libnautilus-private/nautilus-font-factory.h: Remove.
* libnautilus-private/Makefile.am:
Remove nautilus-font-factory.[ch].
* libnautilus-private/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_finalize),
(nautilus_icon_canvas_item_set_arg),
(nautilus_icon_canvas_item_get_arg), (draw_or_measure_label_text),
(nautilus_icon_canvas_item_class_init):
Get rid of the "font" arg. We'll have to replace this with something
that works with Pango -- maybe just a font name.
* src/file-manager/fm-list-view.c: (truncate_middle_callback),
(get_cell_text): Turn off the GdkFont ellipsizing code. I hope this
just goes away when Anders finishes his port to GtkTextView.
* src/file-manager/fm-properties-window.c:
(fm_properties_window_class_init), (real_destroy), (real_finalize):
Fix a bug where it would try to disconnect a signal on an object
that is already NULL by that time.
* src/nautilus-profiler.c:
(nautilus_profiler_bonobo_ui_report_callback): Disable the dump
window, pending a port to GtkTextView instead of GtkText.
* components/music/nautilus-music-view.c:
* components/news/nautilus-news.c:
* components/notes/nautilus-notes.c:
* components/text/nautilus-text-view.c:
* libnautilus-private/nautilus-file-operations-progress.c:
* libnautilus-private/nautilus-file-operations.c:
* libnautilus-private/nautilus-icon-container.c:
* src/file-manager/fm-icon-view.c:
* src/nautilus-sidebar-title.c:
Get rid of some includes of unused headers.
* libnautilus-private/nautilus-link.c:
(get_link_style_for_mime_type): Fix porting mistake that caused all
desktop files to be treated as Nautilus links.
* libnautilus-private/nautilus-file.c: (rename_callback):
Fix storage leak.
2002-01-07 Dave Camp <dave@ximian.com>
* src/nautilus-theme-selector.c (theme_selector_finalize): Put
back the accidentally removed g_free (theme_selector)->details.
2002-01-07 Dave Camp <dave@ximian.com>
* src/nautilus-preferences-dialog.c
(preferences_dialog_populate_themes_group): Take out the return.
The EelLabel exorcism did in fact mostly fix the theme selector.
* src/nautilus-theme-selector.c (theme_selector_finalize): Moved here
from theme_selector_destroy.
(nautilus_theme_selector_class_init): Fixed the argument type list for
the theme_changed signal, and reflect the destroy->finalize change.
2002-01-04 Havoc Pennington <hp@pobox.com>
* libnautilus-private/nautilus-global-preferences.c
(nautilus_global_preferences_init): add preload of the gconf
cache, to hopefully avoid a zillion round trips to gconfd on
startup.
* test/test.c (test_window_new): remove weird gtk_window_set_policy
* test/test-nautilus-preferences-display.c: remove user level
stuff
* test/test-nautilus-preferences-change.c: remove user level stuff
* libnautilus-private/nautilus-global-preferences.c: the default
click policy was SPEED_TRADEOFF_LOCAL_ONLY, fix
* libnautilus-private/nautilus.schemas: add schemas file,
incomplete, needs to be finished and installed
* libnautilus-private/nautilus-global-preferences.c: strip out
user levels
* src/nautilus-shell-ui.xml: strip out user level menu
* src/nautilus-window-menus.c: strip out user level menu