1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2005 Evan Martin <martine@danga.com>
4 * vim: tabstop=4 shiftwidth=4 noexpandtab :
7 #ifndef __LOGJAM_PROGRESS_H__
8 #define __LOGJAM_PROGRESS_H__
10 #define PROGRESS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), progress_window_get_type(), ProgressWindow))
11 typedef struct _ProgressWindow ProgressWindow
;
13 typedef void (*ProgressWindowCancelFunc
)(gpointer data
);
15 GType
progress_window_get_type(void);
16 GtkWidget
* progress_window_new(GtkWindow
*parent
, const char *title
);
18 void progress_window_set_title(ProgressWindow
*pw
, const char *title
);
19 void progress_window_set_text(ProgressWindow
*pw
, const char *text
);
20 void progress_window_pack(ProgressWindow
*pw
, GtkWidget
*contents
);
21 void progress_window_show_error(ProgressWindow
*pw
, const char *fmt
, ...);
22 void progress_window_set_progress(ProgressWindow
*pw
, float frac
);
23 void progress_window_set_cancel_cb(ProgressWindow
*pw
,
24 ProgressWindowCancelFunc func
, gpointer data
);
26 #endif /* __LOGJAM_PROGRESS_H__ */