aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-09-01 07:07:25 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-09-01 07:07:25 +0000
commitd305261737eb9d6917e4d9bab0390b771ca6f992 (patch)
treeeaec0beb145e75dc56d236659852ce2af39fb4a6
parentc7f311faa65a86d9751d536cb0ea6f755133471c (diff)
separated some enums to reduce dependency.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@535 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog9
-rw-r--r--ChangeLog.ja9
-rw-r--r--src/Makefile.am1
-rw-r--r--src/mainwindow.h9
-rw-r--r--src/passphrase.c2
-rw-r--r--src/prefs_account.c3
-rw-r--r--src/prefs_common.c7
-rw-r--r--src/prefs_common.h5
-rw-r--r--src/summaryview.h25
9 files changed, 24 insertions, 46 deletions
diff --git a/ChangeLog b/ChangeLog
index c8867466..15eaea17 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2005-09-01
+ * src/prefs_account.c
+ src/prefs_common.c: removed unused headers.
+ * src/enums.h
+ src/prefs_common.h
+ src/summaryview.h
+ src/mainwindow.h: separated some enums to reduce dependency.
+
+2005-09-01
+
* src/customheader.[ch]
src/prefs_customheader.[ch]
src/prefs_account.c: moved customheader read/write config function
diff --git a/ChangeLog.ja b/ChangeLog.ja
index d1fc1f9b..42b1a7d3 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,14 @@
2005-09-01
+ * src/prefs_account.c
+ src/prefs_common.c: 未使用のヘッダを削除。
+ * src/enums.h
+ src/prefs_common.h
+ src/summaryview.h
+ src/mainwindow.h: 依存関係を減らすためいくつかの enum を分離。
+
+2005-09-01
+
* src/customheader.[ch]
src/prefs_customheader.[ch]
src/prefs_account.c: カスタムヘッダ設定の読み書き関数を
diff --git a/src/Makefile.am b/src/Makefile.am
index f2b78da6..9be8d52b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,6 +4,7 @@ bin_PROGRAMS = sylpheed
sylpheed_SOURCES = \
defs.h \
+ enums.h \
version.h \
main.c main.h \
mainwindow.c mainwindow.h \
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 01f9c552..3184ca8b 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -27,6 +27,7 @@
typedef struct _MainWindow MainWindow;
+#include "enums.h"
#include "folderview.h"
#include "summaryview.h"
#include "headerview.h"
@@ -42,14 +43,6 @@ typedef enum
SEPARATE_BOTH = (SEPARATE_FOLDER | SEPARATE_MESSAGE)
} SeparateType;
-typedef enum
-{
- TOOLBAR_NONE = 0,
- TOOLBAR_ICON = 1,
- TOOLBAR_TEXT = 2,
- TOOLBAR_BOTH = 3
-} ToolbarStyle;
-
struct _MainWindow
{
SeparateType type;
diff --git a/src/passphrase.c b/src/passphrase.c
index c567046f..d4f50489 100644
--- a/src/passphrase.c
+++ b/src/passphrase.c
@@ -41,6 +41,7 @@
#include <gtk/gtkbutton.h>
#include <gtk/gtkfilesel.h>
#include <gtk/gtksignal.h>
+#include <gtk/gtkstock.h>
#include <string.h>
#include <sys/types.h>
#include <sys/mman.h>
@@ -49,6 +50,7 @@
#include "prefs_common.h"
#include "manage_window.h"
#include "utils.h"
+#include "gtkutils.h"
static gboolean grab_all = FALSE;
diff --git a/src/prefs_account.c b/src/prefs_account.c
index 9f80a811..b6d15fba 100644
--- a/src/prefs_account.c
+++ b/src/prefs_account.c
@@ -26,11 +26,8 @@
#include <glib.h>
#include <glib/gi18n.h>
#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
-#include <ctype.h>
#include "prefs.h"
#include "prefs_account.h"
diff --git a/src/prefs_common.c b/src/prefs_common.c
index 85589377..3557cdb3 100644
--- a/src/prefs_common.c
+++ b/src/prefs_common.c
@@ -26,11 +26,6 @@
#include <glib.h>
#include <glib/gi18n.h>
#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include <errno.h>
#include "main.h"
@@ -39,8 +34,6 @@
#include "filter.h"
#include "codeconv.h"
#include "utils.h"
-#include "folder.h"
-#include "socket.h"
PrefsCommon prefs_common;
diff --git a/src/prefs_common.h b/src/prefs_common.h
index 9a42ac3f..afc5f1d0 100644
--- a/src/prefs_common.h
+++ b/src/prefs_common.h
@@ -28,11 +28,8 @@
typedef struct _PrefsCommon PrefsCommon;
+#include "enums.h"
#include "prefs.h"
-#include "mainwindow.h"
-#include "summaryview.h"
-//#include "codeconv.h"
-//#include "textview.h"
typedef enum {
RECV_DIALOG_ALWAYS,
diff --git a/src/summaryview.h b/src/summaryview.h
index d644be56..20737671 100644
--- a/src/summaryview.h
+++ b/src/summaryview.h
@@ -31,6 +31,7 @@
typedef struct _SummaryView SummaryView;
typedef struct _SummaryColumnState SummaryColumnState;
+#include "enums.h"
#include "mainwindow.h"
#include "folderview.h"
#include "headerview.h"
@@ -41,30 +42,6 @@ typedef struct _SummaryColumnState SummaryColumnState;
typedef enum
{
- S_COL_MARK,
- S_COL_UNREAD,
- S_COL_MIME,
- S_COL_SUBJECT,
- S_COL_FROM,
- S_COL_DATE,
- S_COL_SIZE,
- S_COL_NUMBER,
-
- S_COL_MSG_INFO,
-
- S_COL_LABEL,
- S_COL_TO,
-
- S_COL_FOREGROUND,
- S_COL_BOLD,
-
- N_SUMMARY_COLS
-} SummaryColumnType;
-
-#define N_SUMMARY_VISIBLE_COLS S_COL_MSG_INFO
-
-typedef enum
-{
SUMMARY_NONE,
SUMMARY_SELECTED_NONE,
SUMMARY_SELECTED_SINGLE,