|
Packit Service |
f02b19 |
/*
|
|
Packit Service |
f02b19 |
* gnome-keyring
|
|
Packit Service |
f02b19 |
*
|
|
Packit Service |
f02b19 |
* Copyright (C) 2010 Stefan Walter
|
|
Packit Service |
f02b19 |
*
|
|
Packit Service |
f02b19 |
* This program is free software; you can redistribute it and/or modify
|
|
Packit Service |
f02b19 |
* it under the terms of the GNU Lesser General Public License as
|
|
Packit Service |
f02b19 |
* published by the Free Software Foundation; either version 2.1 of
|
|
Packit Service |
f02b19 |
* the License, or (at your option) any later version.
|
|
Packit Service |
f02b19 |
*
|
|
Packit Service |
f02b19 |
* This program is distributed in the hope that it will be useful, but
|
|
Packit Service |
f02b19 |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
f02b19 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
f02b19 |
* Lesser General Public License for more details.
|
|
Packit Service |
f02b19 |
*
|
|
Packit Service |
f02b19 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
f02b19 |
* License along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit Service |
f02b19 |
*/
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#ifndef __GCR_RENDERER_H__
|
|
Packit Service |
f02b19 |
#define __GCR_RENDERER_H__
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#include <glib-object.h>
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#include "gcr/gcr-column.h"
|
|
Packit Service |
f02b19 |
#include "gcr/gcr-types.h"
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#include "gcr-viewer.h"
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
G_BEGIN_DECLS
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#define GCR_TYPE_RENDERER (gcr_renderer_get_type())
|
|
Packit Service |
f02b19 |
#define GCR_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_RENDERER, GcrRenderer))
|
|
Packit Service |
f02b19 |
#define GCR_IS_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_RENDERER))
|
|
Packit Service |
f02b19 |
#define GCR_RENDERER_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GCR_TYPE_RENDERER, GcrRendererIface))
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
typedef struct _GcrRendererIface GcrRendererIface;
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
struct _GcrRendererIface {
|
|
Packit Service |
f02b19 |
GTypeInterface parent;
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
/* signals */
|
|
Packit Service |
f02b19 |
void (*data_changed) (GcrRenderer *self);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
/* virtual */
|
|
Packit Service |
f02b19 |
void (*render_view) (GcrRenderer *self, GcrViewer *viewer);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
void (*populate_popup) (GcrRenderer *self, GcrViewer *viewer, GtkMenu *menu);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
/*< private >*/
|
|
Packit Service |
f02b19 |
gpointer dummy1;
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
gpointer dummy2;
|
|
Packit Service |
f02b19 |
gpointer dummy3;
|
|
Packit Service |
f02b19 |
gpointer dummy4;
|
|
Packit Service |
f02b19 |
gpointer dummy5;
|
|
Packit Service |
f02b19 |
gpointer dummy6;
|
|
Packit Service |
f02b19 |
gpointer dummy7;
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
};
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
GType gcr_renderer_get_type (void) G_GNUC_CONST;
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
void gcr_renderer_render_view (GcrRenderer *self,
|
|
Packit Service |
f02b19 |
GcrViewer *viewer);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
void gcr_renderer_popuplate_popup (GcrRenderer *self,
|
|
Packit Service |
f02b19 |
GcrViewer *viewer,
|
|
Packit Service |
f02b19 |
GtkMenu *menu);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
void gcr_renderer_emit_data_changed (GcrRenderer *self);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
GcrRenderer* gcr_renderer_create (const gchar *label,
|
|
Packit Service |
f02b19 |
GckAttributes *attrs);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
void gcr_renderer_register (GType renderer_type,
|
|
Packit Service |
f02b19 |
GckAttributes *attrs);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
GckAttributes * gcr_renderer_get_attributes (GcrRenderer *self);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
void gcr_renderer_set_attributes (GcrRenderer *self,
|
|
Packit Service |
f02b19 |
GckAttributes *attrs);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
void gcr_renderer_register_well_known (void);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
G_END_DECLS
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#endif /* __GCR_RENDERER_H__ */
|