1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
11 #include "liblj/getevents.h"
19 LJEntry
*history_load_itemid (GtkWindow
*parent
, JamAccount
*acc
, const char *usejournal
, int itemid
) {
21 LJGetEventsSingle
*getevents
;
24 if (!JAM_ACCOUNT_IS_LJ(acc
)) {
25 g_warning("XXX blogger: history for blogger\n");
29 getevents
= lj_getevents_single_new(jam_account_lj_get_user(JAM_ACCOUNT_LJ(acc
)), usejournal
, itemid
);
30 ctx
= net_ctx_gtk_new(parent
, _("Loading Entry"));
31 if (!net_run_verb_ctx((LJVerb
*) getevents
, ctx
, NULL
)) {
32 lj_getevents_single_free(getevents
, TRUE
);
33 net_ctx_gtk_free(ctx
);
36 entry
= getevents
->entry
;
37 lj_getevents_single_free(getevents
, FALSE
);
38 net_ctx_gtk_free(ctx
);
44 LJEntry
*history_load_latest (GtkWindow
*win
, JamAccount
*acc
, const char *usejournal
) {
45 return history_load_itemid(win
, acc
, usejournal
, -1);