summaryrefslogtreecommitdiff
path: root/libnautilus
diff options
context:
space:
mode:
authorGene Z. Ragan <gzr@eazel.com>2000-07-07 01:21:06 +0000
committerGene Ragan <gzr@src.gnome.org>2000-07-07 01:21:06 +0000
commit0b661c0f2f6594ce31b7a1c0202109901fbf0836 (patch)
tree25787a53b3b1ec700438ed9295e93b44fda91fd0 /libnautilus
parent31f24b1ea93bbcf4575ae06505ad93af1364e0f7 (diff)
downloadnautilus-0b661c0f2f6594ce31b7a1c0202109901fbf0836.tar.gz
Fixed bug 1571, Need titles in history list instead of just URIs.
2000-07-06 Gene Z. Ragan <gzr@eazel.com> Fixed bug 1571, Need titles in history list instead of just URIs. This was a result of sharing the NautilusWindow history list information over CORBA. * libnautilus/nautilus-view-component.idl: Create new interface, Nautilus::HistoryFrame Interface has method to get a sequence of history information. This sequence contains structs that contain uri and name history information. * src/Makefile.am: Added new file, NautilusHistoryFrame.c, to makefile. * src/nautilus-history-frame.c: * src/nautilus-history-frame.h: (impl_Nautilus_HistoryFrame__destroy), (impl_Nautilus_HistoryFrame__create), (impl_Nautilus_HistoryFrame_get_history_list): New files that imliments the functionality of the Nautilus::HistoryFrame. * components/history/nautilus-history-view.c: (get_bookmark_from_row), (get_uri_from_row), (history_view_frame_call_begin), (history_view_frame_call_end), (history_view_update_icons), (get_history_list), (hyperbola_navigation_history_load_location), (hyperbola_navigation_history_select_row), (do_destroy), (make_obj), (main): Changes in the way that the history list is maintained. We now use the info that is received by asking the view frame for history information. * src/nautilus-view-frame.c: * src/nautilus-view-frame.h: (nautilus_view_frame_initialize_class), (nautilus_view_frame_load_client), (nautilus_view_frame_get_history_list): Added new signal GET_HISTORY_LIST and new function that emits the signal when called. * src/nautilus-window.c: (nautilus_window_connect_view): Create and add history interface to connected view. (nautilus_window_get_history_list_callback): New signal handler that connects to the get_history_list signal of NautilusViewFrame. Returns a Nautilus_HistoryList created from the history list data.
Diffstat (limited to 'libnautilus')
-rw-r--r--libnautilus/nautilus-view-component.idl27
1 files changed, 27 insertions, 0 deletions
diff --git a/libnautilus/nautilus-view-component.idl b/libnautilus/nautilus-view-component.idl
index 505681740..c90d06da6 100644
--- a/libnautilus/nautilus-view-component.idl
+++ b/libnautilus/nautilus-view-component.idl
@@ -125,6 +125,33 @@ module Nautilus {
interface ZoomableFrame : ::Bonobo::Unknown {
oneway void report_zoom_level_changed (in double zoom_level);
};
+
+
+ /* The specifications for a history list item. The stucture
+ * containes the name to be displayed and the position of
+ * the item withing the history stack.
+ */
+
+ struct HistoryItem {
+ string name;
+ string location;
+ long position;
+ };
+
+ typedef sequence<HistoryItem> HistoryList;
+
+ /* The interface for something that manages and modifies history
+ * transactions.
+ */
+
+ interface HistoryFrame : ::Bonobo::Unknown {
+
+ /* Called by a view component to get the Nautilus
+ * history list.
+ */
+ HistoryList get_history_list ();
+ };
+
};
#endif /* NAUTILUS_VIEW_COMPONENT_IDL */