2 * nautilus-info-provider.h - Interface for Nautilus extensions that
3 * provide info about files.
5 * Copyright (C) 2003 Novell, Inc.
6 * Copyright (C) 2005 Red Hat, Inc.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the Free
20 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 * Author: Dave Camp <dave@ximian.com>
23 * Alexander Larsson <alexl@redhat.com>
27 /* This interface is implemented by Nautilus extensions that want to
28 * provide extra location widgets for a particular location.
29 * Extensions are called when Nautilus displays a location.
32 #ifndef NAUTILUS_LOCATION_WIDGET_PROVIDER_H
33 #define NAUTILUS_LOCATION_WIDGET_PROVIDER_H
35 #include <glib-object.h>
36 #include <gtk/gtkwidget.h>
37 #include "nautilus-extension-types.h"
41 #define NAUTILUS_TYPE_LOCATION_WIDGET_PROVIDER (nautilus_location_widget_provider_get_type ())
42 #define NAUTILUS_LOCATION_WIDGET_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_LOCATION_WIDGET_PROVIDER, NautilusLocationWidgetProvider))
43 #define NAUTILUS_IS_LOCATION_WIDGET_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_LOCATION_WIDGET_PROVIDER))
44 #define NAUTILUS_LOCATION_WIDGET_PROVIDER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), NAUTILUS_TYPE_LOCATION_WIDGET_PROVIDER, NautilusLocationWidgetProviderIface))
46 typedef struct _NautilusLocationWidgetProvider NautilusLocationWidgetProvider
;
47 typedef struct _NautilusLocationWidgetProviderIface NautilusLocationWidgetProviderIface
;
49 struct _NautilusLocationWidgetProviderIface
{
50 GTypeInterface g_iface
;
52 GtkWidget
* (*get_widget
) (NautilusLocationWidgetProvider
*provider
,
57 /* Interface Functions */
58 GType
nautilus_location_widget_provider_get_type (void);
59 GtkWidget
* nautilus_location_widget_provider_get_widget (NautilusLocationWidgetProvider
*provider
,