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.
* POTFILES.in: Remove libbackground/applier.c, because it's
not in the tarball, just in cvs, so it breaks tarball builds.
Remove nautilus-icon-text-item.c.
* POTFILES.skip: Remove image-viewer.
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.