diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-04-21 16:43:50 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-05-09 11:30:47 -0400 |
commit | 4241ccfd39b6013d2ddd7fbd58aabf5ef1a2302d (patch) | |
tree | cbe078add757f465ecc5464076f889d6086e5703 /src/nautilus-previewer.h | |
parent | 9669b91d70ec1cf59933df53f9c22ed16670bb90 (diff) | |
download | nautilus-4241ccfd39b6013d2ddd7fbd58aabf5ef1a2302d.tar.gz |
previewer: add a NautilusPreviewer DBus wrapper class
Diffstat (limited to 'src/nautilus-previewer.h')
-rw-r--r-- | src/nautilus-previewer.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/nautilus-previewer.h b/src/nautilus-previewer.h new file mode 100644 index 000000000..93a99030a --- /dev/null +++ b/src/nautilus-previewer.h @@ -0,0 +1,67 @@ +/* + * nautilus-previewer: nautilus previewer DBus wrapper + * + * Copyright (C) 2011, Red Hat, Inc. + * + * Nautilus 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. + * + * Nautilus 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 program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * Author: Cosimo Cecchi <cosimoc@redhat.com> + * + */ + +#ifndef __NAUTILUS_PREVIEWER_H__ +#define __NAUTILUS_PREVIEWER_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +#define NAUTILUS_TYPE_PREVIEWER nautilus_previewer_get_type() +#define NAUTILUS_PREVIEWER(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_PREVIEWER, NautilusPreviewer)) +#define NAUTILUS_PREVIEWER_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_PREVIEWER, NautilusPreviewerClass)) +#define NAUTILUS_IS_PREVIEWER(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_PREVIEWER)) +#define NAUTILUS_IS_PREVIEWER_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_PREVIEWER)) +#define NAUTILUS_PREVIEWER_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), NAUTILUS_TYPE_PREVIEWER, NautilusPreviewerClass)) + +typedef struct _NautilusPreviewerPriv NautilusPreviewerPriv; + +typedef struct { + GObject parent; + + /* private */ + NautilusPreviewerPriv *priv; +} NautilusPreviewer; + +typedef struct { + GObjectClass parent_class; +} NautilusPreviewerClass; + +GType nautilus_previewer_get_type (void); + +NautilusPreviewer *nautilus_previewer_dup_singleton (void); +void nautilus_previewer_call_show_file (NautilusPreviewer *previewer, + const gchar *uri, + guint xid, + guint x, + guint y); + +G_END_DECLS + +#endif /* __NAUTILUS_PREVIEWER_H__ */ |