~noskcaj/ubuntu/vivid/gnome-keyring/3.15.90

« back to all changes in this revision

Viewing changes to gcr/gcr-display-view.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-14 22:13:02 UTC
  • mfrom: (1.3.1)
  • mto: (80.2.8 experimental) (1.1.77)
  • mto: This revision was merged to the branch mainline in revision 148.
  • Revision ID: package-import@ubuntu.com-20120514221302-0l3gjmqpe6xopond
ImportĀ upstreamĀ versionĀ 3.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2010 Stefan Walter
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or modify
5
 
 * it under the terms of the GNU Lesser General Public License as
6
 
 * published by the Free Software Foundation; either version 2.1 of
7
 
 * the License, or (at your option) any later version.
8
 
 *
9
 
 * This program is distributed in the hope that it will be useful, but
10
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 
 * Lesser General Public License for more details.
13
 
 *
14
 
 * You should have received a copy of the GNU Lesser General Public
15
 
 * License along with this program; if not, write to the Free Software
16
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17
 
 * 02111-1307, USA.
18
 
 */
19
 
 
20
 
#ifndef __GCR_DISPLAY_VIEW_H__
21
 
#define __GCR_DISPLAY_VIEW_H__
22
 
 
23
 
#include <glib-object.h>
24
 
#include <gtk/gtk.h>
25
 
 
26
 
#include "gcr-certificate.h"
27
 
#include "gcr-types.h"
28
 
#include "gcr-viewer.h"
29
 
 
30
 
G_BEGIN_DECLS
31
 
 
32
 
#define GCR_TYPE_DISPLAY_VIEW               (_gcr_display_view_get_type ())
33
 
#define GCR_DISPLAY_VIEW(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_DISPLAY_VIEW, GcrDisplayView))
34
 
#define GCR_DISPLAY_VIEW_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_DISPLAY_VIEW, GcrDisplayViewClass))
35
 
#define GCR_IS_DISPLAY_VIEW(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_DISPLAY_VIEW))
36
 
#define GCR_IS_DISPLAY_VIEW_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_DISPLAY_VIEW))
37
 
#define GCR_DISPLAY_VIEW_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_DISPLAY_VIEW, GcrDisplayViewClass))
38
 
 
39
 
typedef struct _GcrDisplayView GcrDisplayView;
40
 
typedef struct _GcrDisplayViewClass GcrDisplayViewClass;
41
 
typedef struct _GcrDisplayViewPrivate GcrDisplayViewPrivate;
42
 
 
43
 
struct _GcrDisplayView {
44
 
        GtkTextView parent;
45
 
        GcrDisplayViewPrivate *pv;
46
 
};
47
 
 
48
 
struct _GcrDisplayViewClass {
49
 
        GtkTextViewClass parent_class;
50
 
};
51
 
 
52
 
GType            _gcr_display_view_get_type                    (void);
53
 
 
54
 
GcrDisplayView*  _gcr_display_view_new                         (void);
55
 
 
56
 
void             _gcr_display_view_clear                       (GcrDisplayView *self,
57
 
                                                                GcrRenderer *renderer);
58
 
 
59
 
void             _gcr_display_view_append_value                (GcrDisplayView *self,
60
 
                                                                GcrRenderer *renderer,
61
 
                                                                const gchar *field,
62
 
                                                                const gchar *value,
63
 
                                                                gboolean monospace);
64
 
 
65
 
void             _gcr_display_view_append_title                (GcrDisplayView *self,
66
 
                                                                GcrRenderer *renderer,
67
 
                                                                const gchar *title);
68
 
 
69
 
void             _gcr_display_view_append_content              (GcrDisplayView *self,
70
 
                                                                GcrRenderer *renderer,
71
 
                                                                const gchar *content,
72
 
                                                                const gchar *details);
73
 
 
74
 
void             _gcr_display_view_start_details               (GcrDisplayView *self,
75
 
                                                                GcrRenderer *renderer);
76
 
 
77
 
void             _gcr_display_view_append_heading              (GcrDisplayView *self,
78
 
                                                                GcrRenderer *renderer,
79
 
                                                                const gchar *heading);
80
 
 
81
 
void             _gcr_display_view_append_fingerprint          (GcrDisplayView *self,
82
 
                                                                GcrRenderer *renderer,
83
 
                                                                const guchar *data,
84
 
                                                                gsize n_data,
85
 
                                                                const gchar *name,
86
 
                                                                GChecksumType type);
87
 
 
88
 
void             _gcr_display_view_set_stock_image             (GcrDisplayView *self,
89
 
                                                                GcrRenderer *renderer,
90
 
                                                                const gchar *stock_id);
91
 
 
92
 
G_END_DECLS
93
 
 
94
 
#endif /* __GCR_DISPLAY_VIEW_H__ */