diff options
author | Maciej Stachowiak <mstachow@src.gnome.org> | 2000-05-27 12:17:20 +0000 |
---|---|---|
committer | Maciej Stachowiak <mstachow@src.gnome.org> | 2000-05-27 12:17:20 +0000 |
commit | a15fd9f88189602a9b39f7d3e640571a96210037 (patch) | |
tree | 37e32d2953daaeb5b23ace82d12660933fe50e00 /src/ntl-view-nautilus.c | |
parent | 97fabc0a4719a3d5f5d1c39d287c4d6844dd5078 (diff) | |
download | nautilus-a15fd9f88189602a9b39f7d3e640571a96210037.tar.gz |
components/history/ntl-history-view.c ->
* Renamed files as follows, as per RENAMING:
components/history/ntl-history-view.c -> components/history/nautilus-history-view.c
components/history/ntl-history-view.oafinfo -> components/history/nautilus-history-view.oafinfo
components/notes/ntl-notes.c -> components/notes/nautilus-notes.c
components/notes/ntl-notes.oafinfo -> components/notes/nautilus-notes.oafinfo
libnautilus-extensions/gtkscrollframe.c -> libnautilus-extensions/nautilus-scroll-frame.c
libnautilus-extensions/gtkscrollframe.h -> libnautilus-extensions/nautilus-scroll-frame.h
libnautilus/nautilus-view-frame.c -> libnautilus/nautilus-view.c
libnautilus/nautilus-view-frame.h -> libnautilus/nautilus-view.h
src/nautilus-index-tabs.c -> src/nautilus-sidebar-tabs.c
src/nautilus-index-tabs.h -> src/nautilus-sidebar-tabs.h
src/nautilus-index-title.c -> src/nautilus-sidebar-title.c
src/nautilus-index-title.h -> src/nautilus-sidebar-title.h
src/nautilus-zoomable-frame-svr.c -> src/nautilus-zoomable-frame-corba.c
src/ntl-app.c -> src/nautilus-application.c
src/ntl-app.h -> src/nautilus-application.h
src/ntl-index-panel.c -> src/nautilus-sidebar.c
src/ntl-index-panel.h -> src/nautilus-sidebar.h
src/ntl-main.c -> src/nautilus-main.c
src/ntl-miniicon.c -> libnautilus-extensions/nautilus-mini-icon.c
src/ntl-miniicon.h -> libnautilus-extensions/nautilus-mini-icon.h
src/ntl-uri-map.c -> src/nautilus-applicable-views.c
src/ntl-uri-map.h -> src/nautilus-applicable-views.h
src/ntl-view-bonobo-control.c -> src/nautilus-view-frame-bonobo-control.c
src/ntl-view-bonobo-subdoc.c -> src/nautilus-view-frame-bonobo-embeddable.c
src/ntl-view-frame-svr.c -> src/nautilus-view-frame-corba.c
src/ntl-view-nautilus.c -> src/nautilus-view-frame-nautilus-view.c
src/ntl-view-private.h -> src/nautilus-view-frame-private.h
src/ntl-view.c -> src/nautilus-view-frame.c
src/ntl-view.h -> src/nautilus-view-frame.h
src/ntl-window-msgs.c -> src/nautilus-window-manage-views.c
src/ntl-window-msgs.h -> src/nautilus-window-manage-views.h
src/ntl-window-private.h -> src/nautilus-window-private.h
src/ntl-window-state.c -> src/nautilus-window-state.c
src/ntl-window-state.h -> src/nautilus-window-state.h
src/ntl-window.c -> src/nautilus-window.c
src/ntl-window.h -> src/nautilus-window.h
* components/history/Makefile.am, components/notes/Makefile.am,
libnautilus-extensions/Makefile.am, libnautilus/Makefile.am,
po/POTFILES.in, src/Makefile.am,
components/hardware/nautilus-hardware-view.h,
components/loser/content/nautilus-content-loser.h,
components/loser/sidebar/nautilus-sidebar-loser.h,
components/mozilla/nautilus-mozilla-content-view.h,
components/music/nautilus-music-view.h,
components/rpmview/nautilus-rpm-view.h,
components/sample/nautilus-sample-content-view.h,
components/services/startup/nautilus-view/nautilus-service-startup-view.h,
libnautilus/libnautilus.h, src/nautilus-desktop-window.h,
src/nautilus-window-menus.c, src/nautilus-window-toolbars.c,
src/file-manager/fm-directory-view.h : Updated for renamings.
* RENAMING: removed old renamings
Diffstat (limited to 'src/ntl-view-nautilus.c')
-rw-r--r-- | src/ntl-view-nautilus.c | 152 |
1 files changed, 0 insertions, 152 deletions
diff --git a/src/ntl-view-nautilus.c b/src/ntl-view-nautilus.c deleted file mode 100644 index 6465c7276..000000000 --- a/src/ntl-view-nautilus.c +++ /dev/null @@ -1,152 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ - -/* - * Nautilus - * - * Copyright (C) 1999, 2000 Red Hat, Inc. - * Copyright (C) 1999, 2000 Eazel, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this library; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * Author: Elliot Lee <sopwith@redhat.com> - * - */ - -#include <config.h> - -#include "ntl-view-private.h" -#include "ntl-window.h" - -typedef struct { - BonoboObject *control_frame; - CORBA_Object view_client; -} NautilusViewInfo; - -static gboolean -nautilus_view_try_load_client(NautilusViewFrame *view, CORBA_Object obj, CORBA_Environment *ev) -{ - Bonobo_Control control; - NautilusViewInfo *nvi; - Bonobo_UIHandler uih = bonobo_object_corba_objref(BONOBO_OBJECT(nautilus_window_get_uih(NAUTILUS_WINDOW(view->main_window)))); - nvi = view->component_data = g_new0(NautilusViewInfo, 1); - - control = Bonobo_Unknown_query_interface(obj, "IDL:Bonobo/Control:1.0", ev); - if(ev->_major != CORBA_NO_EXCEPTION) - control = CORBA_OBJECT_NIL; - - if(CORBA_Object_is_nil(control, ev)) - goto out; - - nvi->view_client = CORBA_Object_duplicate(obj, ev); - - nvi->control_frame = BONOBO_OBJECT(bonobo_control_frame_new(uih)); - bonobo_object_add_interface(BONOBO_OBJECT(nvi->control_frame), view->view_frame); - - bonobo_control_frame_bind_to_control(BONOBO_CONTROL_FRAME(nvi->control_frame), control); - view->client_widget = bonobo_control_frame_get_widget(BONOBO_CONTROL_FRAME(nvi->control_frame)); - - Bonobo_Unknown_unref(control, ev); - CORBA_Object_release(control, ev); - - return TRUE; - - out: - g_free(nvi); - - return FALSE; -} - -static void -destroy_nautilus_view(NautilusViewFrame *view, CORBA_Environment *ev) -{ - NautilusViewInfo *nvi = view->component_data; - - CORBA_Object_release(nvi->view_client, ev); - - g_free(nvi); -} - -static void -nv_show_properties(NautilusViewFrame *view, CORBA_Environment *ev) -{ - NautilusViewInfo *nvi = view->component_data; - - Nautilus_View_show_properties(nvi->view_client, ev); - if(ev->_major != CORBA_NO_EXCEPTION) - gtk_object_destroy(GTK_OBJECT(view)); -} - -static void -nv_save_state(NautilusViewFrame *view, const char *config_path, CORBA_Environment *ev) -{ - NautilusViewInfo *nvi = view->component_data; - - Nautilus_View_save_state(nvi->view_client, config_path, ev); - if(ev->_major != CORBA_NO_EXCEPTION) - gtk_object_destroy(GTK_OBJECT(view)); -} - -static void -nv_load_state(NautilusViewFrame *view, const char *config_path, CORBA_Environment *ev) -{ - NautilusViewInfo *nvi = view->component_data; - - Nautilus_View_load_state(nvi->view_client, config_path, ev); - if(ev->_major != CORBA_NO_EXCEPTION) - gtk_object_destroy(GTK_OBJECT(view)); -} - -static void -nv_notify_location_change(NautilusViewFrame *view, Nautilus_NavigationInfo *nav_ctx, CORBA_Environment *ev) -{ - NautilusViewInfo *nvi = view->component_data; - - Nautilus_View_notify_location_change(nvi->view_client, nav_ctx, ev); - if(ev->_major != CORBA_NO_EXCEPTION) - gtk_object_destroy(GTK_OBJECT(view)); -} - -static void -nv_notify_selection_change(NautilusViewFrame *view, Nautilus_SelectionInfo *nav_ctx, CORBA_Environment *ev) -{ - NautilusViewInfo *nvi = view->component_data; - - Nautilus_View_notify_selection_change(nvi->view_client, nav_ctx, ev); - - if(ev->_major != CORBA_NO_EXCEPTION) - gtk_object_destroy(GTK_OBJECT(view)); -} - -static void -nv_stop_location_change(NautilusViewFrame *view, CORBA_Environment *ev) -{ - NautilusViewInfo *nvi = view->component_data; - - Nautilus_View_stop_location_change(nvi->view_client, ev); - if(ev->_major != CORBA_NO_EXCEPTION) - gtk_object_destroy(GTK_OBJECT(view)); -} - -NautilusViewComponentType nautilus_view_component_type = { - "IDL:Nautilus/View:1.0", - &nautilus_view_try_load_client, /* try_load */ - &destroy_nautilus_view, /* destroy */ - &nv_save_state, /* save_state */ - &nv_load_state, /* load_state */ - &nv_notify_location_change, /* notify_location_change */ - &nv_stop_location_change, /*stop_location_change */ - &nv_notify_selection_change, /* notify_selection_change */ - &nv_show_properties /* show_properties */ -}; |