poll.h: cosmetix
[k8lowj.git] / src / preview.h
blob68104f84b30492d66aa6e209cd1bf4e543b29470
1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2005 Evan Martin <evan@livejournal.com>
3 */
4 #ifndef __LOGJAM_PREVIEW_H__
5 #define __LOGJAM_PREVIEW_H__
7 #include <gtkhtml/gtkhtml.h>
8 #include "liblj/livejournal.h"
9 #include "jam.h"
11 typedef struct _HTMLPreview HTMLPreview;
12 typedef LJEntry *(*GetEntryFunc) (HTMLPreview * hp);
14 struct _HTMLPreview {
15 GtkHTML html; /* parent */
16 GetEntryFunc get_entry;
17 gpointer get_entry_data;
20 typedef struct _PreviewUI PreviewUI;
21 struct _PreviewUI {
22 GtkWidget *win;
23 HTMLPreview *html;
24 JamWin *jw;
27 GtkWidget *html_preview_new(GetEntryFunc get_entry, gpointer get_entry_data);
28 void preview_ui_show(JamWin * jw);
29 void preview_update(HTMLPreview * hp);
31 #endif /* __html_preview_h__ */