summaryrefslogtreecommitdiff
path: root/libnautilus/nautilus-clipboard.c
Commit message (Collapse)AuthorAgeFilesLines
* Save the source so the idle callback can cancel the weak ref.Dave Camp2002-08-151-7/+28
| | | | | | | | | | 2002-08-15 Dave Camp <dave@ximian.com> * libnautilus/nautilus-clipboard.c (select_all_callback): Save the source so the idle callback can cancel the weak ref. (select_all_idle_callback): Cancel the weak ref so the source isn't destroyed twice. This should fix #74403.
* use g_object_weak_ref instead of the "destroy" signal which is mostlyMichael Meeks2002-03-111-6/+10
| | | | | | | | | | 2002-03-11 Michael Meeks <michael@ximian.com> * libnautilus/nautilus-clipboard.c (select_all_callback): use g_object_weak_ref instead of the "destroy" signal which is mostly useless. (idle_source_destroy_callback): impl.
* a GSource is not a GObject, #73782.Michael Meeks2002-03-081-2/+6
| | | | | | | | 2002-03-08 Michael Meeks <michael@ximian.com> * libnautilus/nautilus-clipboard.c (select_all_callback): a GSource is not a GObject, #73782.
* Because lots of recent bugs were due to "signal handler called afterDarin Adler2002-03-071-21/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Tons of files: Because lots of recent bugs were due to "signal handler called after object gone" problems, switched many calls of g_signal_connect and g_signal_connect_swapped to use g_signal_connect_object instead. Also did other signal-related cleanup and changed some destroys to finalizes. * libnautilus/nautilus-view-standard-main.h: We no longer need to include nautilus-view.h in here. So include it in the files that use this instead. Did merges from stable branch: 2001-10-25 Darin Adler <darin@bentspoon.com> * libnautilus-private/nautilus-directory.c: (call_files_changed_common), (call_files_changed_free_list), (call_files_changed_unref_free_list), (nautilus_directory_notify_files_changed): Move call to nautilus_directory_add_file_to_work_queue into a better bottleneck; now it catches all the notify cases, not just changed. Also tell it to re-get top-left text and link info too when we get a changed notice. * src/file-manager/fm-directory-view.c: (queue_pending_files): Don't use the timeout (and the hysteresis) when queuing files once the initial directory load is complete. Doing this was causing delays processing changes that came in later, which we don't want. * src/nautilus-sidebar-title.c: (item_count_ready), (monitor_add), (update_all), (nautilus_sidebar_title_set_file): Monitor the directory count once we get it the first time. This makes sure that changes in the directory count get reflected in the sidebar without creating a race with the main view to see who calculates it first. 2001-10-25 Alex Larsson <alexl@redhat.com> * libnautilus-private/nautilus-directory.c (nautilus_directory_notify_files_changed): Call nautilus_directory_add_file_to_work_queue() when file_info is invalidated. Otherwise it will not be read again.
* Call the real nautilus_global_preferences_init. Without this, all hellDarin Adler2002-03-041-32/+33
| | | | | | | | | | | | | | | | | | | | | | * 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.
* Just release, don't unref. (get_metafile): Don't keep a ref. Also fixDarin Adler2002-02-271-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Simplified calls to bonobo_object_ref/unref.Darin Adler2002-02-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* fix licensing info.Laszlo Peter2002-02-041-3/+3
| | | | | | 2002-02-04 Laszlo Peter <laca@ireland.sun.com> * libnautilus/nautilus-clipboard.[ch]: fix licensing info.
* fix marshaller.Michael Meeks2001-11-221-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-11-22 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-icon-container.c (nautilus_icon_container_class_init): fix marshaller. * libnautilus-private/nautilus-marshal.list: add INT_POINTER_BOOLEAN * src/file-manager/fm-properties-window.c (real_destroy): protect against double destroys. Tue Nov 20 21:45:43 2001 Owen Taylor <otaylor@redhat.com> * configure.in: Add [quoting] around AC_CHECK_HEADERS needed for some autoconf versions. * components/text/nautilus-text-view.c (file_read_callback): text_view->details->text_display is set to NULL in nautilus_text_view_destroy(), so simply check for non-NULL rather than calling GTK_OBJECT_DESTROYED(). * src/file-manager/fm-properties-window.c (real_destroy): NULL out name_field here, since it will be destroyed, so we can avoid accessing it in rename_callback. * libnautilus-private/Makefile.am (nautilus-marshal-guts.c): Get rid of nautilus-marshal-guts.h, since glib-genmarshal now generates correct standalone headers. * libnautilus/nautilus-clipboard.c (select_all_callback), * libnautilus-private/nautilus-entry.c (nautilus_entry_select_all_at_idle): Remove the idle on destrunction of the widget, rather than checking GTK_OBJECT_DESTROYED().
* kill g_log_domain_glib.Michael Meeks2001-11-211-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-11-21 Michael Meeks <michael@ximian.com> * src/nautilus-main.c (main): kill g_log_domain_glib. * components/news/nautilus-news.c (main): ditto. * libnautilus-private/nautilus-marshal.h: upd. * libnautilus/nautilus-view.c (nautilus_view_class_init): update for new marshallers. * libnautilus-private/nautilus-directory-async.c (nautilus_directory_async_state_changed): #ifdef out GTK_OBJECT_DESTROYED check. * libnautilus/nautilus-clipboard.c (select_all_idle_callback): kill GTK_OBJECT_DESTROYED check; unneccessary. * libnautilus-private/nautilus-directory.c (nautilus_directory_find_file_by_internal_uri): ditto. * libnautilus-private/nautilus-entry.c (select_all_at_idle): ditto. * components/text/nautilus-text-view.c (file_read_callback): ditto. * src/file-manager/fm-properties-window.c (rename_callback): ditto.
* Lots of files. Get rid a lot of unneeded casts.Darin Adler2001-11-091-4/+4
| | | | | * Lots of files. Get rid a lot of unneeded casts.
* Cleanup, turn on all DISABLE_DEPRECATED. Turn on all DISABLE_DEPRECATED.Darin Adler2001-11-091-63/+24
| | | | | | | | | | | | | | | | * components/sample/Makefile.am: Cleanup, turn on all DISABLE_DEPRECATED. * libnautilus/Makefile.am: Turn on all DISABLE_DEPRECATED. * components/sample/nautilus-sample-content-view.c: (nautilus_sample_content_view_instance_init): Remove gratuitous assert. * libnautilus/nautilus-clipboard.c: (cut_callback), (copy_callback), (paste_callback): Remove bug workaround. (merge_in_clipboard_menu_items), (merge_out_clipboard_menu_items), (nautilus_clipboard_set_up_editable), (disconnect_set_up_in_control_handlers): gtk_signal -> g_signal.
* Lots of files. Another GtkObject -> GObject pass.Darin Adler2001-11-061-23/+21
| | | | | * Lots of files. Another GtkObject -> GObject pass.
* update bonobo requirement to 1.106.0 bump bonobo-activation to 0.9.3, bumpMichael Meeks2001-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-11-06 Michael Meeks <michael@ximian.com> * configure.in: update bonobo requirement to 1.106.0 bump bonobo-activation to 0.9.3, bump canvas and libgnome[ui] to 1.105, ORBit2 >= 2.3.97, glib, gtk+, gdk-pixbuf >= 1.3.10, gconf >= 1.1.3 * components/adapter/nautilus-adapter-control-embed-strategy.c (nautilus_adapter_control_embed_strategy_activate): add NULL opt_ev to bonobo_ui_util_set_ui and/or bonobo_control_frame_set_ui_container * components/adapter/nautilus-adapter-embeddable-embed-strategy.c (nautilus_adapter_embeddable_embed_strategy_activate): ditto. * libnautilus/nautilus-view.c (nautilus_view_set_up_ui): ditto. * libnautilus/nautilus-clipboard.c (merge_in_clipboard_menu_items): ditto. * src/nautilus-window.c (nautilus_window_constructed): ditto. * src/file-manager/fm-desktop-icon-view.c (real_merge_menus): ditto. * src/file-manager/fm-search-list-view.c (real_merge_menus): ditto. * libnautilus/nautilus-view.c (nautilus_view_set_up_ui): ditto.
* Tons of files. More GtkObject -> GObject stuff.Darin Adler2001-11-041-3/+3
| | | | | * Tons of files. More GtkObject -> GObject stuff.
* remove GtkText workaround (I'm also checking in a fix for the bug beingHavoc Pennington2001-11-021-15/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-11-01 Havoc Pennington <hp@pobox.com> * libnautilus/nautilus-clipboard.c (select_all): remove GtkText workaround (I'm also checking in a fix for the bug being worked around) * libnautilus-private/nautilus-bookmark.c (nautilus_bookmark_menu_item_new): replace some PixmapMenuItem with ImageMenuItem * src/file-manager/fm-directory-view.c (set_script_environment_variables): use eel_gtk_window_get_geometry_string * src/nautilus-zoom-control.c: just nuke the draw method, it ain't coming back * src/nautilus-window.c (set_initial_window_geometry): remove gtk_window_set_policy() that was useless, and replace set_usize with set_size_request. (nautilus_window_constructed): remove menu_bar_no_resize_hack, I have no idea what GTK bug it's talking about, neither does the referenced bug report say, but if we see it again we'll fix it. (plus it says the bug is unsigned math, and GTK 2 pretty much did a global s/uint/int/, especially in the size request/alloc code) * src/nautilus-desktop-window.c (realize): just remove the gnome_win_hints stuff, as the FIXME says, it's dead. (realize): remove the set_decorations, set_functions, and the move_resize, all cruft (nautilus_desktop_window_init): simplify some cruft in here * src/nautilus-bookmarks-window.c (nautilus_bookmarks_window_save_geometry): use eel_gtk_window_get_geometry_string * src/nautilus-window.c (nautilus_window_save_geometry): ditto
* First baby steps at compiling under gnome 2.Darin Adler2001-10-241-17/+20
|
* Updated bugzilla.eazel.com references to refer to theDarin Adler2001-09-151-1/+1
| | | | | corresponding bugzilla.gnome.org bug. Also updated my email address.
* reviewed by: John Sullivan <sullivan@eazel.com>Darin Adler2001-03-231-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix bug 6613 (no way to delete files without using trash) by integrating Maciej's patch to add an optional Delete command (with some fixes to the patch). There may still be some loose ends. Fix bug 2206 (No way to move or copy a file to a different directory from keyboard) by implementing Cut, Copy, and Paste for files, in a way that will be familiar to Windows users. The positioning of the new files is not right yet (they inherit their position from the old files), there is no feedback when you have cut some files (Arlo's idea, which I might implement, is to make them translucent to show they are "on the way out") or when you have copied some files, and I think there are some other loose ends. Fixed cut, copy, and paste within the file names when you do a rename. This wasn't working at all. Got rid of configure-time checks that were looking at the existence of some special system files. Fixed a few minor bugs discovered by code inspection. * 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): Add expert preference to add a Delete command that bypasses the Trash. * src/file-manager/nautilus-directory-view-ui.xml: Add Delete, Cut Files, Copy Files, and Paste Files. * src/file-manager/fm-directory-view.c: (confirm_delete_directly), (delete_callback): Add delete code. (bonobo_menu_empty_trash_callback): Get rid of extraneous cast. (fm_directory_view_initialize): Track the delete preference. Set the flags properly to indicate we have our own X window. Add a target so GTK knows that we accept pastes of copied files. (forget_clipboard_contents): Helper for when we are no longer the clipboard owner. (fm_directory_view_destroy): Remove the delete preference callback. Free the clipboard contents. (offset_drop_points): Change so it handles NULL for the list of points. (trash_or_delete_files_common): Remove unneeded parameters. (get_current_event_time): New function, placeholder that just returned GDK_CURRENT_TIME. Perhaps we should get the real event time here for use in clipboard manipulation calls. (copy_or_cut_files): New function. Save the selection for later use in a paste. (copy_files_callback), (cut_files_callback): Call the new copy_or_cut_files function. (paste_files_callback): Do the clipboard convert that results in the paste operation. (real_selection_clear_event): Forget the clipboard contents. (real_selection_get): Convert the selection into the appropriate format and put it on the clipboard. (convert_lines_to_str_list): Helper function for decoding incoming pasted files. (real_selection_received): Handle pasted files by parsing and then triggering a file copy operation. (real_merge_menus): Add verbs for cut, copy, and paste. (enable_delete_changed_callback): Keep track of delete command status in a boolean. (real_update_menus): Show delete command if the preference is on and we are not showing "Delete from Trash". Update names of the Cut and Copy command depending on how many files are selected. Also desensitize them when none are selected. (fm_directory_view_select_file): Initialize an uninitialized field. (fm_directory_view_move_copy_items): Allow relative_item_points to be NULL. (real_realize): Create our own X window. (real_size_allocate): Trick GtkScrolledWindow into doing the right thing despite the fact that we have our own X window. (fm_directory_view_initialize_class): Moved down to the bottom so we don't need so many forward declaractions. Added code to set up some needed atoms and new default handlers. * libnautilus-extensions/nautilus-icon-text-item.c: (send_focus_event), (iti_stop_editing), (iti_start_editing): Add code to send the appropriate focus events to the fake off-screen GtkEntry. This makes the clipboard code that tracks focus-related signals work properly with this entry. (iti_event): Tweak the sequence and simplify the code a bit. * libnautilus/nautilus-clipboard.c: (set_paste_sensitive_if_clipboard_contains_data): Add more FIXMEs. This function is very far from useful, and it's not clear that it can be implemented efficiently under X. (nautilus_clipboard_set_up_editable): Get rid of silly "grab_focus" hack that was an attempt to address the problems with the NautilusIconTextItem. The real solution was to do focusing for that item too. (nautilus_clipboard_set_up_editable_in_control): Fix this so it works when called on an editable that is already focused. * src/file-manager/fm-icon-view.c: (renaming_icon_callback): Get rid of "grab_focus" workaround, which wasn't working. * acconfig.h: * configure.in: Remove all configure checks that were checking the existence of files. * libnautilus-extensions/nautilus-medusa-support.c: (nautilus_medusa_check_cron_is_enabled): Simplify logic so there's less room for confusion (I did this as a fix for the bug that was reported on the mailing list, but Rebecka checked in the small patch first). Also change it so we don't need a configure-time check for the existence of the process directory and fix it so we won't get a core dump if the file doesn't have a space character in it. Also change the logic so we don't leave the directory open when we do find the cron process. * libnautilus-extensions/nautilus-volume-monitor.c: (nautilus_volume_monitor_initialize_class), (has_removable_mntent_options), (get_removable_volumes), (volume_is_removable), (volume_is_read_only), (mount_volume_get_cdrom_name), (mount_volume_activate_cdda), (mount_volume_activate_cdrom), (build_volume_list_delta), (get_current_mount_list), (mount_lists_are_identical), (verify_current_mount_state), (mount_volume_floppy_add), (get_cdrom_type_solaris), (mount_volume_iso9660_add), (display_mount_status), (close_error_pipe), (nautilus_volume_monitor_mount_unmount_removable), (mount_volume_add_filesystem): Make changes throughout to get rid of dependence on configure-time file checks and do things at runtime instead. Also use typedefs to make less code conditional. Also fix the Solaris CD-ROM code which was casting a GString to a (char *) before, so it used absurd file names, and failed to open and returned FALSE all the time. * libnautilus-extensions/nautilus-icon-container.c: (nautilus_icon_container_start_renaming_selected_item): Send the renaming signal before setting up the rest of the icon. This change is not really needed, but it's a better order to do things. * libnautilus/nautilus-clipboard-ui.xml: Move tips into the commands instead of the menu items (for style mostly, no practical implications at the moment). * src/nautilus-shell-ui.xml: Remove tips from Cut, Copy, and Paste, since tips from insensitive items aren't used, and if we had tips, we'd put them on the command, not the menu item, anyway.
* reviewed by: John Sullivan <sullivan@eazel.com>Darin Adler2001-03-161-47/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* reviewed by: John Sullivan <sullivan@eazel.com>Darin Adler2001-03-091-7/+57
| | | | | | | | | | | Fix bug 7587 (Copying text in Notes with menu item kills Notes [also Text viewer, etc]): * libnautilus/nautilus-clipboard.c: (do_with_fake_current_event): Function to set up a non-NULL event so the code in GtkEditable won't die. (cut_callback), (copy_callback), (paste_callback): Use the new function.
* Hopefully will improve performance for menu merging in a case where it isRebecca Schulman2000-12-071-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-12-07 Rebecca Schulman <rebecka@eazel.com> Hopefully will improve performance for menu merging in a case where it is poor. (bug 5020) Completely fixing the bug will involve some design changes in the way the clipboard works, though. reviewed by: John Sullivan <sullivan@eazel.com> (the additional bonobo freezes and thaws) * libnautilus/nautilus-clipboard.c: (merge_in_clipboard_menu_items), (merge_out_clipboard_menu_items): Add freezes and thaws in hopes of improving performance here * src/nautilus-window-menus.c: (nautilus_window_initialize_menus): Ditto * components/tree/nautilus-tree-view-dnd.c: (nautilus_tree_view_get_drop_action): * libnautilus-extensions/nautilus-user-level-manager.h: * src/file-manager/fm-desktop-icon-view.c: (create_mount_link): * src/nautilus-switchable-search-bar.c: (nautilus_switchable_search_bar_set_mode): * src/nautilus-window-toolbars.c: (theme_changed_callback): Removed fixme comments in cases where the fixme has been fixed.
* reviewed by: Pavel Cisler <pavel@eazel.com>Rebecca Schulman2000-11-221-58/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Use calls by new names.Darin Adler2000-10-181-167/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * components/notes/nautilus-notes.c: (make_notes_view): * src/nautilus-location-bar.c: (nautilus_location_bar_new): * src/nautilus-simple-search-bar.c: (nautilus_simple_search_bar_new): Use calls by new names. * libnautilus-extensions/nautilus-undo-signal-handlers.c: (editable_key_press_event), (nautilus_undo_editable_set_undo_key): Disabled the undo-key part of undo also. The old code was actually harmless because it got the name of the signal wrong, but it's better to have it disabled. * src/nautilus-shell-ui.xml: Added a comment that points out the 2nd place where undo has been disabled. * libnautilus/nautilus-clipboard.h: * libnautilus/nautilus-clipboard.c: (cut_callback), (copy_callback), (paste_callback), (clear_callback), (set_paste_sensitive_if_clipboard_contains_data), (focus_changed_callback), (target_destroy_callback), (nautilus_clipboard_set_up_editable), (first_focus_callback), (control_destroyed_callback), (nautilus_clipboard_set_up_editable_in_control), (disconnect_set_up_in_control_handlers): Some minor cleanup of the clipboard code. Includes bug fixes for items that are already in focus when the clipboard is hooked up (should never happen), and a fix for code that was using gtk_signal_disconnect on something that was connected with gtk_signal_connect_while_alive (doesn't work). Also got rid of misguided code that was copying a Bonobo_UIContainer with memcpy (since Bonobo_UIContainer is just a pointer). * src/Makefile.am: * src/nautilus-window-private.h: Changed source file name from nautilus-service-menu to nautilus-service-ui, since it does a toolbar item, not just a menu. * src/nautilus-window-service-ui.c: * src/nautilus-window-service-ui.h: A second cut at the service UI code. It no longer leaks a UI component. * src/nautilus-window.c: (nautilus_window_constructed), (nautilus_window_get_ui_container): Use our own pointer to the UI container instead of asking the shell UI for its container.
* Fixed a problem with the clipboard caused by having many components in theRebecca Schulman2000-10-171-4/+9
| | | | | | | | | | | | 2000-10-16 Rebecca Schulman <rebecka@eazel.com> * libnautilus/nautilus-clipboard.c: (add_menu_items_callback), (ui_component_remove_container_and_unref), (finish_setting_up_editable), Fixed a problem with the clipboard caused by having many components in the same container with the same name, and fixed a potential leak.
* Fixed the names of these files to match the menu items in shell-uiRebecca Schulman2000-10-131-23/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-13 Rebecca Schulman <rebecka@eazel.com> * libnautilus/nautilus-clipboard-ui.xml: Fixed the names of these files to match the menu items in shell-ui * libnautilus/nautilus-clipboard.h: * libnautilus/nautilus-clipboard.c: (add_menu_items_callback), (container_copy_free), (ui_component_remove_container_and_unref), (finish_setting_up_editable), (finish_setting_up_editable_from_bonobo_control_callback), (nautilus_clipboard_set_up_editable_from_bonobo_control), (nautilus_clipboard_set_up_editable_from_bonobo_ui_container): Added the from_ui_container function for local editable widgets to use, and changed the function sequence around so that the two clipboard set up functions share an api except for the initial calling functions * src/nautilus-window-private.h: * src/nautilus-window.c: (nautilus_window_constructed), (nautilus_window_show), (nautilus_window_get_bonobo_ui_container), (nautilus_window_get_bonobo_ui_component): added the new nautilus-window_get_bonobo_ui_component function for local editables to use, and changed the construction order so that menu items would get merged correctly (set up the main window menus before setting up the location bar) * src/nautilus-complex-search-bar.c: (nautilus_complex_search_bar_new): * src/nautilus-complex-search-bar.h: * src/nautilus-location-bar.c: (nautilus_location_bar_get_window), (nautilus_location_bar_initialize), (nautilus_location_bar_new), (nautilus_location_bar_set_location): * src/nautilus-location-bar.h: * src/nautilus-simple-search-bar.c: (nautilus_simple_search_bar_initialize), (nautilus_simple_search_bar_destroy), (nautilus_simple_search_bar_new): * src/nautilus-simple-search-bar.h: * src/nautilus-switchable-navigation-bar.c: (nautilus_switchable_navigation_bar_initialize), (nautilus_switchable_navigation_bar_destroy), (nautilus_switchable_navigation_bar_new): * src/nautilus-switchable-navigation-bar.h: * src/nautilus-switchable-search-bar.c: (nautilus_switchable_search_bar_initialize), (nautilus_switchable_search_bar_destroy), (nautilus_switchable_search_bar_new): * src/nautilus-switchable-search-bar.h: Changed the location bar and switchable search bar to take windows in the constructor funciton. These are used to get the local ui component when setting up the clipboard
* First part of the bug fix for 3514. We still need to add a local clipboardRebecca Schulman2000-10-121-98/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-11 Rebecca Schulman <rebecka@eazel.com> First part of the bug fix for 3514. We still need to add a local clipboard interface, and set up the clipboard to work with the location bar. * components/notes/nautilus-notes.c: (make_notes_view): Use the new clipboard api call * libnautilus/nautilus-clipboard-ui.xml: * libnautilus/Makefile.am: Define DATADIR so we can install the new bonobo ui xml file for the clipboard * libnautilus/nautilus-clipboard.c: (cut_callback), (copy_callback), (paste_callback), (clear_callback), (add_menu_items_callback), (remove_menu_items_callback), (ui_component_remove_container_and_unref), (finish_setting_up_editable_from_bonobo_control), (nautilus_clipboard_set_up_editable_from_bonobo_control): Gutted the bonobo code from the old functions and added new code where appropriate that should approximate the functionality we had before the ui handler change * src/nautilus-shell-ui.xml: Declare the cut copy and paste menu items insensitive by default. Maintain cmd/widget separation by creating separate commands for them. * src/nautilus-window-menus.c: (nautilus_window_initialize_menus): Remove unused cut, copy and paste callbacks Removed ui verbs relating to these that we don't need.
* Cut over to HEAD of Bonobo. This check-in includes all the changesDarin Adler2000-10-051-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | needed to compile and run, but there are many things wrong visually that may take a while to get fixed. * src/nautilus-window-menus.c: (file_menu_new_window_callback), (file_menu_close_window_callback), (file_menu_close_all_windows_callback), (file_menu_toggle_find_mode_callback), (file_menu_web_search_callback), (edit_menu_undo_callback), (edit_menu_cut_callback), (edit_menu_copy_callback), (edit_menu_paste_callback), (edit_menu_clear_callback), (go_menu_back_callback), (go_menu_forward_callback), (go_menu_up_callback), (go_menu_home_callback), (go_menu_forget_history_callback), (view_menu_reload_callback), (view_menu_show_hide_sidebar_callback), (view_menu_show_hide_tool_bar_callback), (view_menu_show_hide_location_bar_callback), (view_menu_show_hide_status_bar_callback), (nautilus_window_update_show_hide_menu_items), (view_menu_zoom_in_callback), (view_menu_zoom_out_callback), (view_menu_zoom_normal_callback), (bookmarks_menu_add_bookmark_callback), (bookmarks_menu_edit_bookmarks_callback), (user_level_customize_callback), (customize_callback), (change_appearance_callback), (help_menu_about_nautilus_callback), (help_menu_nautilus_feedback_callback), (switch_to_user_level), (user_level_menu_item_callback), (append_placeholder), (append_separator), (append_bookmark_to_menu), (create_menu_item_from_node), (remove_bookmarks_after), (remove_underline_accelerator_from_menu_title), (new_top_level_menu), (add_user_level_menu_item), (nautilus_window_initialize_menus), (nautilus_window_update_find_menu_item), (update_user_level_menu_items), (convert_verb_to_user_level), (convert_user_level_to_verb), (update_preferences_dialog_title): * src/nautilus-window.c: (nautilus_window_clear_status), (nautilus_window_set_status), (install_status_bar), (nautilus_window_constructed), (nautilus_window_set_arg), (nautilus_window_get_arg), (nautilus_window_destroy), (nautilus_window_allow_back), (nautilus_window_allow_forward), (nautilus_window_allow_up), (nautilus_window_allow_reload), (nautilus_window_zoom_level_changed_callback), (nautilus_window_set_content_view_widget), (show_dock_item), (hide_dock_item), (dock_item_showing), (nautilus_window_hide_tool_bar), (nautilus_window_show_tool_bar), (nautilus_window_tool_bar_showing), (nautilus_window_hide_status_bar), (nautilus_window_show_status_bar), (nautilus_window_status_bar_showing): Convert to new API. Some is disabled with #ifdef UIH. * Makefile.am: * configure.in: Turned off build of the idl directory, build components after src. * components/adapter/main.c: * components/notes/nautilus-notes.c: * components/sample/main.c: * libnautilus-extensions/nautilus-font-picker.c: * libnautilus-extensions/nautilus-global-preferences.c: * libnautilus-extensions/nautilus-password-dialog.c: * libnautilus-extensions/nautilus-preferences-item.c: * libnautilus/nautilus-undo-transaction.c: * libnautilus/nautilus-undo.c: * src/nautilus-application.c: * src/nautilus-history-frame.c: * src/nautilus-link-set-window.c: * src/nautilus-main.c: * src/nautilus-shell.c: * src/nautilus-sidebar.c: * src/nautilus-view-frame-corba.c: * src/nautilus-zoomable-frame-corba.c: * test/test-nautilus-font-picker.c: * test/test-nautilus-image.c: (create_font_picker_frame): * test/test-nautilus-label.c: (create_font_picker_frame): * test/test-nautilus-preferences.c: * test/test-nautilus-widgets.c: (radio_group_load_it_up): Fixed includes. * test/test-nautilus-image.c: (create_font_picker_frame): * test/test-nautilus-label.c: (create_font_picker_frame): * test/test-nautilus-widgets.c: (radio_group_load_it_up): Turned off localization of some strings in tests. * components/adapter/nautilus-adapter-control-embed-strategy.c: (nautilus_adapter_control_embed_strategy_new): * components/adapter/nautilus-adapter-control-embed-strategy.h: * components/adapter/nautilus-adapter-embed-strategy.c: (nautilus_adapter_embed_strategy_get): * components/adapter/nautilus-adapter-embed-strategy.h: * components/adapter/nautilus-adapter-embeddable-embed-strategy.c: (nautilus_adapter_embeddable_embed_strategy_new): * components/adapter/nautilus-adapter-embeddable-embed-strategy.h: Embedding code now deals with Bonobo_UIContainer, not Bonobo_UIHandler. * components/adapter/nautilus-adapter.c: (nautilus_adapter_new): This code not only had to be changed to deal with the Bonobo_UIContainer instead of Bonobo_UIHandler, but it also needed to deal with the containing item (was remote_ui_handler), not the local component. * components/adapter/nautilus-adapter-embeddable-embed-strategy.c: (nautilus_adapter_embeddable_embed_strategy_new): * components/adapter/nautilus-adapter.c: BonoboContainer was renamed BonoboItemContainer. * components/history/nautilus-history-view.c: Remove unused BonoboUIHandler * field. * components/loser/content/Makefile.am: * components/loser/sidebar/Makefile.am: * components/mozilla/Makefile.am: * components/sample/Makefile.am: * src/Makefile.am: * src/file-manager/Makefile.am: Added the necessary defines and build rules to install ui.xml files and locate them from the C code. * src/file-manager/nautilus-directory-view-ui.xml: * src/file-manager/nautilus-icon-view-ui.xml: * src/file-manager/nautilus-search-list-view-ui.xml: * src/nautilus-shell-ui.xml: Added definitions of user interface. * components/loser/content/nautilus-content-loser-ui.xml: * components/loser/sidebar/nautilus-sidebar-loser-ui.xml: * components/mozilla/nautilus-mozilla-ui.xml: * components/sample/nautilus-sample-content-view-ui.xml: Added empty placeholders for user interface. * components/loser/content/nautilus-content-loser.c: (loser_merge_bonobo_items_callback): * components/loser/sidebar/nautilus-sidebar-loser.c: (loser_merge_bonobo_items_callback): * components/mozilla/nautilus-mozilla-content-view.c: (mozilla_merge_bonobo_items_callback): * components/sample/nautilus-sample-content-view.c: (sample_merge_bonobo_items_callback): Use nautilus_view_set_up_ui to get the user interface from a ui.xml file. Put #ifdef UIH around old code to make the items work that still needs to be visited. * libnautilus-extensions/nautilus-bonobo-extensions.c: * libnautilus-extensions/nautilus-bonobo-extensions.h: * libnautilus-extensions/nautilus-undo-manager.c: * libnautilus-extensions/nautilus-undo-manager.h: * libnautilus/nautilus-clipboard.c: (add_menu_items_callback), (remove_menu_items_callback), (nautilus_clipboard_set_up_editable_from_bonobo_control): * libnautilus/nautilus-clipboard.h: Wrapped code in ifdef UIH to disable it until it can be converted to the new Bonobo. * libnautilus-extensions/nautilus-caption-table.h: * libnautilus-extensions/nautilus-caption.h: * libnautilus-extensions/nautilus-font-picker.h: * libnautilus-extensions/nautilus-preferences-group.h: * libnautilus-extensions/nautilus-preferences-item.h: * libnautilus-extensions/nautilus-radio-button-group.h: * src/nautilus-about.h: Got rid of any cases where headers include the omnibus header <gnome.h>. These made the conversion process harder, which is why we fixed them. * libnautilus/libnautilus.h: Got rid of cases where headers include the omnibus header <bonobo.h>. * libnautilus/nautilus-view.h: * libnautilus/nautilus-view.c: (nautilus_view_set_up_ui): Added a helper function to make it easy for Nautilus components to load their UI and get it attached to the Nautilus:View object. * nautilus.spec.in: Install the nautilus-*-ui.xml files too. * src/file-manager/fm-directory-view.h: * src/file-manager/fm-directory-view.c: (bonobo_menu_select_all_callback), (bonobo_menu_empty_trash_callback), (bonobo_control_activate_callback): Convert to new API. (fm_directory_view_get_bonobo_ui_container): Name and purpose changed slightly for new API. (fm_directory_view_real_merge_menus): Merge with new API. (fm_directory_view_real_update_menus): Disabled this code for now. * src/file-manager/fm-icon-view.c: (fm_icon_view_destroy): Destroy icon view's own component at destroy time. (context_menu_layout_radio_item_callback), (append_one_context_menu_layout_item), (fm_icon_view_create_background_context_menu_items), (update_layout_menus): Convert to new API, disable some with #ifdef UIH. (get_sort_criterion_by_verb), (set_sort_criterion_by_verb), (sort_callback): Convert to new API. (fm_icon_view_merge_menus): Merge with new API, creating our own UI component separate from the directory view's. (fm_icon_view_update_menus): Disable with #ifdef UIH. * src/file-manager/fm-search-list-view.h: * src/file-manager/fm-search-list-view.c: (fm_search_list_view_initialize_class), (fm_search_list_view_initialize), (real_destroy), (indexing_info_callback), (real_merge_menus), (real_update_menus): Add code necessary to use a separate UI component, and disabled the actual menu set-up code with #ifdef UIH. This required adding a details struct. * src/nautilus-desktop-window.c: (realize): Turned off the code that hides the desktop elements. * src/nautilus-window-private.h: * src/nautilus-view-frame.h: * src/nautilus-view-frame.c: (nautilus_view_frame_destroy), (nautilus_view_frame_new), (nautilus_view_frame_load_client): * src/nautilus-window-manage-views.c: (load_content_view), (nautilus_window_set_sidebar_panels): Change to use Bonobo_UIContainer instead of Bonobo_UIHandler. * src/nautilus-window-toolbars.c: (remember_buttons), (nautilus_window_initialize_toolbars): Leave this code around and change it enough to compile and run, even though it's creating a second, invisible toolbar. * src/nautilus-window.h: Change to be a BonoboWin subclass instead of a GnomeApp subclass.
* Removed non-working clipboard codeRebecca Schulman2000-09-291-102/+4
| | | | | | | | | 2000-09-29 Rebecca Schulman <rebecka@eazel.com> * libnautilus/nautilus-clipboard.c: (add_menu_items_callback), (nautilus_clipboard_set_up_editable_from_bonobo_control): * src/nautilus-window.c: (nautilus_window_constructed): Removed non-working clipboard code
* Fixed renaming bug with names with unusual characters and problemsDarin Adler2000-09-291-63/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | caused by the clipboard code, and started work on metadata copying and removing implementation and cleanup. * libnautilus-extensions/nautilus-file-operations.c: (nautilus_file_operations_new_folder): Use gnome_vfs_uri_append_file_name instead of gnome_vfs_uri_append_path, since we are appending a file name, not a path in URI format. * libnautilus-extensions/nautilus-file-utilities.c: (nautilus_get_user_main_directory): Use gnome_vfs_uri_append_file_name instead of gnome_vfs_uri_append_path, since we are appending a file name, not a path in URI format. * libnautilus-extensions/nautilus-file.c: (rename_update_info_and_metafile): Use metadata call by new name. (nautilus_file_rename): Use gnome_vfs_uri_append_file_name instead of gnome_vfs_uri_append_path, since we are appending a file name, not a path in URI format. This should fix the renaming problems we were seeing. * libnautilus/nautilus-clipboard.h: * libnautilus/nautilus-clipboard.c: (set_paste_sensitive_if_clipboard_contains_data), (set_clipboard_menu_items_sensitive), (set_clipboard_menu_items_insensitive): Removed unused window parameter. (menu_activated_callback): Changed this function to find the window using gtk_widget_toplevel instead of from a global. This works in all the cases where the old code would have worked, and doesn't have the problem with multiple windows. (menu_deactivated_callback): Removed unused window parameter. (nautilus_clipboard_set_up_editable_from_bonobo_control): Added check for NULL menubar. This shows a design problem too, but at least it (nautilus_clipboard_set_up_host_ui_handler): Got rid of global. * src/nautilus-window.c: (nautilus_window_constructed): Use clipboard call by new name. * libnautilus-extensions/nautilus-directory.c: (nautilus_directory_schedule_metadata_copy), (nautilus_directory_schedule_metadata_move), (nautilus_directory_schedule_metadata_remove), (nautilus_directory_schedule_position_setting): Tighten up these routines a bit and have them do as much work as possible through functions in nautilus-directory-metafile.[ch]. This is preparation for doing full implementation of the actual metadata copying. * libnautilus-extensions/nautilus-directory-metafile.h: * libnautilus-extensions/nautilus-directory-metafile.c: (nautilus_directory_rename_file_metadata), (copy_file_metadata_for_key), (nautilus_directory_copy_file_metadata), (nautilus_directory_remove_file_metadata): New functions to doteh metadata copying, and a new name for an old function. Now I have to actually make them work better. * nautilus.spec.in: Do a "make check" instead of a "make" when building RPMs.
* Fixed bug 1275, that sidebar panels don't have defaults per user level.Rebecca Schulman2000-09-271-10/+3
| | | | | | | | | | | | | | | | | | | | | | 2000-09-27 Rebecca Schulman <rebecka@eazel.com> Fixed bug 1275, that sidebar panels don't have defaults per user level. * libnautilus-extensions/nautilus-global-preferences.c: (get_default_sidebar_iids_for_user_level), (sidebar_panel_iid_is_in_default_list), (global_preferences_register_sidebar_panels), (global_preferences_is_sidebar_panel_enabled): Added default sets (hard coded, as before) for each user level, and used them to get the defaults, instead of the single set for all levels * libnautilus/nautilus-clipboard.c: (set_paste_sensitive_if_clipboard_contains_data): simplified check whether paste should be available. * src/nautilus-window-menus.c: (nautilus_window_initialize_menus): Fixed a typo in the clipboard menu text.
* Fixed bugs 691, 689, and 733. Hopeully this also fixes 690, but I can'tRebecca Schulman2000-09-261-14/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-09-26 Rebecca Schulman <rebecka@eazel.com> Fixed bugs 691, 689, and 733. Hopeully this also fixes 690, but I can't test it, because rename in place is confused on my system * components/notes/nautilus-notes.c: (make_notes_view): Change clipboard initialization to new signature * libnautilus/nautilus-clipboard.c: * libnautilus/nautilus-clipboard.h: (set_paste_sensitive_if_clipboard_contains_data), (add_menu_items_callback), (remove_menu_items_callback), (set_clipboard_menu_items_sensitive), (set_clipboard_menu_items_insensitive), (menu_activated_callback), (menu_deactivated_callback), (nautilus_clipboard_set_up_editable_from_bonobo_control), (nautilus_clipboard_setup_local): Add calls to sensitize and desensitize. Change signatures around to get the data necessary to find out whether cut and paste should be active or not * src/nautilus-location-bar.c: (nautilus_location_bar_initialize): * src/nautilus-window-menus.c: (nautilus_window_initialize_menus): Change clipboard menu signatures to fit above changes * src/nautilus-window.c: (nautilus_window_constructed): add clipoard initialization, after the local ui handler is created
* Added checks in Nautilus to guarantee we will notice leaksDarin Adler2000-09-061-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of UI handlers in the future. The check will fire unless you get new Bonobo, since I just fixed a UI handler leak bug in Bonobo. * src/nautilus-window.c: (nautilus_window_real_set_content_view): Added code to check for a still-merged Open menu item in the file menu. This will catch leaks of UI handlers fairly quickly, instead of the traditional way we discover them, after long debugging sessions. * components/history/nautilus-history-view.c: (history_view_frame_call_end): * libnautilus-extensions/nautilus-undo-manager.c: (release_transaction), (nautilus_undo_manager_undo): * libnautilus/nautilus-clipboard.c: (add_menu_items_callback): * libnautilus/nautilus-undo.c: (undo_manager_unref_cover), (nautilus_undo_attach_undo_manager): * libnautilus/nautilus-view.c: (view_frame_call_end): * src/file-manager/fm-directory-view.c: (bonobo_control_activate_callback): * src/nautilus-application.c: (nautilus_application_startup): * src/nautilus-view-frame-bonobo-embeddable.c: (bonobo_subdoc_load_location): * src/nautilus-view-frame-nautilus-view.c: (nautilus_view_try_load_client): * src/nautilus-view-frame.c: (nautilus_view_frame_destroy_client), (nautilus_view_frame_load_client): Use bonobo_object_dup_ref and bonobo_object_release_unref to simplify some code. * components/loser/content/nautilus-content-loser.c: (loser_merge_bonobo_items_callback): * components/loser/sidebar/nautilus-sidebar-loser.c: (loser_merge_bonobo_items_callback): * components/mozilla/nautilus-mozilla-content-view.c: (mozilla_merge_bonobo_items_callback): * components/sample/nautilus-sample-content-view.c: (sample_merge_bonobo_items_callback): Add missing unref to avoid leaking a UI handler. * components/services/time/nautilus-view/trilobite-eazel-time-view.c: Remove a bunch of code inside #if 0, which had out of date copies of the sample code. I decided this was better than trying to fix it.
* Changed relayout so it will update the scroll region. This fixes bug 1907Darin Adler2000-08-051-11/+15
| | | | | | | | | | | | | | | | | | | * libnautilus-extensions/nautilus-icon-container.c: (relayout), (size_allocate), (finish_adding_new_icons), (nautilus_icon_container_set_zoom_level), (nautilus_icon_container_set_auto_layout): Changed relayout so it will update the scroll region. This fixes bug 1907 (layout options sometimes move icons out of window). * libnautilus/nautilus-clipboard.c: (add_menu_items_callback): Fix leak of remote UI handler. This fixes the rest of bug 1259, which was just a bug about the FIXME that said "remote UI handler leaks here, right?". * libnautilus-extensions/nautilus-directory-async.c: (lacks_info), (get_info_callback): Fixed infinite loop when you hit a file and you can't get info for it. Related to the bug Mike Fleming is looking at.
* Updated code affected by destroy-notify addition to bonobo. Requires newDarin Adler2000-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated code affected by destroy-notify addition to bonobo. Requires new bonobo. * libnautilus-extensions/nautilus-bonobo-extensions.c: (nautilus_bonobo_ui_handler_menu_set_toggle_appearance): Save and restore the destroy notify function as well as the callback. This requires using the new function bonobo_ui_handler_menu_remove_callback_no_notify to do right. * src/file-manager/fm-directory-view.c: (application_launch_parameters_new), (application_launch_parameters_free): Ref and unref the directory view object now that we correctly free this as needed. (viewer_launch_parameters_new), (viewer_launch_parameters_free): Ref and unref the directory view object now that we correctly free this as needed. (add_open_with_bonobo_menu_item): Add a destroy-notify function parameters and apply it using bonobo_ui_handler_menu_set_callback. (add_application_to_bonobo_menu): Free the launch parmaeters using a destroy-notify function. (add_component_to_bonobo_menu): Free the launch parmaeters using a destroy-notify function. * src/nautilus-window-menus.c: (append_bookmark_to_menu): Use a destroy-notify function to destroy the bookmark holder. (clear_appended_bookmark_items): Get rid of the code that gets the callback data and destroys it explicitly. * libnautilus/nautilus-clipboard.c: (add_menu_item): * src/file-manager/fm-directory-view.c: (insert_bonobo_menu_item), (fm_directory_view_real_merge_menus): * src/file-manager/fm-icon-view.c: (append_bonobo_menu_item), (fm_icon_view_merge_menus): Rename BonoboUIHandlerCallbackFunc -> BonoboUIHandlerCallback. * HACKING: Some reformatting.
* Added bug numbers to FIXMEs.John Sullivan2000-06-061-2/+2
| | | | | | | | | | | | | | | | | | | * components/services/install/lib/eazel-install-object.c: (eazel_install_new_with_config): * components/services/install/lib/eazel-install-rpm-glue.c: (do_rpm_install): * components/services/time/service/trilobite-eazel-time-service.c: (impl_Trilobite_Eazel_Time_Service_update_time): * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_get_sidebar_panel_view_identifiers), (global_preferences_register_sidebar_panels_preferences_for_ui): * libnautilus/nautilus-clipboard.c: (add_menu_items_callback): * nautilus-widgets/nautilus-preferences-item.c: (preferences_item_create_font_family): * nautilus-widgets/nautilus-preferences.c: (preferences_hash_node_check_changes_func), (preferences_gconf_callback): Added bug numbers to FIXMEs.
* Instead of ref'ing the control we want to do a "while_alive". The old wayDarin Adler2000-05-251-10/+4
| | | | | | | * libnautilus/nautilus-clipboard.c: (nautilus_clipboard_set_up_editable): Instead of ref'ing the control we want to do a "while_alive". The old way could be dangerous, so I'm glad I caught this.
* Updated to reflect completed tasks.Darin Adler2000-05-251-286/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * RENAMING: Updated to reflect completed tasks. * components/notes/ntl-notes.c: (make_notes_view): * components/websearch/ntl-web-search.c: (make_obj): Changed to use simplified clipboard API. * components/services/trilobite/libtrilobite/.cvsignore: Ignore generated files. * libnautilus-extensions/gtkscrollframe.c: * libnautilus-extensions/gtkscrollframe.h: Renamed GtkScrollFrame to NautilusScrollFrame so we won't conflict if a GtkScrollFrame actually gets added to gtk some day. The file still needs renaming (mentioned in RENAMING). * libnautilus/nautilus-clipboard.h: * libnautilus/nautilus-clipboard.c: (cut_callback), (copy_callback), (paste_callback), (clear_callback), (add_menu_item), (add_menu_items_callback), (remove_menu_items_callback), (nautilus_clipboard_set_up_editable): Simplified clipboard implementation. Does the same thing the old code did without needing a class and with a simpler API. * nautilus-widgets/nautilus-preferences-item.c: * src/file-manager/fm-icon-text-window.c: * src/nautilus-zoom-control.c: * src/ntl-window.c: Renamed _cb to _callback. Some other (minor) cleanup. * src/file-manager/Makefile.am: * src/file-manager/desktop-canvas.c: [removed] * src/file-manager/desktop-canvas.h: [removed] * src/file-manager/desktop-menu.c: [removed] * src/file-manager/desktop-menu.h: [removed] * src/file-manager/gnome-desktop.c: [removed] Now that I'm doing the desktop work, I know we don't need these. I'll be deleting the desktop source files that Havoc added as I harvest the useful code from them. * src/file-manager/fm-directory-view.c: (bonobo_control_activate_callback): Add comments. * src/nautilus-zoom-control.h: Fixed problem where the zoom control didn't know if it was an event box or a pixmap. * src/ntl-index-panel.c: (nautilus_index_panel_add_meta_view): Fixed bug that was trashing the sidebar panel names. I put the g_free call in the wrong place. * src/ntl-uri-map.c: (sidebar_panel_preference_is_on): Fixed bug where the sidebar preference wasn't saved. I found another place with another copy of the preference path. This sort of thing really needs to go in a header file, I think.
* The ViewFrame <-> View renaming.Darin Adler2000-05-231-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We still have to rename the files. * RENAMING: Put in explicit cases for file name renaming. * src/Makefile.am: * src/nautilus-desktop-window.c: * src/nautilus-desktop-window.h: Added placeholders. I'll be putting code in here soon. * src/ntl-app.c: (display_prototype_caveat): Changed to use nautilus_simple_dialog again since otherwise it comes up behind the main window. Perhaps someone will resolve that issue and change it back. * libnautilus-extensions/nautilus-gnome-extensions.h: * libnautilus-extensions/nautilus-gnome-extensions.c: (nautilus_warning_dialog), (nautilus_warning_dialog_parented): Added centered version of the warning dialog as well, since Eskil was using gnome_warning_dialog in a case where he really wanted lines wrapped. * components/loser/.cvsignore: * components/loser/content/.cvsignore: * components/loser/sidebar/.cvsignore: Ignore some generated files. * components/hardware/main.c: (hardware_view_make_object): * components/hardware/nautilus-hardware-view.c: (nautilus_hardware_view_initialize), (nautilus_hardware_view_destroy), (nautilus_hardware_view_get_nautilus_view), (hardware_view_notify_location_change_callback): * components/hardware/nautilus-hardware-view.h: * components/help/hyperbola-nav-index.c: (hyperbola_navigation_index_select_row), (hyperbola_navigation_index_new): * components/help/hyperbola-nav-search.c: (hyperbola_navigation_search_select_row), (hyperbola_navigation_search_new): * components/help/hyperbola-nav-tree.c: (hyperbola_navigation_tree_new), (hyperbola_navigation_tree_notify_location_change), (hyperbola_navigation_tree_select_row): * components/history/ntl-history-view.c: (hyperbola_navigation_history_notify_location_change), (hyperbola_navigation_history_select_row), (make_obj): * components/html/ntl-web-browser.c: (browser_url_load_done), (browser_vfs_callback), (browser_goto_url_real), (browser_goto_url), (browser_select_url), (browser_title_changed), (browser_notify_location_change), (make_obj): * components/loser/content/main.c: (loser_make_object): * components/loser/content/nautilus-content-loser.c: (nautilus_content_loser_initialize), (nautilus_content_loser_destroy), (nautilus_content_loser_get_nautilus_view), (nautilus_content_loser_load_uri), (loser_notify_location_change_callback), (bonobo_loser_callback): * components/loser/content/nautilus-content-loser.h: * components/loser/sidebar/main.c: (loser_make_object): * components/loser/sidebar/nautilus-sidebar-loser.c: (nautilus_sidebar_loser_initialize), (nautilus_sidebar_loser_destroy), (nautilus_sidebar_loser_get_nautilus_view), (loser_notify_location_change_callback): * components/loser/sidebar/nautilus-sidebar-loser.h: * components/music/main.c: (music_view_make_object): * components/music/nautilus-music-view.c: (nautilus_music_view_initialize), (nautilus_music_view_destroy), (nautilus_music_view_get_nautilus_view), (music_view_notify_location_change_callback): * components/music/nautilus-music-view.h: * components/notes/ntl-notes.c: (notes_notify_location_change), (make_notes_view): * components/rpmview/main.c: (rpm_view_make_object): * components/rpmview/nautilus-rpm-view.c: (nautilus_rpm_view_initialize), (nautilus_rpm_view_destroy), (nautilus_rpm_view_get_nautilus_view), (rpm_view_notify_location_change_callback): * components/rpmview/nautilus-rpm-view.h: * components/sample/main.c: (sample_make_object): * components/sample/nautilus-sample-content-view.c: (nautilus_sample_content_view_initialize), (nautilus_sample_content_view_destroy), (nautilus_sample_content_view_get_nautilus_view), (sample_notify_location_change_callback): * components/sample/nautilus-sample-content-view.h: * components/services/startup/nautilus-view/main.c: (services_make_object): * components/services/startup/nautilus-view/nautilus-service-startup-view.c: (go_to_uri), (nautilus_service_startup_view_initialize), (nautilus_service_startup_view_get_nautilus_view), (service_main_notify_location_change_cb): * components/services/startup/nautilus-view/nautilus-service-startup-view.h: * components/websearch/ntl-web-search.c: (web_search_notify_location_change), (do_search), (make_obj): * libnautilus/nautilus-clipboard.c: (nautilus_clipboard_info_set_view), (nautilus_clipboard_info_get_view), (nautilus_clipboard_info_get_bonobo_control): * libnautilus/nautilus-clipboard.h: * src/file-manager/fm-directory-view.c: (bonobo_menu_move_to_trash_callback), (get_bonobo_control), (fm_directory_view_initialize), (display_selection_info), (fm_directory_view_send_selection_change), (notify_location_change_callback), (notify_selection_change_callback), (stop_location_change_callback), (done_loading), (fm_directory_view_get_nautilus_view), (fm_directory_view_activate_file_internal), (finish_loading_uri): * src/file-manager/fm-directory-view.h: Updated for new libnautilus where the NautilusViewFrame classes are now named NautilusView. * libnautilus/nautilus-content-view-frame.c: (nautilus_content_view_initialize), (nautilus_content_view_new), (nautilus_content_view_new_from_bonobo_control), (nautilus_content_view_destroy), (nautilus_content_view_initialize_class), (nautilus_content_view_request_title_change): * libnautilus/nautilus-content-view-frame.h: * libnautilus/nautilus-meta-view-frame.c: (nautilus_meta_view_initialize), (nautilus_meta_view_new), (nautilus_meta_view_new_from_bonobo_control), (nautilus_meta_view_destroy), (nautilus_meta_view_initialize_class): * libnautilus/nautilus-meta-view-frame.h: Changed Nautilus*ViewFrame classes to Nautilus*View. This is something we had in RENAMING for some time, and it's consistent with Bonobo's naming of BonoboControl and BonoboControlFrame. Also changed interfaces to use actual BonoboControl * instead of using BonobObject * and query_interface. * libnautilus/nautilus-undo-manager.c: (nautilus_undo_setup_bonobo_control): * libnautilus/nautilus-undo-manager.h: Changed the BonoboControl parameter to actually be of type BonoboControl * instead of BonoboObject *. * libnautilus/nautilus-view-frame-private.h: * libnautilus/nautilus-view-frame.c: (impl_Nautilus_View_save_state), (impl_Nautilus_View_load_state), (impl_Nautilus_View_notify_location_change), (impl_Nautilus_View_show_properties), (impl_Nautilus_View_notify_selection_change), (impl_Nautilus_View_stop_location_change), (impl_Nautilus_View__destroy), (impl_Nautilus_View__create), (nautilus_view_initialize_class), (nautilus_view_set_arg), (nautilus_view_get_arg), (nautilus_view_initialize), (nautilus_view_new), (nautilus_view_new_from_bonobo_control), (nautilus_view_destroy), (nautilus_view_ensure_view_frame), (nautilus_view_request_location_change), (nautilus_view_request_selection_change), (nautilus_view_request_status_change), (nautilus_view_request_progress_change), (nautilus_view_get_bonobo_control), (nautilus_view_get_main_window), (nautilus_view_real_set_bonobo_control): * libnautilus/nautilus-view-frame.h: * libnautilus/nautilus-zoomable.c: (impl_Nautilus_Zoomable__get_zoom_level), (impl_Nautilus_Zoomable__set_zoom_level), (impl_Nautilus_Zoomable__get_min_zoom_level), (impl_Nautilus_Zoomable__get_max_zoom_level), (impl_Nautilus_Zoomable__get_is_continuous), (impl_Nautilus_Zoomable_zoom_in), (impl_Nautilus_Zoomable_zoom_out), (impl_Nautilus_Zoomable_zoom_to_fit), (impl_Nautilus_Zoomable__destroy), (impl_Nautilus_Zoomable__create), (marshal_NONE__DOUBLE), (nautilus_zoomable_initialize_class), (nautilus_zoomable_set_arg), (nautilus_zoomable_get_arg), (nautilus_zoomable_initialize), (nautilus_zoomable_new), (nautilus_zoomable_new_from_bonobo_control), (nautilus_zoomable_destroy), (nautilus_zoomable_ensure_zoomable_frame), (nautilus_zoomable_set_zoom_level), (nautilus_zoomable_get_bonobo_control), (nautilus_zoomable_real_set_bonobo_control): * libnautilus/nautilus-zoomable.h: * src/nautilus-zoomable-frame-svr.c: (impl_Nautilus_ZoomableFrame__destroy), (impl_Nautilus_ZoomableFrame__create), (impl_Nautilus_ZoomableFrame_notify_zoom_level): * src/ntl-app.c: (impl_Nautilus_Application_create_object), * src/ntl-content-view.c: (impl_Nautilus_ContentViewFrame_request_title_change), (nautilus_content_view_frame_get_type), (nautilus_content_view_frame_class_init), (nautilus_content_view_frame_init), (nautilus_content_view_frame_set_active), (nautilus_content_view_frame_request_title_change): * src/ntl-content-view.h: * src/ntl-index-panel.c: (nautilus_index_panel_add_meta_view), (nautilus_index_panel_remove_meta_view): * src/ntl-index-panel.h: * src/ntl-meta-view.c: (nautilus_meta_view_frame_initialize_class), (nautilus_meta_view_frame_initialize), (nautilus_meta_view_frame_set_label), (nautilus_meta_view_frame_get_label): * src/ntl-meta-view.h: * src/ntl-view-bonobo-control.c: (destroy_bonobo_control_view), (nautilus_view_frame_activate_uri), (bonobo_control_try_load_client), (bonobo_control_notify_location_change): * src/ntl-view-bonobo-subdoc.c: (destroy_bonobo_subdoc_view), (bonobo_subdoc_notify_location_change), (bonobo_subdoc_try_load_client): * src/ntl-view-frame-svr.c: (impl_Nautilus_ViewFrame__destroy), (impl_Nautilus_ViewFrame__create), (impl_Nautilus_ViewFrame_request_location_change), (impl_Nautilus_ViewFrame_request_selection_change), (impl_Nautilus_ViewFrame_request_status_change), (impl_Nautilus_ViewFrame_request_progress_change): * src/ntl-view-nautilus.c: (nautilus_view_try_load_client), (destroy_nautilus_view), (nv_show_properties), (nv_save_state), (nv_load_state), (nv_notify_location_change), (nv_notify_selection_change), (nv_stop_location_change): * src/ntl-view-private.h: * src/ntl-view.c: (nautilus_view_frame_get_type), (nautilus_view_frame_class_init), (nautilus_view_frame_set_arg), (nautilus_view_frame_get_arg), (nautilus_view_frame_init), (nautilus_view_frame_destroy_client), (nautilus_view_frame_destroy), (nautilus_view_frame_constructed), (nautilus_view_frame_construct_arg_set), (nautilus_view_frame_size_request), (nautilus_view_frame_size_allocate), (nautilus_view_frame_handle_client_destroy), (nautilus_view_frame_handle_client_destroy_2), (nautilus_view_frame_load_client), (nautilus_view_frame_notify_location_change), (nautilus_view_frame_notify_selection_change), (nautilus_view_frame_load_state), (nautilus_view_frame_save_state), (nautilus_view_frame_show_properties), (nautilus_view_frame_stop_location_change), (nautilus_view_frame_is_zoomable), (nautilus_view_frame_get_zoom_level), (nautilus_view_frame_set_zoom_level), (nautilus_view_frame_get_min_zoom_level), (nautilus_view_frame_get_max_zoom_level), (nautilus_view_frame_get_is_continuous), (nautilus_view_frame_zoom_in), (nautilus_view_frame_zoom_out), (nautilus_view_frame_zoom_to_fit), (nautilus_view_frame_get_iid), (nautilus_view_frame_get_client_objref), (nautilus_view_frame_get_objref), (nautilus_view_frame_request_location_change), (nautilus_view_frame_request_selection_change), (nautilus_view_frame_request_status_change), (nautilus_view_frame_request_progress_change), (nautilus_view_frame_notify_zoom_level), (check_object), (nautilus_view_frame_set_active_errors): * src/ntl-view.h: * src/ntl-window-msgs.c: (nautilus_window_notify_selection_change), (nautilus_window_request_selection_change), (nautilus_window_request_status_change), (nautilus_window_request_progress_change), (nautilus_window_request_title_change), (nautilus_window_update_internals), (nautilus_window_update_view), (nautilus_window_view_destroyed), (nautilus_window_load_meta_view), (nautilus_window_request_location_change), (nautilus_window_load_content_view), (nautilus_window_update_state), (nautilus_window_set_state_info), (nautilus_window_begin_location_change): * src/ntl-window-msgs.h: * src/ntl-window-private.h: * src/ntl-window.c: (zoom_in_cb), (zoom_out_cb), (nautilus_window_set_arg), (nautilus_window_send_show_properties), (view_menu_switch_views_callback), (nautilus_window_set_content_view), (nautilus_window_add_meta_view), (nautilus_window_remove_meta_view_real), (nautilus_window_remove_meta_view), (nautilus_window_request_location_change_cb), (nautilus_window_request_selection_change_cb), (nautilus_window_request_status_change_cb), (nautilus_window_request_progress_change_cb), (nautilus_window_request_title_change_callback), (nautilus_window_connect_view), (nautilus_window_connect_content_view), (nautilus_window_real_set_content_view): * src/ntl-window.h: Changed Nautilus*View classes to Nautilus*ViewFrame. This is something we had in RENAMING for some time, and it's consistent with Bonobo's naming of BonoboControl and BonoboControlFrame. Also changed interfaces to use actual BonoboControl * instead of using BonoboObject * and query_interface.
* Reference the view on set_view_frame() and unreference onRamiro Estrugo2000-05-091-1/+14
| | | | | | | destruction. This fixes a problem where the clipboard code was trying to use a view that has already been trashed. Thanks to Carbamide <linuxfan@ionet.net> for finding the problem.
* Fix bugzilla.eazel.com task 479:Maciej Stachowiak2000-05-071-3/+0
| | | | | | | | | | | * libnautilus/nautilus-clipboard.c (nautilus_clipboard_info_destroy), (nautilus_clipboard_info_set_view_frame): Do not ref and unref the view_frame. Because the NautilusClipboardInfo will only be destroyed when the view_frame is destroyed in the normal use case, if it holds a ref on the view_frame it will prevent it from ever being destroyed. This was causing the notes and history view processes to stay around forever.
* Cosmetic change. Added -DGNOMELOCALEDIR to $INCLUDES. Added calls toKjartan Maraas2000-05-021-7/+7
| | | | | | | | | | | | | 2000-05-01 Kjartan Maraas <kmaraas@gnu.org> * libnautilus/nautilus-clipboard.c: Cosmetic change. * src/Makefile.am: Added -DGNOMELOCALEDIR to $INCLUDES. * src/ntl-main.c: Added calls to bindtextdomain() and textdomain() to make the translations work. * components/help/hyperbola-main.c: Same here. * components/help/Makefile.am: Here as well. This should be done for any main() function in any module containing text to be translated.
* Fixed bug #99: Implemented copy, paste, clear, and cut for text Added newRebecca Schulman2000-04-271-0/+339
2000-04-26 Rebecca Schulman <rebecka@eazel.com> Fixed bug #99: Implemented copy, paste, clear, and cut for text Added new files nautilus-clipboard.c,h which contains clipboard functionality. All components with text widgets should use this code. It can just be copied from any existing sample code (see ntl-notes.c in the notes component) The frame cut, copy and paste stuff is now happy when there is a widget in focus. Added * libnautilus/nautilus-clipboard.c * libnautilus/nautilus-clipboard.h Modified * src/nautilus-window-menus.c (turned on clear, fixed up callbacks for cut, copy, and paste buttons) * components/notes/ntl-notes.c (Clipboard activated notes text box) * components/websearch/ntl-web-search.c (Clipboard activated the search box)