summaryrefslogtreecommitdiff
path: root/src/prefs_display_items.h
diff options
context:
space:
mode:
authorSimeon Simeonov2018-02-26 11:23:00 +0100
committerSimeon Simeonov2018-02-26 11:23:00 +0100
commit0b3cbf57875fd692e4ba0b336fefa4bee1ed00dc (patch)
treeaf916a30553c78ce9d4f2d8658656a175c5b6921 /src/prefs_display_items.h
Initial commit for sylpheed 3.7.0
Diffstat (limited to 'src/prefs_display_items.h')
-rw-r--r--src/prefs_display_items.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/src/prefs_display_items.h b/src/prefs_display_items.h
new file mode 100644
index 0000000..00c0180
--- /dev/null
+++ b/src/prefs_display_items.h
@@ -0,0 +1,87 @@
1/*
2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2007 Hiroyuki Yamamoto
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20#ifndef __PREFS_DISPLAY_ITEMS_H__
21#define __PREFS_DISPLAY_ITEMS_H__
22
23#include <glib.h>
24#include <gtk/gtkwidget.h>
25
26typedef struct _PrefsDisplayItem PrefsDisplayItem;
27typedef struct _PrefsDisplayItemsDialog PrefsDisplayItemsDialog;
28
29#include "stock_pixmap.h"
30
31struct _PrefsDisplayItem
32{
33 gint id;
34 gchar *name;
35 gchar *label;
36 gchar *description;
37 StockPixmap icon;
38 const gchar *stock_id;
39 gboolean allow_multiple;
40 gboolean in_use;
41};
42
43struct _PrefsDisplayItemsDialog
44{
45 GtkWidget *window;
46
47 GtkWidget *label;
48
49 GtkWidget *stock_clist;
50 GtkWidget *shown_clist;
51
52 GtkWidget *add_btn;
53 GtkWidget *remove_btn;
54 GtkWidget *up_btn;
55 GtkWidget *down_btn;
56
57 GtkWidget *default_btn;
58
59 GtkWidget *confirm_area;
60 GtkWidget *ok_btn;
61 GtkWidget *cancel_btn;
62
63 const PrefsDisplayItem *all_items;
64 GList *available_items;
65 const gint *default_visible_ids;
66 GList *visible_items;
67
68 gboolean finished;
69 gboolean cancelled;
70};
71
72PrefsDisplayItemsDialog *prefs_display_items_dialog_create (void);
73
74void prefs_display_items_dialog_set_available
75 (PrefsDisplayItemsDialog *dialog,
76 PrefsDisplayItem *all_items,
77 const gint *ids);
78void prefs_display_items_dialog_set_default_visible
79 (PrefsDisplayItemsDialog *dialog,
80 const gint *ids);
81void prefs_display_items_dialog_set_visible
82 (PrefsDisplayItemsDialog *dialog,
83 const gint *ids);
84
85void prefs_display_items_dialog_destroy (PrefsDisplayItemsDialog *dialog);
86
87#endif /* __PREFS_DISPLAY_ITEMS_H__ */