diff options
Diffstat (limited to 'src/analysis/db/items/move.c')
-rw-r--r-- | src/analysis/db/items/move.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/analysis/db/items/move.c b/src/analysis/db/items/move.c index f70de6f..e4f503b 100644 --- a/src/analysis/db/items/move.c +++ b/src/analysis/db/items/move.c @@ -35,9 +35,13 @@ #include "../collection-int.h" #include "../item-int.h" -#include "../../../gui/core/global.h" +#ifdef INCLUDE_GTK_SUPPORT +# include "../../../gui/core/global.h" +#endif #include "../../../glibext/gbinarycursor.h" -#include "../../../glibext/gloadedpanel.h" +#ifdef INCLUDE_GTK_SUPPORT +# include "../../../glibext/gloadedpanel.h" +#endif @@ -78,10 +82,10 @@ static void g_db_move_finalize(GDbMove *); static gint g_db_move_cmp(const GDbMove *, const GDbMove *); /* Importe la définition d'un déplacement depuis un flux réseau. */ -static bool g_db_move_unpack(GDbMove *, packed_buffer *); +static bool g_db_move_unpack(GDbMove *, packed_buffer_t *); /* Exporte la définition d'un déplacement dans un flux réseau. */ -static bool g_db_move_pack(const GDbMove *, packed_buffer *); +static bool g_db_move_pack(const GDbMove *, packed_buffer_t *); /* Construit la description humaine d'un déplacement. */ static char *g_db_move_build_label(GDbMove *); @@ -314,7 +318,7 @@ static gint g_db_move_cmp(const GDbMove *a, const GDbMove *b) * * ******************************************************************************/ -static bool g_db_move_unpack(GDbMove *move, packed_buffer *pbuf) +static bool g_db_move_unpack(GDbMove *move, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ @@ -347,7 +351,7 @@ static bool g_db_move_unpack(GDbMove *move, packed_buffer *pbuf) * * ******************************************************************************/ -static bool g_db_move_pack(const GDbMove *move, packed_buffer *pbuf) +static bool g_db_move_pack(const GDbMove *move, packed_buffer_t *pbuf) { bool result; /* Bilan à retourner */ @@ -410,6 +414,8 @@ static char *g_db_move_build_label(GDbMove *move) static bool g_db_move_run(const GDbMove *move, GLineCursor *cursor) { +#ifdef INCLUDE_GTK_SUPPORT + GLoadedPanel *panel; /* Afficheur effectif de code */ typedef struct _move_params @@ -465,6 +471,8 @@ static bool g_db_move_run(const GDbMove *move, GLineCursor *cursor) if (panel != NULL) g_object_unref(G_OBJECT(panel)); +#endif + return true; } |