| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Remove all uses of deprecated GDK and GTK+ symbols, replacing them
with the currently supported equivalents.
Based on a patch from Tal Benavidor (#565038).
|
|
|
|
|
|
|
|
|
|
|
| |
2008-05-21 A. Walton <awalton@gnome.org>
* */*.[ch]:
Move all of Nautilus to single Gtk+ includes, because Mitch says so.
Closes Bug #530315.
svn path=/trunk/; revision=14182
|
| |
|
|
|
|
|
|
|
| |
* Lots of files:
More GNOME 2 work. We now compile up to libnautilus-private and
I'm working my way through the files in there. Also changed all
the initialize_class and initialize to class_init and init.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* acconfig.h:
* configure.in:
Add a NAUTILUS_SOURCE_DIRECTORY that contains the location of the
nautilus source code, so that some checks can work without having
to do 'make install'
* components/services/install-view/nautilus-service-install-view.c:
(nautilus_service_install_view_initialize_class):
Initialize preferences so that smooth widgets and other nautilus
specific preferences work.
* components/services/summary/nautilus-summary-view.c:
(nautilus_summary_view_initialize_class):
Initialize preferences so that smooth widgets and other nautilus
specific preferences work.
* libnautilus-extensions/Makefile.am:
Remove macros that arent needed any more.
* libnautilus-extensions/nautilus-entry.h:
* libnautilus-extensions/nautilus-entry.c:
(nautilus_entry_initialize), (obscure_cursor),
(nautilus_entry_key_press), (nautilus_entry_motion_notify),
(nautilus_entry_set_text), (nautilus_entry_insert_text),
(nautilus_entry_delete_text), (nautilus_entry_initialize_class),
(nautilus_entry_set_special_tab_handling):
Make all the attributes private.
* libnautilus-extensions/nautilus-font-manager.c:
(at_exit_handler), (nautilus_free_static_storage_at_exit),
(gnome_vfs_init_if_needed), (font_description_table_add),
(font_description_table_new), (directory_contains_file),
(ensure_local_font_table),
(nautilus_font_manager_get_default_font),
(nautilus_font_manager_get_default_bold_font),
(nautilus_self_check_font_manager):
Remove dependency on nautilus-file-utilities. Update for new
machanism for finding data in the source directory so that checks
work even when Nautilus has not undergone 'make install.'
* libnautilus-extensions/nautilus-global-preferences.c:
(smooth_graphics_mode_changed_callback),
(nautilus_global_preferences_initialize):
Keep track of preferences smooth graphics mode changes and call
the new smooth widget api for changing the smoothness of all
tracked widgets.
* libnautilus-extensions/nautilus-scalable-font.c:
Remove a rogue unused #include.
* libnautilus-extensions/nautilus-smooth-widget.h:
* libnautilus-extensions/nautilus-smooth-widget.c:
(nautilus_smooth_widget_global_set_is_smooth),
(nautilus_smooth_widget_register):
Dont use preferences to track global smoothness changes. Add a
function to that instead.
* src/nautilus-location-bar.c: (nautilus_location_bar_initialize):
Update for privatized NautilusEntry attributes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix bug 6495 (Emacs-style keybindings not working in location bar
and other NautilusEntry fields) by adding an expert preference to
control whether the Emacs shortcuts or the ones in the menu bar
take precedence. I started with Maciej's patch and did many
refinements.
Fix bug 1788 ("Select All" needs to be implemented for text): I
had to add Select All so it won't do the icon view's Select All
when you do a select all with the location bar focused.
Fix bug 5612 (clicking to deselect causes incorrect menu
sensitivity) by adding another signal handler for button clicks.
Fix bug 7581 (When trying to restart Nautilus after crash from bug
7579 I get a Segmentation Fault). I was just lucky enough to run
into the problem on my machine.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_install_descriptions),
(global_preferences_install_defaults),
(global_preferences_install_visibility),
(global_preferences_create_dialog): Added the new Emacs-shortcut
preference with the wording requested in the bug report.
* libnautilus-extensions/nautilus-entry.h:
* libnautilus-extensions/nautilus-entry.c:
(emacs_shortcuts_preference_changed_callback): Track the
preference.
(nautilus_entry_initialize): Set up the callback to track the
preference.
(nautilus_entry_destroy): Tear down the callback to track the
preference.
(nautilus_entry_key_press): Allow the emacs shortcuts built into
GtkEntry to work if the preference is set that way. Also, only
emit the selection_changed signal if the key is actually handled.
(nautilus_entry_motion_notify): Simplify the logic, since it's
OK to send the selection_changed signal a little too often.
(select_all_at_idle): Handle the case where the object is
destroyed.
(nautilus_entry_select_all_at_idle): Ref the object to handle the
case where the object is destroyed before the idle happens.
(nautilus_entry_button_press): Send a selection_changed message,
since pressing the button can cause a selection change.
(nautilus_entry_button_release): Send a selection_changed message,
since pressing the button can cause a selection change.
(nautilus_entry_initialize_class): Add new default handlers. Also,
move to bottom of file so we don't need so many forward
declarations.
* libnautilus/nautilus-clipboard-ui.xml: Add a Select All Text
command.
* libnautilus/nautilus-clipboard.c: (select_all): New function to
select all the text in a GtkEditable. Sadly it needs a special
case for GtkText.
(select_all_idle_callback): Callback used to select the text from
idle.
(select_all_callback): Callback that sets up the idle. Called from
the bonobo verb.
(initialize_clipboard_component_with_callback_data): Add the
callback for Select All.
* librsvg/rsvg.c: (rsvg_state_init): Initialize more fields,
including font_size.
(rsvg_text_handler_characters): Don't try to draw if the font
size is 0 or negative.
* librsvg/art_render_mask.c: (art_render_mask_render): Handle
cases where x1 < x0. The old code would seg. fault. This was the
reason we got a crash in bug 7581.
* configure.in: Upped the required version of gnome-vfs.
|
|
|
|
| |
bar and the pref dialog. part of a fix for bug 6391.
|
|
|
|
| |
better in nautilus.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-12-22 Gene Z. Ragan <gzr@eazel.com>
reviewed by: Pavel Cisler<pavel@eazel.com>
Fixed bug 4951, No error given selecting unmountable "Disks" volume.
I added a pipe to monitor the result of the mount/umount command.
If an error is in the pipe, a details error dialog is displayed.
A generic mount failed error is first and the details button reveals
the error message returned in the pipe.
* libnautilus-extensions/nautilus-volume-monitor.c: (find_command),
(open_error_pipe), (close_error_pipe),
(nautilus_volume_monitor_mount_unmount_removable):
Renamed xfer to transfer.
* libnautilus-extensions/nautilus-file-operations.c:
(parent_for_error_dialog), (transfer_dialog_clicked_callback),
(create_transfer_dialog), (handle_transfer_ok),
(build_error_string), (handle_transfer_vfs_error),
(handle_transfer_overwrite), (handle_transfer_duplicate),
(update_transfer_callback), (sync_transfer_callback),
(nautilus_file_operations_copy_move),
(handle_new_folder_vfs_error), (new_folder_transfer_callback),
(nautilus_file_operations_new_folder),
(nautilus_file_operations_move_to_trash),
(nautilus_file_operations_delete), (do_empty_trash):
Added compatibility call.
* libnautilus-extensions/nautilus-entry.c:
* libnautilus-extensions/nautilus-entry.h:
(nautilus_entry_new_with_max_length):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-11-28 Gene Z. Ragan <gzr@eazel.com>
reviewed by: Pavel Cisler <pavel@eazel.com>
* libnautilus-extensions/nautilus-entry.c:
(nautilus_entry_initialize):
Set cursor_obscured flag to false and update event mask
to allow pointer moved events.
(nautilus_entry_motion_notify):
Display the cursor if it was previouslly hidden.
(obscure_cursor):
New function that hides the cursor when the user begins typing.
(nautilus_entry_key_press):
Call obscure_cursor function.
* libnautilus-extensions/nautilus-entry.h:
Added cursor_obscured flag to entry class.
* libnautilus-extensions/nautilus-gdk-extensions.c:
* libnautilus-extensions/nautilus-gdk-extensions.h:
(nautilus_gdk_window_set_invisible_cursor):
New function to hide the cursor of the widget passed in.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-11-21 Rebecca Schulman <rebecka@eazel.com>
reviewed by: Pavel Cisler <pavel@eazel.com>
Fixes for bugs 690 and 733, to make the clipboard
work for file editing in place, and make sensitivity
work. Paste doesn't work correctly still, and a bug
is filed for this issue.
* libnautilus-extensions/nautilus-entry.h:
* libnautilus-extensions/nautilus-entry.c:
(nautilus_entry_initialize_class), (nautilus_entry_key_press),
(nautilus_entry_motion_notify), (nautilus_entry_set_text),
(nautilus_entry_set_selection), (nautilus_entry_insert_text),
(nautilus_entry_delete_text):
Added a new signal to nautilus entry, called "selection_changed"
that is fired whenever the region selected in an editiable widget
is changed. This is used to determine how to set clipboard sensitivity
correctly.
* libnautilus-extensions/nautilus-icon-container.h:
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_initialize_class),
(nautilus_icon_container_start_renaming_selected_item),
(hide_rename_widget):
Add a new signal "renaming_icon", which tells the icon view
to set up clipboard capabilities for the new editable widget
* libnautilus-extensions/nautilus-icon-private.h:
* libnautilus-extensions/nautilus-icon-text-item.h:
* libnautilus-extensions/nautilus-icon-text-item.c:
(iti_stop_editing), (iti_entry_text_changed_by_clipboard),
(iti_start_editing), (iti_destroy), (iti_start_selecting),
(iti_stop_selecting), (iti_event),
(nautilus_icon_text_item_get_renaming_editable):
Sad hacks that I had to add on top of this already scary file so
that the editable, which is in its own offscreen window somewhere,
communicates to the clipboard what is actually going on when text
is entered and selections are changed. This includes adding a
new signal when text is changed, to make sure the entry knows about
it, firing an initial grab focus for the widget so that the widget
turns on, passing on more of the events of the canvas
widget, including motion notifies and focus events, and
keeping a persistent copy of the last renaming entry in the icon
container so that pastes for that widget will still work.
* libnautilus/nautilus-clipboard.h:
* libnautilus/nautilus-clipboard.c: (set_menu_item_sensitive),
(set_paste_sensitive_if_clipboard_contains_data),
(set_clipboard_menu_items_sensitive),
(set_clipboard_menu_items_insensitive),
(clipboard_items_are_merged_in),
(set_clipboard_items_are_merged_in),
(merge_in_clipboard_menu_items), (merge_out_clipboard_menu_items),
(focus_changed_callback), (grab_focus_callback),
(selection_changed_callback),
(initialize_clipboard_component_with_callback_data),
(nautilus_clipboard_set_up_editable),
(widget_was_set_up_with_selection_sensitivity),
(first_focus_callback),
(nautilus_clipboard_set_up_editable_in_control):
Reorganized some of the code, and also added new callbacks
to deal with sensitivity changes.
* src/file-manager/fm-directory-view.h:
* src/file-manager/fm-directory-view.c:
(fm_directory_view_get_bonobo_control):
Add a new function that the icon view uses to
pass the bonobo control for clipboard set up
* src/file-manager/fm-icon-view.c: (renaming_icon_callback),
(create_icon_container):
Set up clipboard capabilities when the renaming widget is
created.
* src/nautilus-location-bar.c: (nautilus_location_bar_new):
* components/notes/nautilus-notes.c: (make_notes_view):
* src/nautilus-simple-search-bar.c:
(nautilus_simple_search_bar_new):
Changed calls to clipboard set up routines to include
the new shares_selection_changes parameter. Widgets that
use the "selection_changed" signal (NautilusEntries)
say "TRUE" here, otherwise selection doesn't work quite
right, and FALSE is used instead.
* src/nautilus-search-bar-criterion.c: (get_size_location_for):
Deal with the case when a user has entered a non-numeric size
in a smart way, by using nautilus_str_to_int. This is related
to bug 2438, but is not a complete fix.
|
|
|
|
|
|
|
|
| |
fixed bug 2829, location bar should treat TAB like right arrow
when there's a selection, by adding a mode to our entry class to do so.
Also, fixed bug 1826, change "initial update" download to real uri, now using
one specified by Susan Space.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libnautilus-extensions/nautilus-undo-signal-handlers.c:
* libnautilus-extensions/nautilus-undo-signal-handlers.h:
(nautilus_entry_user_changed_callback),
(nautilus_undo_setup_nautilus_entry_for_undo),
(nautilus_undo_teardown_nautilus_entry_for_undo),
(free_editable_undo_data), (free_editable_object_data),
(editable_insert_text_callback), (editable_delete_text_callback),
(editable_register_edit_undo),
(nautilus_undo_setup_editable_for_undo),
(nautilus_undo_teardown_editable_for_undo),
(restore_editable_from_undo_snapshot_callback),
(editable_key_press_event), (nautilus_undo_editable_set_undo_key):
New file and functions to handle undo in NautilusEntry and
GtkEditables. This file is intended to contain signal handlers
that enable undo for a variety of GTK widgets. Calling a
setup_for_undo function will prepare the widget to handle
undo functionality.
* libnautilus-extensions/Makefile.am:
Added entries for new files nautilus-undo-signal-handlers.c
and nautilus-undo-signal-handlers.h
* components/notes/nautilus-notes.c: (make_notes_view):
Fixed bug #973. Add undo to notes component.
* components/websearch/ntl-web-search.c: (make_obj):
Changed to use new undo signal handlers.
* libnautilus-extensions/nautilus-entry.c:
(nautilus_entry_initialize), (nautilus_entry_key_press),
(nautilus_entry_set_text), (nautilus_entry_delete_text):
Removed old undo code that had been rendered obsolete by the
new signal handlers mentioned above.
* src/nautilus-bookmarks-window.c: (create_bookmarks_window):
Changed to use new undo signal handlers.
----------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-06-08 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-entry.c:
(nautilus_entry_initialize_class),
(nautilus_entry_initialize):
Fixed bug 983. Added user_changed signal.
(nautilus_entry_destroy), (nautilus_entry_set_text),
(nautilus_entry_insert_text), (nautilus_entry_delete_text),
(free_undo_data), (register_edit_undo),
(restore_from_undo_snapshot_callback),
(nautilus_entry_set_undo_key):
Cleanups in the way undo was being registered. Created
local undo data structure and removed cached undo text
from class. Localized checking of undo registered
boolean to a single location.
(user_changed_callback):
Added callback coonected to user changed signal.
Undo registering is handled here.
* src/nautilus-bookmarks-window.c: (create_bookmarks_window),
(on_select_row), (on_text_field_focus_in_event),
(on_text_field_focus_out_event), (repopulate):
Updated code to properly handle undo.
* src/nautilus-location-bar.c:
(nautilus_location_bar_set_location):
Updated code to properly handle undo.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-05-25 Gene Z. Ragan <gzr@eazel.com>
More work on undo. Note that undo in text entry fields still
misbehaves. More improvements are on the way.
* components/websearch/ntl-web-search.c:
(make_obj):
Removed obsolete enable undo code.
* libnautilus-extensions/nautilus-entry.c:
* libnautilus-extensions/nautilus-entry.h:
(nautilus_entry_initialize_class), (nautilus_entry_key_press),
(nautilus_entry_insert_text), (nautilus_entry_delete_text),
(register_edit_undo), (nautilus_entry_set_undo_key):
Removed the enable_undo function and made undo functionality
a default feature of NautilusEntry.
* libnautilus/nautilus-undo-transaction.c:
(nautilus_undo_transaction_add_undoable),
(nautilus_undo_transaction_undo):
* libnautilus/nautilus-undoable.c:
* libnautilus/nautilus-undoable.h:
(nautilus_undoable_save_undo_snapshot), (nautilus_undo_unregister):
* src/file-manager/fm-properties-window.c: (create_basic_page):
Removed obsolete enable undo code.
* src/nautilus-bookmarks-window.c: (on_text_field_focus_in_event),
(on_text_field_focus_out_event), (on_window_delete_event):
Removed obsolete enable undo code.
* src/nautilus-location-bar.c:
* src/nautilus-location-bar.h:
(nautilus_location_bar_set_location):
Removed obsolete enable undo code.
* src/ntl-window.c: (nautilus_window_constructed):
Removed obsolete enable undo code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* HACKING: Change format to make popt "pop" out more.
* libnautilus-extensions/nautilus-entry.h:
* src/file-manager/fm-properties-window.c: (create_basic_page):
* src/nautilus-bookmarks-window.c: (on_text_field_focus_in_event),
(on_window_delete_event):
* src/nautilus-location-bar.c: (nautilus_location_bar_enable_undo):
* src/nautilus-location-bar.h:
* src/nautilus-window-menus.c: (edit_menu_undo_callback),
(bookmarks_menu_add_bookmark_callback),
(bookmarks_menu_edit_bookmarks_callback),
(get_or_create_bookmarks_window), (nautilus_bookmarks_exiting),
(edit_bookmarks), (nautilus_window_initialize_menus),
(update_undo_menu_item):
* src/ntl-app.c: (nautilus_app_init), (nautilus_app_destroy):
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_start_renaming_selected_item):
* libnautilus-extensions/nautilus-entry.c:
(nautilus_entry_key_press), (nautilus_entry_enable_undo):
* libnautilus/nautilus-undo-manager.c:
(nautilus_undo_manager_begin_transaction),
(nautilus_undo_manager_unregister_object),
(prune_undo_manager_list), (nautilus_get_undo_manager),
(nautilus_attach_undo_manager), (nautilus_share_undo_manager):
* libnautilus/nautilus-undo-manager.h:
* src/ntl-window-private.h:
* src/ntl-window.c: (nautilus_window_constructed),
(nautilus_window_real_set_content_view),
(nautilus_window_get_undo_manager):
* src/ntl-window.h:
Got rid of the undo manager parameter for the enable_undo
operation.
Eliminated code that sets up the undo manager except for the top
widgets. We only need it attached to windows and to the top widget
in each component.
Change callers to get the undo manager in a few simple ways
instead of calling gtk_object_get_data directly. Added some calls
to attach the undo manager to an arbitrary object.
* libnautilus/nautilus-undo.idl: Added comments to the IDL and
also added the Undo::Context class.
* libnautilus/nautilus-view-component.idl: Removed the dependency
on the undo IDL and the undo_manager attribute.
* src/nautilus-bookmarks-window.h:
* src/nautilus-bookmarks-window.c: (create_bookmarks_window):
Changed interface to take object to inherit the undo manager from
instead of the undo manager itself. Got rid of unnecesary undo
manager setting.
(nautilus_bookmarks_window_save_geometry): Also changed interface
to use GtkWindow instead of GtkWidget.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-05-17 Gene Z. Ragan <gzr@eazel.com>
CVS: ----------------------------------------------------------------------
First phase of modifying undo code. These changes CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
affect the way undo is handled internally to Nautilus and CVS:
also defines a new IDL. This is work in progress. CVS: Committing in .
CVS:
* libnautilus-extensions/nautilus-entry.c: CVS: Modified Files:
Modified to use gtk_object_get_data() mechanism to locate undo manager CVS: ChangeLog libnautilus/.cvsignore libnautilus/Makefile.am
CVS: libnautilus/nautilus-undo-manager-private.h
* libnautilus-extensions/nautilus-icon-container.c: CVS: libnautilus/nautilus-undo-manager.c
(nautilus_icon_container_start_renaming_selected_item): CVS: libnautilus/nautilus-undo-manager.h
Modified to use gtk_object_get_data() mechanism to locate undo manager CVS: libnautilus/nautilus-undo-transaction.h
CVS: libnautilus/nautilus-undoable.c
* libnautilus-extensions/nautilus-icon-text-item.c: (iti_event), CVS: libnautilus/nautilus-undoable.h
(restore_from_undo_snapshot_callback): CVS: libnautilus/nautilus-view-component.idl
Modified to use gtk_object_get_data() mechanism to locate undo manager CVS: libnautilus-extensions/nautilus-entry.c
CVS: libnautilus-extensions/nautilus-entry.h
* libnautilus/.cvsignore: CVS: libnautilus-extensions/nautilus-icon-container.c
Added generated IDL source and header files to ignore CVS: libnautilus-extensions/nautilus-icon-text-item.c
CVS: src/nautilus-bookmarks-window.c
* libnautilus/Makefile.am: CVS: src/nautilus-bookmarks-window.h src/nautilus-location-bar.c
Modified makefile to include new IDL file for undo manager CVS: src/nautilus-location-bar.h src/nautilus-window-menus.c
CVS: src/ntl-app.c src/ntl-window-private.h src/ntl-window.c
* libnautilus/nautilus-undo-manager.c: CVS: src/ntl-window.h src/file-manager/fm-properties-window.c
(impl_Nautilus_Undo_Manager__destroy), CVS: Added Files:
(impl_Nautilus_Undo_Manager__create), CVS: libnautilus/nautilus-undo.idl
(impl_Nautilus_Undo_Manager__append), CVS: Removed Files:
(impl_Nautilus_Undo_Manager__forget), CVS: libnautilus/nautilus-undo-manager-component.idl
(nautilus_undo_manager_initialize), CVS: ----------------------------------------------------------------------
(nautilus_undo_manager_initialize_class),
(nautilus_undo_manager_begin_transaction),
(nautilus_undo_manager_end_transaction),
(nautilus_undo_manager_undo), (nautilus_undo_manager_redo),
(nautilus_undo_manager_add_transaction),
(nautilus_undo_manager_unregister_object),
(nautilus_undo_manager_can_undo), (nautilus_undo_manager_can_redo),
(get_current_transaction_name),
(nautilus_undo_manager_get_current_undo_transaction_name),
(nautilus_undo_manager_get_current_redo_transaction_name),
(destroy), (nautilus_undo_manager_enable_redo),
(nautilus_undo_manager_set_queue_depth),
(free_undo_manager_list_data), (prune_undo_manager_list):
Changes to support new IDL and new undo manager mechanism.
* libnautilus/nautilus-undo.idl:
New undo manager IDL file
* libnautilus/nautilus-undo-manager-component.idl:
Removed old undo manager IDL file
* src/file-manager/fm-properties-window.c:
(create_basic_page):
Modified to use gtk_object_get_data() mechanism to locate undo manager
* src/nautilus-bookmarks-window.c:
(create_bookmarks_window),
(on_text_field_focus_in_event),
(on_window_delete_event):
Modified to use gtk_object_get_data() mechanism to locate undo manager
* src/nautilus-location-bar.c:
(nautilus_location_bar_set_location),
(nautilus_location_bar_enable_undo):
Modified to use gtk_object_get_data() mechanism to locate undo manager
* src/nautilus-window-menus.c:
(edit_menu_undo_callback),
(edit_menu_cut_callback),
(bookmarks_menu_edit_bookmarks_callback),
(get_bookmarks_window),
(nautilus_bookmarks_exiting),
(nautilus_window_edit_bookmarks),
(nautilus_window_initialize_menus),
(update_undo_menu_item):
Modified to use gtk_object_get_data() mechanism to locate undo manager
* src/ntl-app.c:
(impl_Nautilus_Application__get_view_windows),
(impl_Nautilus_Application_new_view_window),
(impl_Nautilus_Application_supports),
(impl_Nautilus_Application_create_object),
(impl_Nautilus_Application__create), (nautilus_app_get_type),
(nautilus_app_class_init), (nautilus_app_init), (nautilus_app_new),
(nautilus_app_destroy), (nautilus_app_startup),
(nautilus_app_create_window):
Modified to use gtk_object_get_data() mechanism to locate undo manager.
Added and modified IDL C stubs to match new IDL interface.
* src/ntl-window.c:
(nautilus_window_constructed),
(nautilus_window_set_arg):
Changed order that arguments are set at time of main window create so the app instance
variable is valid when the main window is contructed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-05-03 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-entry.c
* libnautilus-extensions/nautilus-entry.h:
Refined undo support.
(nautilus_entry_enable_undo_key):
New function to set internal handling of ctl-z for undo.
* libnautilus-extensions/nautilus-icon-container.c
(hide_rename_widget):
Removed deletion of undo transaction. This is now handled
by the owner of the widget.
* libnautilus-extensions/nautilus-undo-manager.c
(nautilus_undo_manager_unregister_object):
New function to unregister a GtkObject form the undo manager.
Any transaction that contains the object is removed from the
undo and redo lists. This should be called for any object that
is no longer available for user interaction.
* libnautilus-extensions/nautilus-undo-transaction.c
(nautilus_undo_transaction_contains_object):
Function added to support nautilus_undo_manager_unregister_object()
call in the undo manager. Each NautilusUndoable in a transaction
is checked for the object to be removed.
* src/file-manager/fm-icon-view.c:
* src/file-manager/fm-properties-window.c
(create_properties_window):
Added call to unregister rename widget form undo manager.
* src/nautilus-bookmarks-window.c
Added undo support for entry widgets.
* src/nautilus-location-bar.c
Changed to support modified undo manager APIs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-05-02 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-entry.c
Connected widget to undo manager.
(nautilus_entry_initialize),
(nautilus_entry_destroy),
(nautilus_entry_key_press):
Added check for ctl-z. An undo is requested when the key combination
is triggered.
(nautilus_entry_changed):
Added undo registration when text is modified.
(save_undo_snapshot_callback),
(restore_from_undo_snapshot_callback):
Standard undo manager callbacks
(nautilus_entry_enable_undo):
Added new function. Pass in boolean value to enable or disable
undo functionality.
|
|
* README: Made the contents of this file slightly helpful.
* data/mime/nautilus.keys: Added an obscure MIME type that
someone reported running into.
* libnautilus-extensions/nautilus-entry.h,
* libnautilus-extensions/nautilus-entry.c: New files. Define a
subclass of GtkEntry (one-line text editing field) that fixes
bugs and adds convenience functions.
(nautilus_entry_key_press): Override key_press handler to treat
the keypad Enter key the same as the other Enter key (in GtkEntry
it inserts a "/r" into the text).
(nautilus_entry_select_all): Select all text, and move the text
cursor position to the end.
(nautilus_entry_select_all_at_idle): Same, but do it at the next
idle opportunity. Useful since nautilus_entry_select_all won't
work right if called in a key_press signal handler.
* libnautilus-extensions/Makefile.am: Build these two new files.
* src/file-manager/fm-properties-window.c:
(name_field_activate): New function, updates file name and
selects all text.
(create_properties_window): Make name_field be a NautilusEntry.
This fixes half of bug 433 (Enter keys don't work properly in
properties window). Also attach to "activate" signal and update
name change then. This fixes other half of bug 433. Also start
with name field selected & focused. This fixes bug 432 (properties
window should appear with name text selected).
(name_field_update_to_match_file): Only update the displayed text
if the new name coming in is different. This was needed to make
select-all-on-activate work.
(name_field_done_editing): Don't accept empty string as name;
silently revert back to original name.
* src/nautilus-bookmarks-window.c:
(create_bookmarks_window): Change name & uri text fields to
NautilusEntry; this causes keypad Enter key to behave like other
Enter key. Also connect to focus_in and activate signals.
(update_bookmark_from_text): New function, extracted from
on_text_field_focus_out_event.
(on_text_field_focus_out_event): Deselect all text after updating
bookmark.
(on_text_field_focus_in_event): New function, select all text.
(name_or_uri_field_activate): New function, update bookmark and
select all text.
* src/nautilus-location-bar.c:
(nautilus_location_bar_initialize): Use NautilusEntry instead of
GtkEntry. This makes keypad Enter act like other Enter in uri-entry
field.
* src/ntl-window-msgs.c:
(nautilus_window_end_location_change_callback): Make "Nautilus can't
handle this type of file" message mention (human-readable version of)
file type.
|