diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-09-10 22:02:21 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-09-10 22:02:21 (GMT) |
commit | b370370a9e35f9dd2357102b17338d3d93bb62aa (patch) | |
tree | b8a8c5019a0705a75cf9cf8572c07219bc159076 /src/glibext/linesegment.c | |
parent | 2424c52c4f3bc44ce5f36348442cfa103e0989c2 (diff) |
Tune the compilation using flags instead of a config file.
Diffstat (limited to 'src/glibext/linesegment.c')
-rw-r--r-- | src/glibext/linesegment.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/glibext/linesegment.c b/src/glibext/linesegment.c index ec8cc96..192e030 100644 --- a/src/glibext/linesegment.c +++ b/src/glibext/linesegment.c @@ -35,7 +35,7 @@ #include "../common/extstr.h" #include "../common/fnv1a.h" #include "../core/paths.h" -#ifdef HAVE_GTK_SUPPORT +#ifdef INCLUDE_GTK_SUPPORT # include "../gtkext/rendering.h" #endif @@ -82,7 +82,7 @@ static const char *_segment_names[RTT_COUNT] = { }; -#ifdef HAVE_GTK_SUPPORT +#ifdef INCLUDE_GTK_SUPPORT /* Compléments à Cairo */ @@ -121,7 +121,7 @@ struct _line_segment { gint ref_count; /* Compteur de références */ -#ifdef HAVE_GTK_SUPPORT +#ifdef INCLUDE_GTK_SUPPORT rendering_pattern_t *pattern; /* Propriétés du rendu */ #else RenderingTagType type; /* Type de rendu attendu */ @@ -155,7 +155,7 @@ static void release_shared_segment_content(line_segment *); /* -------------------- GESTION OPTIMALE D'UNE LISTE DE CONTENUS -------------------- */ -#ifdef HAVE_GTK_SUPPORT +#ifdef INCLUDE_GTK_SUPPORT /* Liste identifiant un ensemble de segments */ struct _segcnt_list @@ -180,7 +180,7 @@ bool selection_list_has_segment_content(const segcnt_list *, const line_segment /* ---------------------------------------------------------------------------------- */ -#ifdef HAVE_GTK_SUPPORT +#ifdef INCLUDE_GTK_SUPPORT /****************************************************************************** @@ -330,7 +330,7 @@ static bool is_line_segment_equal(const line_segment *content, const line_segmen { bool result; /* Résultat à retourner */ -#ifdef HAVE_GTK_SUPPORT +#ifdef INCLUDE_GTK_SUPPORT result = (content->pattern == other->pattern); #else result = (content->type == other->type); @@ -477,7 +477,7 @@ line_segment *get_new_line_segment(RenderingTagType type, const char *text, size else content = (line_segment *)malloc(sizeof(line_segment) + length + 1); -#ifdef HAVE_GTK_SUPPORT +#ifdef INCLUDE_GTK_SUPPORT content->pattern = &_seg_params.patterns[type]; #else content->type = type; @@ -552,7 +552,7 @@ RenderingTagType get_line_segment_type(const line_segment *segment) { RenderingTagType result; /* Résultat à renvoyer */ -#ifdef HAVE_GTK_SUPPORT +#ifdef INCLUDE_GTK_SUPPORT result = (RenderingTagType)(segment->pattern - _seg_params.patterns); #else result = segment->type; @@ -578,7 +578,7 @@ RenderingTagType get_line_segment_type(const line_segment *segment) char *get_line_segment_text(const line_segment *segment, bool markup) { -#ifndef HAVE_GTK_SUPPORT +#ifndef INCLUDE_GTK_SUPPORT char *result; /* Description à renvoyer */ @@ -672,7 +672,7 @@ char *get_line_segment_text(const line_segment *segment, bool markup) } -#ifdef HAVE_GTK_SUPPORT +#ifdef INCLUDE_GTK_SUPPORT /****************************************************************************** @@ -1010,7 +1010,7 @@ void export_line_segment(const line_segment *segment, buffer_export_context *ctx /* ---------------------------------------------------------------------------------- */ -#ifdef HAVE_GTK_SUPPORT +#ifdef INCLUDE_GTK_SUPPORT /****************************************************************************** |