summaryrefslogtreecommitdiff
path: root/src/nautilus-application.c
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2000-05-18 22:31:58 +0000
committerDarin Adler <darin@src.gnome.org>2000-05-18 22:31:58 +0000
commit7e7fc3ecf236e3a2ae3cb12d02bad11e04e27826 (patch)
treec0d8d4b1337836a317ae364cae412a8a16291c58 /src/nautilus-application.c
parent4b5995ac28e8ca8b6b23c1464c077f115b5af734 (diff)
downloadnautilus-7e7fc3ecf236e3a2ae3cb12d02bad11e04e27826.tar.gz
Change format to make popt "pop" out more.
* 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.
Diffstat (limited to 'src/nautilus-application.c')
-rw-r--r--src/nautilus-application.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 82b421f4c..2839ac181 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -44,9 +44,6 @@ typedef struct {
static Nautilus_ViewWindowList *
impl_Nautilus_Application__get_view_windows(impl_POA_Nautilus_Application* servant,
CORBA_Environment * ev);
-static Nautilus_Undo_Manager
-impl_Nautilus_Application__get_undo_manager(impl_POA_Nautilus_Application* servant,
- CORBA_Environment * ev);
static Nautilus_ViewWindow
impl_Nautilus_Application_new_view_window(impl_POA_Nautilus_Application *servant,
CORBA_Environment * ev);
@@ -62,7 +59,6 @@ impl_Nautilus_Application_create_object(impl_POA_Nautilus_Application *servant,
static POA_Nautilus_Application__epv impl_Nautilus_Application_epv = {
NULL, /* _private */
(gpointer) &impl_Nautilus_Application__get_view_windows,
- (gpointer) &impl_Nautilus_Application__get_undo_manager,
(gpointer) &impl_Nautilus_Application_new_view_window
};
@@ -115,14 +111,6 @@ impl_Nautilus_Application__get_view_windows(impl_POA_Nautilus_Application *serva
}
-static Nautilus_Undo_Manager
-impl_Nautilus_Application__get_undo_manager(impl_POA_Nautilus_Application *servant,
- CORBA_Environment * ev)
-{
- return CORBA_Object_duplicate(bonobo_object_corba_objref(servant->app->undo_manager), ev);
-}
-
-
static Nautilus_ViewWindow
impl_Nautilus_Application_new_view_window(impl_POA_Nautilus_Application *servant, CORBA_Environment * ev)
{
@@ -261,10 +249,6 @@ nautilus_app_init (NautilusApp *app)
/* Init undo manager */
app->undo_manager = BONOBO_OBJECT (nautilus_undo_manager_new ());
- /* Add undo manager to the app */
- g_assert (app->undo_manager);
- gtk_object_set_data (GTK_OBJECT (app), "NautilusUndoManager", app->undo_manager);
-
CORBA_exception_free(&ev);
}
@@ -275,7 +259,7 @@ nautilus_app_new (void)
}
static void
-nautilus_app_destroy(GtkObject *object)
+nautilus_app_destroy (GtkObject *object)
{
/*
* Shutdown preferences. This is needed so that the global preferences
@@ -286,7 +270,7 @@ nautilus_app_destroy(GtkObject *object)
*/
nautilus_global_preferences_shutdown ();
- nautilus_bookmarks_exiting (object);
+ nautilus_bookmarks_exiting ();
GTK_OBJECT_CLASS(app_parent_class)->destroy(object);
}