fixed GTKHTML detection
[k8lowj.git] / src / jamview.h
blob2c3b894d119d7a625b14a9bd8d24ab2e35002488
1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
4 * vim: tabstop=4 shiftwidth=4 noexpandtab :
5 */
7 #ifndef _jam_view_
8 #define _jam_view_
10 #include "gtk-all.h"
11 #include "jamdoc.h"
13 typedef struct _JamView JamView;
14 typedef struct _JamViewClass JamViewClass;
16 /* these must match ACTION_VIEW_... in menu.c. */
17 /* these must match metas[] in jamview.c. */
18 typedef enum {
19 JAM_VIEW_SUBJECT,
20 JAM_VIEW_SECURITY,
21 JAM_VIEW_MOOD,
22 JAM_VIEW_PIC,
23 JAM_VIEW_MUSIC,
24 JAM_VIEW_LOCATION,
25 JAM_VIEW_TAGS,
26 JAM_VIEW_PREFORMATTED,
27 JAM_VIEW_DATESEL,
28 JAM_VIEW_COMMENTS,
29 JAM_VIEW_SCREENING,
30 JAM_VIEW_META_COUNT
31 } JamViewMeta;
32 #define JAM_VIEW_META_FIRST JAM_VIEW_SECURITY
33 #define JAM_VIEW_META_LAST JAM_VIEW_SCREENING
35 const char *jam_view_meta_to_name(JamViewMeta meta);
36 gboolean jam_view_meta_from_name(const char *name, JamViewMeta *meta);
38 #define JAM_TYPE_VIEW (jam_view_get_type())
39 #define JAM_VIEW(object) (G_TYPE_CHECK_INSTANCE_CAST((object), JAM_TYPE_VIEW, JamView))
40 #define JAM_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), JAM_TYPE_VIEW, JamViewClass))
42 GType jam_view_get_type(void);
44 GtkWidget* jam_view_new();
45 GObject* jam_view_get_undomgr(JamView *view);
46 void jam_view_set_doc(JamView *view, JamDoc *doc);
48 void jam_view_settings_changed(JamView *view);
50 void jam_view_toggle_meta(JamView *view, JamViewMeta meta, gboolean show);
51 gboolean jam_view_get_meta_visible(JamView *view, JamViewMeta meta);
53 void jam_view_emit_conf(JamView *view);
55 #endif /* _jam_view_ */