respect https prefix
[k8lowj.git] / src / progress.h
blobf98ba7fddadfc083c4a779d37c880bd6d1d31a8f
1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2005 Evan Martin <martine@danga.com>
3 */
4 #ifndef __LOGJAM_PROGRESS_H__
5 #define __LOGJAM_PROGRESS_H__
8 #define PROGRESS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), progress_window_get_type(), ProgressWindow))
10 typedef struct _ProgressWindow ProgressWindow;
12 typedef void (*ProgressWindowCancelFunc) (gpointer data);
14 extern GType progress_window_get_type (void);
15 extern GtkWidget *progress_window_new (GtkWindow *parent, const char *title);
17 extern void progress_window_set_title (ProgressWindow *pw, const char *title);
18 extern void progress_window_set_text (ProgressWindow *pw, const char *text);
19 extern void progress_window_pack (ProgressWindow *pw, GtkWidget *contents);
20 extern void progress_window_show_error (ProgressWindow *pw, const char *fmt, ...) __attribute__((format(printf,2,3)));
21 extern void progress_window_set_progress (ProgressWindow *pw, float frac);
22 extern void progress_window_set_cancel_cb (ProgressWindow *pw, ProgressWindowCancelFunc func, gpointer data);
25 #endif