diff options
author | James Willcox <jwillcox@gnome.org> | 2002-11-08 20:54:45 +0000 |
---|---|---|
committer | James Willcox <jwillcox@src.gnome.org> | 2002-11-08 20:54:45 +0000 |
commit | c64f0a3a0f643f1e9217432f78e9b0d4513acb19 (patch) | |
tree | b2e85654adae1b9d1a6524ad02a23f462ff0c847 /src/file-manager/fm-properties-window.c | |
parent | 78c433e00e6d9dfcde9ff54f860982fb1194da29 (diff) | |
download | nautilus-c64f0a3a0f643f1e9217432f78e9b0d4513acb19.tar.gz |
Make bonobo property pages regular controls instead of NautilusViews.
2002-11-08 James Willcox <jwillcox@gnome.org>
* components/image_properties/nautilus-image-properties-view.c:
(get_property), (set_property),
(nautilus_image_properties_view_init):
* components/image_properties/nautilus-image-properties-view.h:
* components/notes/nautilus-notes.c: (set_bonobo_properties),
(make_notes_view):
* libnautilus-private/nautilus-mime-actions.c:
(nautilus_mime_get_property_components_for_file):
* libnautilus-private/nautilus-mime-actions.h:
* src/file-manager/fm-properties-window.c:
(bonobo_page_activate_callback), (append_bonobo_pages):
Make bonobo property pages regular controls instead of NautilusViews.
Diffstat (limited to 'src/file-manager/fm-properties-window.c')
-rw-r--r-- | src/file-manager/fm-properties-window.c | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c index 4ada1d38d..d6ac2f854 100644 --- a/src/file-manager/fm-properties-window.c +++ b/src/file-manager/fm-properties-window.c @@ -2206,22 +2206,31 @@ bonobo_page_activate_callback (CORBA_Object obj, if (obj != CORBA_OBJECT_NIL) { Bonobo_Control control; - Nautilus_View view; + Bonobo_PropertyBag pb; + BonoboArg *arg; char *uri; + uri = nautilus_file_get_uri (window->details->target_file); + control = Bonobo_Unknown_queryInterface (obj, "IDL:Bonobo/Control:1.0", &ev); - view = Bonobo_Unknown_queryInterface - (control, "IDL:Nautilus/View:1.0", &ev); - uri = nautilus_file_get_uri (window->details->target_file); + pb = Bonobo_Control_getProperties (control, &ev); - Nautilus_View_load_location (view, uri, &ev); - if (!BONOBO_EX (&ev)) { - widget = bonobo_widget_new_control_from_objref - (control, CORBA_OBJECT_NIL); + arg = bonobo_arg_new (BONOBO_ARG_STRING); + BONOBO_ARG_SET_STRING (arg, uri); + + bonobo_pbclient_set_value_async (pb, "URI", arg, &ev); + bonobo_arg_release (arg); + bonobo_object_release_unref (pb, NULL); + + if (!BONOBO_EX (&ev)) { + widget = bonobo_widget_new_control_from_objref + (control, CORBA_OBJECT_NIL); + bonobo_object_release_unref (control, &ev); + } } g_free (uri); @@ -2245,10 +2254,9 @@ append_bonobo_pages (FMPropertiesWindow *window) GList *components, *l; CORBA_Environment ev; - /* find all the property page views for this file */ - components = nautilus_mime_get_all_components_for_file_extended - (window->details->target_file, - "nautilus:property_page_name.defined()"); + /* find all the property pages for this file */ + components = nautilus_mime_get_property_components_for_file + (window->details->target_file); CORBA_exception_init (&ev); |