mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-21 00:32:06 +00:00
d566827eb6
Did most of the work for bug 5779, separating out the Eazel logos so they won't be used by non-Eazel folks making changes to Nautilus if they choose to do "non-approved" changes (allowed by GPL of course). * nautilus.spec.in: Add new logos. * configure.in: Add eazel-logos and eazel-logos/throbber. * Makefile.am: Add the eazel-logos subdirectory. * eazel-logos/Makefile.am: Created. * eazel-logos/throbber/Makefile.am: Created. * components/services/nautilus-dependent-shared/icons/eazel-logo-right-side-logo.png: * icons/About_Image.png: * icons/about_background.png: * icons/default.xml: * icons/druid_header.png: * icons/throbber/001.png: * icons/throbber/002.png: * icons/throbber/003.png: * icons/throbber/004.png: * icons/throbber/005.png: * icons/throbber/006.png: * icons/throbber/007.png: * icons/throbber/008.png: * icons/throbber/009.png: * icons/throbber/010.png: * icons/throbber/011.png: * icons/throbber/012.png: * icons/throbber/013.png: * icons/throbber/014.png: * icons/throbber/015.png: * icons/throbber/016.png: * icons/throbber/017.png: * icons/throbber/018.png: * icons/throbber/019.png: * icons/throbber/020.png: * icons/throbber/021.png: * icons/throbber/022.png: * icons/throbber/023.png: * icons/throbber/024.png: * icons/throbber/025.png: * icons/throbber/026.png: * icons/throbber/027.png: * icons/throbber/028.png: * icons/throbber/029.png: * icons/throbber/030.png: * icons/throbber/Makefile.am: * icons/throbber/rest.png: Updated with non-logo versions. Did 90% of the work for bug 6950 (need new report_redirect call in addition to report_location_change). While working on that, I also moved the deferral of outgoing calls that is done in the Mozilla component so that it is done by the NautilusView class instead. * libnautilus/nautilus-view-component.idl: Added report_redirect. * libnautilus/nautilus-view.h: Added report_redirect. * libnautilus/nautilus-view.c: (queue_outgoing_call): Added queing for the outgoing side. (nautilus_view_initialize): Allocate queue. (nautilus_view_destroy): Deallocate queue. (str_list_copy): Utility needed here because we can't use libnautilus-extensions. (list_free_deep_callback): New. Used in queuing code. (free_location_plus_callback): New. Used in queueing code. (call_open_location_in_this_window), (call_open_location_prefer_existing_window), (call_open_location_force_new_window), (call_report_location_change), (call_report_redirect), (call_report_selection_change), (call_report_status), (call_report_load_underway), (call_report_load_progress), (call_report_load_complete), (call_report_load_failed), (call_set_title), (call_go_back): Functions that get queued. These have the bulk of the code to do work. (nautilus_view_open_location_in_this_window), (nautilus_view_open_location_prefer_existing_window), (nautilus_view_open_location_force_new_window), (nautilus_view_report_location_change), (nautilus_view_report_redirect), (nautilus_view_report_selection_change), (nautilus_view_report_status), (nautilus_view_report_load_underway), (nautilus_view_report_load_progress), (nautilus_view_report_load_complete), (nautilus_view_report_load_failed), (nautilus_view_set_title), (nautilus_view_go_back): These functions now simply queue the work that needs to be done. * src/nautilus-view-frame-corba.c: (free_location_plus_callback): Add a new field for the "from_location" needed for redirect. (report_redirect): The actual function to do the work. (impl_Nautilus_ViewFrame_report_redirect): Queue function. * src/nautilus-view-frame.h: * src/nautilus-view-frame-private.h: * src/nautilus-view-frame.c: (nautilus_view_frame_initialize_class): Create report_redirect signal. (nautilus_view_frame_report_redirect): Emit the signal. * src/nautilus-window-manage-views.c: (report_redirect_callback): Code to implement the redirect. For now this does the exact same thing as report_location_change. This is where all the remaining work to fix the bug goes. * components/mozilla/nautilus-mozilla-content-view.c: (view_load_location_callback), (mozilla_title_changed_callback), (mozilla_net_start_callback), (mozilla_net_stop_callback), (mozilla_link_message_callback), (mozilla_progress_callback), (mozilla_dom_mouse_click_callback), (navigate_mozilla_to_nautilus_uri), (update_nautilus_uri), (eazel_services_scheme_from_http): Remove the "async" calls that defer calls until timeout time now that NautilusView itself does that for all components. * libnautilus-extensions/nautilus-gtk-extensions.h: * libnautilus-extensions/nautilus-gtk-extensions.c: (nautilus_gtk_marshal_NONE__POINTER_POINTER_POINTER_POINTER): Added new marshal function needed for report_redirect. Other changes. * THANKS: Add some more contributors, after running the script to detect new ChangeLog entries.
121 lines
6.1 KiB
C
121 lines
6.1 KiB
C
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: 8; c-basic-offset: 8 -*- */
|
|
|
|
/*
|
|
* libnautilus: A library for nautilus view implementations.
|
|
*
|
|
* Copyright (C) 1999, 2000 Red Hat, Inc.
|
|
* Copyright (C) 2000 Eazel, Inc.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library 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
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the Free
|
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*
|
|
* Authors: Elliot Lee <sopwith@redhat.com>
|
|
* Maciej Stachowiak <mjs@eazel.com>
|
|
* Darin Adler <darin@eazel.com>
|
|
*
|
|
*/
|
|
|
|
#ifndef NAUTILUS_VIEW_H
|
|
#define NAUTILUS_VIEW_H
|
|
|
|
#include <libnautilus/nautilus-view-component.h>
|
|
#include <bonobo/bonobo-control.h>
|
|
|
|
BEGIN_GNOME_DECLS
|
|
|
|
#define NAUTILUS_TYPE_VIEW (nautilus_view_get_type ())
|
|
#define NAUTILUS_VIEW(obj) (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_VIEW, NautilusView))
|
|
#define NAUTILUS_VIEW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_VIEW, NautilusViewClass))
|
|
#define NAUTILUS_IS_VIEW(obj) (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_VIEW))
|
|
#define NAUTILUS_IS_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_VIEW))
|
|
|
|
typedef struct NautilusViewDetails NautilusViewDetails;
|
|
|
|
typedef struct {
|
|
BonoboObject parent_spot;
|
|
NautilusViewDetails *details;
|
|
} NautilusView;
|
|
|
|
typedef struct {
|
|
BonoboObjectClass parent_spot;
|
|
|
|
void (* load_location) (NautilusView *view,
|
|
const char *location_uri);
|
|
void (* stop_loading) (NautilusView *view);
|
|
void (* selection_changed) (NautilusView *view,
|
|
GList *selection); /* list of URI char *s */
|
|
void (* title_changed) (NautilusView *view,
|
|
const char *title);
|
|
void (* history_changed) (NautilusView *view,
|
|
const Nautilus_History *history);
|
|
} NautilusViewClass;
|
|
|
|
GtkType nautilus_view_get_type (void);
|
|
NautilusView * nautilus_view_new (GtkWidget *widget);
|
|
NautilusView * nautilus_view_new_from_bonobo_control (BonoboControl *bonobo_control);
|
|
BonoboControl * nautilus_view_get_bonobo_control (NautilusView *view);
|
|
|
|
/* Calls to the Nautilus shell via the view frame. See the IDL for detailed comments. */
|
|
void nautilus_view_open_location_in_this_window (NautilusView *view,
|
|
const char *location_uri);
|
|
void nautilus_view_open_location_prefer_existing_window (NautilusView *view,
|
|
const char *location_uri);
|
|
void nautilus_view_open_location_force_new_window (NautilusView *view,
|
|
const char *location_uri,
|
|
GList *selection); /* list of URI char *s */
|
|
void nautilus_view_report_location_change (NautilusView *view,
|
|
const char *location_uri,
|
|
GList *selection, /* list of URI char *s */
|
|
const char *title);
|
|
void nautilus_view_report_redirect (NautilusView *view,
|
|
const char *from_location_uri,
|
|
const char *to_location_uri,
|
|
GList *selection, /* list of URI char *s */
|
|
const char *title);
|
|
void nautilus_view_report_selection_change (NautilusView *view,
|
|
GList *selection); /* list of URI char *s */
|
|
void nautilus_view_report_status (NautilusView *view,
|
|
const char *status);
|
|
void nautilus_view_report_load_underway (NautilusView *view);
|
|
void nautilus_view_report_load_progress (NautilusView *view,
|
|
double fraction_done);
|
|
void nautilus_view_report_load_complete (NautilusView *view);
|
|
void nautilus_view_report_load_failed (NautilusView *view);
|
|
void nautilus_view_set_title (NautilusView *view,
|
|
const char *title);
|
|
void nautilus_view_go_back (NautilusView *view);
|
|
|
|
/* Some utility functions useful for doing the CORBA work directly.
|
|
* Not needed by most components, but shared with the view frame code,
|
|
* which is why they are public.
|
|
*/
|
|
Nautilus_URIList * nautilus_uri_list_from_g_list (GList *list);
|
|
GList * nautilus_g_list_from_uri_list (const Nautilus_URIList *uri_list);
|
|
|
|
/* Simpler API for setting up and getting the UI component. */
|
|
BonoboUIComponent *nautilus_view_set_up_ui (NautilusView *view,
|
|
const char *datadir,
|
|
const char *ui_xml_file_name,
|
|
const char *application_name);
|
|
|
|
/* `protected' functions for use by subclasses only. */
|
|
NautilusView * nautilus_view_construct (NautilusView *view,
|
|
GtkWidget *widget);
|
|
NautilusView * nautilus_view_construct_from_bonobo_control (NautilusView *view,
|
|
BonoboControl *bonobo_control);
|
|
|
|
END_GNOME_DECLS
|
|
|
|
#endif /* NAUTILUS_VIEW_H */
|