aboutsummaryrefslogtreecommitdiff
path: root/src/progressdialog.h
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-06-08 09:36:09 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-06-08 09:36:09 +0000
commit7931ec60671f8c66c9bcca030fb510180975765e (patch)
tree7edf1de25689e4cea1232081d924a81819d94d1a /src/progressdialog.h
parent34aaba6028b814cb6e0902e03382c3afcb209251 (diff)
reimplemented progress dialog with GtkTreeView.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@321 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/progressdialog.h')
-rw-r--r--src/progressdialog.h43
1 files changed, 41 insertions, 2 deletions
diff --git a/src/progressdialog.h b/src/progressdialog.h
index 26887a26..33cf9836 100644
--- a/src/progressdialog.h
+++ b/src/progressdialog.h
@@ -22,6 +22,8 @@
#include <glib.h>
#include <gtk/gtkwidget.h>
+#include <gtk/gtkliststore.h>
+#include <gdk/gdkpixbuf.h>
typedef struct _ProgressDialog ProgressDialog;
@@ -31,16 +33,53 @@ struct _ProgressDialog
GtkWidget *label;
GtkWidget *cancel_btn;
GtkWidget *progressbar;
- GtkWidget *clist;
+
+ GtkWidget *treeview;
+ GtkListStore *store;
};
+typedef enum
+{
+ PROG_COL_PIXBUF,
+ PROG_COL_NAME,
+ PROG_COL_STATUS,
+ PROG_COL_POINTER,
+ PROG_N_COLS
+} ProgressColumn;
+
ProgressDialog *progress_dialog_create (void);
+void progress_dialog_destroy (ProgressDialog *progress);
+
void progress_dialog_set_label (ProgressDialog *progress,
gchar *str);
void progress_dialog_set_value (ProgressDialog *progress,
gfloat value);
void progress_dialog_set_percentage (ProgressDialog *progress,
gfloat percentage);
-void progress_dialog_destroy (ProgressDialog *progress);
+
+void progress_dialog_append (ProgressDialog *progress,
+ GdkPixbuf *pixbuf,
+ const gchar *name,
+ const gchar *status,
+ gpointer data);
+void progress_dialog_set_row (ProgressDialog *progress,
+ gint row,
+ GdkPixbuf *pixbuf,
+ const gchar *name,
+ const gchar *status,
+ gpointer data);
+
+void progress_dialog_set_row_pixbuf (ProgressDialog *progress,
+ gint row,
+ GdkPixbuf *pixbuf);
+void progress_dialog_set_row_name (ProgressDialog *progress,
+ gint row,
+ const gchar *name);
+void progress_dialog_set_row_status (ProgressDialog *progress,
+ gint row,
+ const gchar *status);
+
+void progress_dialog_scroll_to_row (ProgressDialog *progress,
+ gint row);
#endif /* __PROGRESS_H__ */