made it check modification dates to update thumbnails when
their underlying image changes. Added a routine to remove
a specific image from the icon cache.
2000-06-18 Pavel <pavel@eazel.com>
* test/nautilus-leak-symbol-lookup.c:
(nautilus_leak_symbol_map_get_offsets):
Do a better 64-bit clean fix avoiding messy ifdefs.
Sun Jun 18 02:50:47 2000 George Lebl <jirka@5z.com>
* components/help/help-method.c (file_in_info_path):
s/g_str_freev/g_strfreev/ as that's the correct glib name
* components/help/hyperbola-main.c,
components/help/hyperbola-nav-index.c,
components/help/hyperbola-nav-search.c
components/help/hyperbola-nav-tree.c,
components/help/hyperbola-nav.h: Use hyperbola-nav.h as a header
to put the prototypes from the hyperbola-nav-*.c files. And
include this file in hyperbola-main.c and hyperbola-nav-*.c
* libnautilus-extensions/nautilus-global-preferences.c
(global_preferences_register_boolean_with_defaults)
(global_preferences_register_enum_with_defaults),
libnautilus-extensions/nautilus-preferences.c
(preferences_hash_node_check_changes_func)
(user_level_changed_callback):
use GU?INT_TO_POINTER and GPOINTER_TO_U?INT macros to get and pass
ints and uints as pointers.
* librsvg/rsvg-bpath-util.c, test/nautilus-leak-checker.c:
include <string.h>
* test/nautilus-leak-checker.c (nautilus_leak_record_malloc)
(nautilus_leak_record_realloc) (nautilus_leak_record_free)
(print_one_leak): Store pointers in gulongs not guints and
when printing size_t, cast to long and use %ld.
* test/nautilus-leak-symbol-lookup.c
(nautilus_leak_symbol_map_get_offsets): When reading in gint64,
check if long is actually 64bit, in which case use %lx otherwise
use %Lx for sscanf.
Sat Jun 17 18:07:19 2000 George Lebl <jirka@5z.com>
* gnome-info2html2/main.c (main): Use g_free on the node as it
has been allocated with g_malloc
* gnome-man2html2/gnome-man2html.c (scan_format): Patch from gnome
bug number 3925. From the description: Briefly, gnome-man2html
doesn't notice when the format lines in table declarations end if
the last thing in the format specification is a font command.
added a nice knob image to use as stretch handles instead of a
black rectangle. Right now it only uses it in aa mode and they
need to be positioned better. Also, added search button to
toolbar theming mechanism.
* src/nautilus-window-menus.c: (clear_appended_bookmark_items):
Added a NULL check that prevents it from crashing when you
add bookmarks or change themes.
You can avoid some warnings if you get the latest Bonobo.
* libnautilus-extensions/nautilus-bookmark.h:
* libnautilus-extensions/nautilus-bookmark.c:
(nautilus_bookmark_initialize_class), (nautilus_bookmark_set_name):
Define "changed" signal for bookmarks and wire it up (though
not yet to the icon-changing case). Remove never-implemented
and never-to-be-implemented "nautilus_bookmark_get_file" since
I changed my mind on the design.
* src/nautilus-window-menus.c: (append_bookmark_to_menu),
(clear_appended_bookmark_items): Connect and disconnect
signals from the window to the bookmarks in the Go and
Bookmarks menus.
2000-06-16 Arlo Rose <arlo@eazel.com>
* icons/eazel/search.png
* icons/About_Image.png
Fixed the invalid white point error on out about image.
Made the "Eazel Theme" search icon look like an icon Susan
would have done.
* components/loser/content/main.c: (loser_make_object), (main):
* components/loser/sidebar/main.c: (loser_make_object), (main):
* components/sample/main.c: (sample_make_object), (main):
* components/services/startup/nautilus-view/main.c:
(services_object_destroyed), (services_make_object):
* src/nautilus-location-bar.c:
(nautilus_location_bar_set_location):
* src/nautilus-switchable-navigation-bar.c:
(nautilus_switchable_navigation_bar_set_location):
Took out a lot of puts calls that may have once been useful for
debugging but now are mostly misleading.
No visible effect yet.
* libnautilus-extensions/nautilus-bookmark.h:
Added nautilus_bookmark_get_file prototype, not yet
called or implemented.
* libnautilus-extensions/nautilus-file.h,
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_check_if_ready): New function, does
nothing yet.
* libnautilus-extensions/nautilus-icon-factory.h:
Added nautilus_icon_factory_is_icon_ready_for_file
prototype, not yet called or implemented.
* src/nautilus-window-menus.c:
(nautilus_window_initialize_bookmarks_menu),
(nautilus_window_initialize_go_menu),
(nautilus_window_remove_bookmarks_menu_callback),
(nautilus_window_remove_go_menu_callback),
(refresh_bookmarks_menu),
(refresh_bookmarks_menu_idle_callback),
(schedule_refresh_bookmarks_menu), (refresh_go_menu),
(refresh_go_menu_idle_callback), (schedule_refresh_go_menu):
Made the code that rebuilds the Go and Bookmarks menus when
there's been a change to the bookmarks use idle handling to
batch up requests. This will be important when bookmarks
broadcast updates for their icons.
* src/nautilus-window-private.h: Defined NautilusWindowDetails
struct. We should eventually migrate all of the fields
of NautilusWindow in here, but I didn't do that now.
Added two fields used by bookmark-menu-updating code.
* src/nautilus-window.h: Made a details field using
NautilusWindowDetails.
* src/nautilus-window.c:
(nautilus_window_init): Create details field.
(nautilus_window_destroy): Clean up any pending idle bookmark
refreshing stuff.
* src/nautilus-location-bar.c: (try_to_expand_path):
Removed first cut at a fix for the "space accepts" problem.
(entry_would_have_inserted_characters),
(editable_key_press_callback), (nautilus_location_bar_initialize):
Put in a new fix that uses a marshal function to avoid clobbering
the return value of key_press_event.
2000-06-16 Rebecka Schulman <set EMAIL_ADDRESS environment variable>
* icons/eazel/Search.png:
Added search icon to toolbar, courtesy of Arlo.
It still has graphics issues, we will try and iron
those out
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog),
(global_preferences_register_for_ui):
Changed the word on the search preferences
* components/services/trilobite/sample/lib/.cvsignore:
New generated files that needed to be ignored.
* libnautilus-extensions/nautilus-bookmark.c: (get_icon_for_uri):
* libnautilus-extensions/nautilus-icon-dnd.c:
(receive_dropped_keyword):
* src/nautilus-sidebar.c: (receive_dropped_keyword),
(open_with_callback):
* src/nautilus-window-manage-views.c: (handle_unreadable_location),
(nautilus_window_end_location_change_callback):
* src/nautilus-window.c: (view_menu_choose_view_callback):
Added FIXME comments for all cases I might have to revisit to
finish with bug 866.
* libnautilus-extensions/nautilus-directory-private.h:
* libnautilus-extensions/nautilus-directory.c:
(nautilus_search_directory_new),
(nautilus_directory_new), (nautilus_directory_is_local),
(nautilus_directory_is_search_directory):
Removed the is_local and is_search_directory booleans since they
are very fast to compute.
(nautilus_directory_call_when_ready): Removed the special case for
search directories that was causing a problem with NULL
directories. This is better handled inside
nautilus-directory-async.c.
(nautilus_uri_is_search_uri): Greatly simplified the
implementation of the function and moved it out of the
"self-check-specific" part of the file.
* libnautilus-extensions/nautilus-file-utilities.c:
(nautilus_format_uri_for_display), (nautilus_make_uri_from_input),
(nautilus_get_user_main_directory):
Renamed SCHEMA -> SCHEME. Converted code to use
nautilus_get_uri_from_local_path instead of just adding a file://
on the beginning of path names.
* libnautilus-extensions/nautilus-file.c: (nautilus_file_get):
Did part of the work needed to make this function do its work
async. It now only does the I/O if the file is not already known,
but there's still the issue of doing the I/O only when requested.
* libnautilus-extensions/nautilus-icon-dnd.c:
(receive_dropped_keyword): Fixed storage leaks.
(nautilus_icon_container_receive_dropped_icons),
(nautilus_icon_dnd_update_drop_target): Added FIXMEs about
file-specific stuff that's in here but should be in FMIconView.
* libnautilus-extensions/nautilus-icon-factory.c:
(path_represents_svg_image): Changed local svg check to use
gnome-vfs instead of NautilusFile. This is better since we want
it to be sync.
(load_specific_image): Change to use
nautilus_get_local_path_from_uri instead of doing its own file://
checks and unescaping.
* libnautilus-extensions/nautilus-mime-actions.c:
(nautilus_mime_get_default_component_for_uri_internal): Call the
new public OAF_ServerInfo_duplicate from liboaf instead of our
own copy. The one I checked in liboaf has a number of bugs fixed
from the one that was in here.
(mime_type_get_supertype): Put in a special case for NULL so we
don't return "/*" as a supertype for NULL.
(nautilus_do_component_query): Call OAF_ServerInfo_duplicate.
Also get rid of a NULL check before CORBA_free.
* libnautilus-extensions/nautilus-stock-dialogs.c:
(nautilus_timed_wait_start), (nautilus_timed_wait_free):
* libnautilus-extensions/nautilus-stock-dialogs.h:
Added a window title to the still-not-implemented code in here.
* src/file-manager/fm-icon-text-window.c:
(create_icon_text_window): Changed the window title to match the
menu item.
* src/nautilus-main.c: Formatting tweaks.
* src/nautilus-sidebar.c: (receive_dropped_keyword), Fixed a
storage leak. Put in a FIXME about the code that is a copy of
what's in the icon view.
search/browse button
* src/nautilus-location-bar.h, src/nautilus-location-bar.c:
Factored this into two classes, NautilusNavigationBar, a class
that defines the abstract interface (the set_location function and
the location_changed signal), and NautilusLocationBar, a concrete
implementation that works like the previous location bar.
(nautilus_location_bar_set_location,
nautilus_location_bar_get_location): Made static. Made
`nautilus_location_bar_set_location' the handler for the
set_location virtual method.
* src/nautilus-navigation-bar.h, src/nautilus-navigation-bar.c:
Abstract superclass for navigation bars.
* src/nautilus-search-bar.h, src/nautilus-search-bar.c: New
subclass of NautilusNavigationBar. Contains placeholder widgets
for now, will eventually be the search bar.
* src/nautilus-switchable-navigation-bar.h,
src/nautilus-switchable-navigation-bar.c: New subclass of
NautilusNavigationBar that allows switching between the location
bar and the search bar.
* src/nautilus-window.h: Rename `ent_uri' member of the window
struct to `navigation_bar'.
* src/nautilus-window.c
(nautilus_window_navigation_bar_mode_changed_callback): Callback
to sync the "search" toggle button to the mode of the switchable
navigation bar.
(nautilus_window_constructed): Create a
NautilusSwitchableNavigationBar instead of a NautilusLocationBar.
(nautilus_window_set_search_mode): New function to be used by the
search toggle button callback; simply sets the mode of the
switchable navigation bar appropriately.
* src/nautilus-window-toolbars.c: Made Search button a toggle
button.
(toolbar_search_callback): Call `nautilus_window_set_search_mode'.
* src/nautilus-window-manage-views.c
(nautilus_window_update_internals,
nautilus_window_end_location_change_callback): Use
NautlusNavigationBar calls instead of NautilusLocationBar ones.
* src/Makefile.am: Add new files to the build, and split all
headers into noinst_HEADERS out from the nautilus_SOURCES
variable.
2000-06-16 Seth Nickell <seth@eazel.com>
* src/nautilus-location-bar.h:
* src/nautilus-location-bar.c: (nautilus_location_bar_get_location)
Added function nautilus_location_bar_get_location
* src/nautilus-location-bar.c: (drag_data_received_callback),
(drag_data_get_callback), (editable_activated_callback),
Changed to call nautilus_location_bar_get_location. An incidental effect (well
actually intentional) is that nautilus-location-bar.c no longer uses gtk_entry_get_text.
Hopefully this function will keep people adding code "mid-stream" to the URL bar (eg
before activation, such as the auto-completion code) from being confused by the disparity
between URIs and what the user is allowed to type.
2000-06-16 Seth Nickell <seth@eazel.com>
* src/nautilus-location-bar.c: (try_to_expand_path):
Don't be fooled by the meager function count!
This bug was/is a bitch. Added a gtk_widget_grab_focus call to the
end of the function because *somewhere* in the above procedure
the gtk focus is being fscked with. Will track the actual
problem down later, but this will get it out of our hair so
we can test things like unescaping code.
Also changed from gtk_entry_get_text to gtk_editable_get_chars
as the former is deprecated and Truly Evil (tm).
in the dark ages (by me).
* libnautilus-extensions/nautilus-bookmark.c:
(nautilus_bookmark_compare_with), (nautilus_bookmark_copy),
(nautilus_bookmark_get_name),
(nautilus_bookmark_get_pixmap_and_mask),
(nautilus_bookmark_get_pixbuf), (nautilus_bookmark_get_icon),
(nautilus_bookmark_get_uri), (create_pixmap_widget_for_bookmark),
(nautilus_bookmark_menu_item_new): Eliminated the use of
const NautilusBookmark *; made _get_name and _get_uri return
copies instead of the original text; tweaked a little formatting.
* components/history/nautilus-history-view.c: (install_icon),
(hyperbola_navigation_history_load_location),
(hyperbola_navigation_history_select_row):
* libnautilus-extensions/nautilus-bookmark.h:
* src/nautilus-bookmark-list.c: (append_bookmark_node),
(nautilus_bookmark_list_append), (nautilus_bookmark_list_contains),
(nautilus_bookmark_list_delete_items_with_uri),
(nautilus_bookmark_list_insert_item):
* src/nautilus-bookmark-list.h:
* src/nautilus-bookmarks-window.c: (install_bookmark_icon),
(on_select_row), (repopulate):
* src/nautilus-window-manage-views.c:
(nautilus_window_reset_title_internal), (handle_go_back),
(handle_go_forward), (handle_go_elsewhere):
* src/nautilus-window-menus.c: (bookmark_holder_new),
(show_bogus_bookmark_window), (activate_bookmark_in_menu_item),
(append_bookmark_to_menu),
(nautilus_window_add_bookmark_for_current_location):
* src/nautilus-window.c: (nautilus_window_back_or_forward):
Eliminated the use of const NautilusBookmark *; changed all
callers of nautilus_bookmark_get_name and _get_uri to free
the results.
each remote bookmark). Bookmarks now get their icon only
when they're initially created, and then store a text
version of it to disk for future sessions. We might have
to update the icon at certain times later (maybe when it's
used?).
* libnautilus-extensions/nautilus-bookmark.h,
* libnautilus-extensions/nautilus-bookmark.c:
(nautilus_bookmark_copy), (nautilus_bookmark_get_pixbuf),
(nautilus_bookmark_get_icon), (get_icon_for_uri),
(nautilus_bookmark_new), (nautilus_bookmark_new_with_icon):
Changed guts of NautilusBookmark to keep a
NautilusScalableIcon around. Also some miscellaneous
cleanup in this ancient file (need to do more).
* libnautilus-extensions/nautilus-icon-factory.h,
* libnautilus-extensions/nautilus-icon-factory.c:
(get_themed_icon_file_path): Added icon != NULL assert.
(get_icon_file_path): Handle NULL icon name by returning NULL;
some style fixes.
(nautilus_scalable_icon_get_text_pieces): New function,
returns all four pieces of text used to define a
NautilusScalableIcon.
(nautilus_scalable_icon_new_from_text_pieces):
Renamed from nautilus_scalable_icon_get and made public.
(nautilus_icon_factory_get_icon_for_file),
(nautilus_icon_factory_get_emblem_icon_by_name),
(load_image_with_embedded_text): Updated for function renaming.
* src/nautilus-bookmark-list.c: (append_bookmark_node),
(make_bookmark_from_node), (nautilus_bookmark_list_load_file):
Save & restore NautilusScalableIcon with each bookmark.
Added custom error message when trying to open a location
fails with GNOME_VFS_LOGINFAILED
* src/nautilus-applicable-views.h: Define
NAUTILUS_NAVIGATION_RESULT_LOGIN_FAILED
* src/nautilus-applicable-views.c:
(get_nautilus_navigation_result_from_gnome_vfs_result):
Support GNOME_VFS_LOGINFAILED, and tweak message for
unhandled case.
* src/nautilus-window-manage-views.c:
(nautilus_window_end_location_change_callback):
Support NAUTILUS_NAVIGATION_RESULT_LOGIN_FAILED and
remove message for unhandled case since complaining
about unhandled cases is done elsewhere.
2000-06-15 JP Rosevear <jpr@arcavia.com>
* test/Makefile.am: Make sure that libleakcheck does not rely
on the /gnome prefix to build. Make sure libleakcheck is cleaned
and uninstalled properly.
added new icons from Susan, and fixed bug where images with
special chars (like blanks) in their name wouldn't get displayed
as custom icons properly by unescaping their uri.
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog),
(global_preferences_register_for_ui):
* libnautilus-extensions/nautilus-global-preferences.h:
Added search preferences to the preferences dialog
* libnautilus-extensions/nautilus-search-async.c:
(nautilus_async_medusa_search), (request_search),
(search_results_received_callback):
changed the result getting implementation to use
g_io_channel_watch, which emits a signal when
results arrive at the socket
* libnautilus-extensions/nautilus-program-choosing.h,
libnautilus-extensions/nautilus-program-choosing.c:
(nautilus_launch_application): Take a GnomeVFSMimeApplication *
instead of a command string; add gnome-terminal -x
(nautilus_launch_application_from_command): Old version that takes
a command string renamed. Also, uses `system' instead of `execlp',
so command-line arguments in the command string work.
* libnautilus-extensions/nautilus-program-chooser.c
(launch_mime_capplet): Adjusted to conform.
* src/file-manager/fm-directory-view.c
(fm_directory_view_launch_application): Likewise.
* src/nautilus-sidebar.c: (command_button_callback,
nautilus_sidebar_chose_application_callback, add_command_buttons):
Likewise.
* test/test-nautilus-mime-actions.c (print_application): Show the
requires_terminal field for applications.
2000-06-14 Pavel Cisler <pavel@eazel.com>
* test/Makefile.am:
* test/nautilus-leak-checker.c: (detect_reentry),
(nautilus_leak_record_malloc), (nautilus_leak_record_realloc),
(nautilus_leak_record_free), (allocate_temporary_fallback_memory),
(__libc_malloc), (__libc_memalign), (__libc_realloc),
(__libc_free), (malloc), (realloc), (memalign), (calloc), (free),
(main):
Fix problems in the reentry detection code that caused malloc/frees
sometimes getting counted twice.
Add reentry detection for malloc getting reentered as a result of
calling realloc.
* libnautilus-extensions/nautilus-horizontal-splitter.c:
(nautilus_horizontal_splitter_initialize_class),
(nautilus_horizontal_splitter_initialize),
(nautilus_horizontal_splitter_destroy),
(nautilus_horizontal_splitter_draw),
(nautilus_horizontal_splitter_new):
* libnautilus-extensions/nautilus-horizontal-splitter.h:
Damn, forgot to commit these 2 in the last checkin.
to default). Added "Reset Background" to Settings and
context menu.
* libnautilus-extensions/nautilus-background.h:
* libnautilus-extensions/nautilus-background.c:
(nautilus_background_is_set), (nautilus_background_reset):
New functions for checking whether the background has
been set, and for resetting it to the uncustomized state.
* libnautilus-extensions/nautilus-directory-background.c:
(background_changed_callback), (directory_changed_callback):
Changed default metadata value from white to NULL.
* src/file-manager/fm-directory-view.h,
* src/file-manager/fm-directory-view.c:
(fm_directory_view_initialize_class), (reset_background_callback),
(fm_directory_view_get_background_widget),
(fm_directory_view_get_background), (compute_menu_item_info),
(append_gtk_menu_item_with_view), (append_selection_menu_subtree),
(fm_directory_view_real_create_background_context_menu_items),
(create_open_with_gtk_menu),
(fm_directory_view_real_create_selection_context_menu_items),
(insert_bonobo_menu_item), (insert_bonobo_menu_subtree),
(reset_bonobo_trash_delete_menu), (reset_bonobo_open_with_menu),
(fm_directory_view_real_merge_menus), (update_one_menu_item),
(fm_directory_view_real_update_menus): Put "Reset Background"
menu item in Settings menu and context menu; keep its
sensitivity synched with background state.
* src/file-manager/fm-icon-view.c:
(fm_icon_view_get_background_widget): New function to let
superclass get at the NautilusBackground.
(fm_icon_view_initialize_class): Wire up new function.
(fm_icon_view_initialize), (create_icon_container): Remove
unused return value for create_icon_container.
* src/file-manager/fm-list-view.c:
(fm_list_view_get_background_widget): New function to let
superclass get at the NautilusBackground.
(fm_list_view_initialize_class): Wire up new function.
(create_list): Remove unused return value.