summaryrefslogtreecommitdiff
path: root/libnautilus/nautilus-clipboard.h
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2000-10-18 21:43:35 +0000
committerDarin Adler <darin@src.gnome.org>2000-10-18 21:43:35 +0000
commite5483a3a3c4bff78a57b7621f1b3832949426948 (patch)
tree73f023c34c5f81416ee8d48f1e6dbad2db6f6070 /libnautilus/nautilus-clipboard.h
parent14dbbeaddfad425cca25f49648754957ad4e973d (diff)
downloadnautilus-e5483a3a3c4bff78a57b7621f1b3832949426948.tar.gz
Use calls by new names.
* 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.
Diffstat (limited to 'libnautilus/nautilus-clipboard.h')
-rw-r--r--libnautilus/nautilus-clipboard.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/libnautilus/nautilus-clipboard.h b/libnautilus/nautilus-clipboard.h
index 8bef6fbc7..16c01d73b 100644
--- a/libnautilus/nautilus-clipboard.h
+++ b/libnautilus/nautilus-clipboard.h
@@ -29,14 +29,19 @@
#include <gtk/gtkeditable.h>
#include <bonobo/bonobo-control.h>
-/* Components should use this, which includes menu merging. */
-void nautilus_clipboard_set_up_editable_from_bonobo_control (GtkEditable *target,
- BonoboControl *control);
+/* This makes this editable put clipboard commands into the passed UI
+ * container when the editable is in focus. Callers in Nautilus
+ * normally get the UI container from
+ * nautilus_window_get_bonobo_ui_container.
+ */
+void nautilus_clipboard_set_up_editable (GtkEditable *target,
+ Bonobo_UIContainer container);
-/* Local editable widgets should set up clipboard capabilities using this function.
- They can obtain their local ui container using the function
- nautilus_window_get_bonobo_ui_container */
-void nautilus_clipboard_set_up_editable_from_bonobo_ui_container (GtkEditable *target,
- Bonobo_UIContainer container);
+/* Components should use this convenient cover instead of the call
+ * above. This cover waits until the UI container shows up, so it can be
+ * called even before the control has a UI container.
+ */
+void nautilus_clipboard_set_up_editable_in_control (GtkEditable *target,
+ BonoboControl *control);
#endif /* NAUTILUS_CLIPBOARD_H */