summaryrefslogtreecommitdiff
path: root/src/glibext/bufferline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext/bufferline.c')
-rw-r--r--src/glibext/bufferline.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/glibext/bufferline.c b/src/glibext/bufferline.c
index 85fe027..2bdfebc 100644
--- a/src/glibext/bufferline.c
+++ b/src/glibext/bufferline.c
@@ -33,7 +33,6 @@
#include "linecolumn.h"
#include "../common/extstr.h"
#include "../core/paths.h"
-#include "../gtkext/gtkblockdisplay.h"
@@ -70,8 +69,10 @@ struct _GBufferLineClass
{
GObjectClass parent; /* A laisser en premier */
+#ifdef INCLUDE_GTK_SUPPORT
cairo_surface_t *entrypoint_img; /* Image pour les entrées */
cairo_surface_t *bookmark_img; /* Image pour les signets */
+#endif
/* Signaux */
@@ -121,13 +122,17 @@ G_DEFINE_TYPE(GBufferLine, g_buffer_line, G_TYPE_OBJECT);
static void g_buffer_line_class_init(GBufferLineClass *class)
{
GObjectClass *object; /* Autre version de la classe */
+#ifdef INCLUDE_GTK_SUPPORT
gchar *filename; /* Chemin d'accès à utiliser */
+#endif
object = G_OBJECT_CLASS(class);
object->dispose = (GObjectFinalizeFunc/* ! */)g_buffer_line_dispose;
object->finalize = (GObjectFinalizeFunc)g_buffer_line_finalize;
+#ifdef INCLUDE_GTK_SUPPORT
+
filename = find_pixmap_file("entrypoint.png");
assert(filename != NULL);
@@ -142,6 +147,8 @@ static void g_buffer_line_class_init(GBufferLineClass *class)
g_free(filename);
+#endif
+
g_signal_new("content-changed",
G_TYPE_BUFFER_LINE,
G_SIGNAL_RUN_LAST,
@@ -885,6 +892,9 @@ void g_buffer_line_export(GBufferLine *line, buffer_export_context *ctx, BufferE
/* ---------------------------------------------------------------------------------- */
+#ifdef INCLUDE_GTK_SUPPORT
+
+
/******************************************************************************
* *
* Paramètres : line = ligne à venir consulter. *
@@ -1479,3 +1489,6 @@ void g_buffer_line_draw(GBufferLine *line, size_t index, cairo_t *cairo, gint x_
}
}
+
+
+#endif