/* nautilus-view.h * Copyright (C) 1999 Red Hat, 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., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef __NAUTILUS_VIEW_H__ #define __NAUTILUS_VIEW_H__ #include #include #include "ntl-types.h" #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #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 ((obj), NAUTILUS_TYPE_VIEW)) typedef struct _NautilusView NautilusView; typedef struct _NautilusViewClass NautilusViewClass; struct _NautilusView { GtkBin parent; GtkWidget *main_window; char *iid; GtkWidget *client; guint construct_arg_count; }; struct _NautilusViewClass { GtkBinClass parent_spot; void (*notify_location_change) (NautilusView *view, NautilusNavigationInfo *nav_context); void (*load_state) (NautilusView *view, const char *config_path); void (*save_state) (NautilusView *view, const char *config_path); void (*show_properties) (NautilusView *view); void (*view_constructed) (NautilusView *view); /* Not a signal. Work-around for Gtk+'s lack of a 'constructed' operation */ GtkBinClass *parent_class; guint view_signals[3]; guint num_construct_args; }; GtkType nautilus_view_get_type (void); void nautilus_view_request_location_change (NautilusView *view, NautilusLocationReference loc); void nautilus_view_load_client (NautilusView *view, const char * iid); /* This is a "protected" operation */ void nautilus_view_construct_arg_set(NautilusView *view); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __NAUTILUS_VIEW_H__ */