summaryrefslogtreecommitdiff
path: root/src/gtkext/bufferview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkext/bufferview.h')
-rw-r--r--src/gtkext/bufferview.h38
1 files changed, 18 insertions, 20 deletions
diff --git a/src/gtkext/bufferview.h b/src/gtkext/bufferview.h
index 8f2d63c..1bdfc80 100644
--- a/src/gtkext/bufferview.h
+++ b/src/gtkext/bufferview.h
@@ -1,8 +1,8 @@
/* Chrysalide - Outil d'analyse de fichiers binaires
- * gtkbufferdisplay.h - prototypes pour l'affichage de tampons de lignes
+ * bufferview.h - prototypes pour l'affichage de tampons de lignes
*
- * Copyright (C) 2016-2019 Cyrille Bagard
+ * Copyright (C) 2016-2024 Cyrille Bagard
*
* This file is part of Chrysalide.
*
@@ -21,41 +21,36 @@
*/
-#ifndef _GTKEXT_GTKBUFFER_DISPLAY_H
-#define _GTKEXT_GTKBUFFER_DISPLAY_H
+#ifndef _GTKEXT_BUFFERVIEW_H
+#define _GTKEXT_BUFFERVIEW_H
-#include <glib-object.h>
#include <gtk/gtk.h>
#include "../glibext/bufferview.h"
+#include "../glibext/helpers.h"
-#define GTK_TYPE_BUFFER_DISPLAY (gtk_buffer_display_get_type())
-#define GTK_BUFFER_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_BUFFER_DISPLAY, GtkBufferDisplay))
-#define GTK_BUFFER_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_BUFFER_DISPLAY, GtkBufferDisplayClass))
-#define GTK_IS_BUFFER_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_BUFFER_DISPLAY))
-#define GTK_IS_BUFFER_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_BUFFER_DISPLAY))
-#define GTK_BUFFER_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_BUFFER_VIEW, GtkBufferDisplayClass))
+#define GTK_TYPE_BUFFER_VIEW (gtk_buffer_view_get_type())
+DECLARE_GTYPE(GtkBufferView, gtk_buffer_view, GTK, BUFFER_VIEW);
-/* Composant d'affichage de tampon de lignes (instance) */
-typedef struct _GtkBufferDisplay GtkBufferDisplay;
-/* Composant d'affichage de tampon de lignes (classe) */
-typedef struct _GtkBufferDisplayClass GtkBufferDisplayClass;
+
+/* Fournit la vue associée au tampon de lignes courant. */
+GBufferView *gtk_buffer_view_get_view(const GtkBufferView *);
+
-/* Détermine le type du composant d'affichage de tampon de lignes. */
-GType gtk_buffer_display_get_type(void);
-/* Fournit la vue associée au tampon de lignes courant. */
-GBufferView *gtk_buffer_display_get_view(const GtkBufferDisplay *);
+
+#if 0
+
/* ------------------------------ ANIMATION DU CURSEUR ------------------------------ */
@@ -73,6 +68,9 @@ bool gtk_buffer_display_move_caret_to(GtkBufferDisplay *, bool, gint *);
/* Ajoute une nouvelle barre d'outils pour bloc au composant. */
void gtk_buffer_display_add_block_bar(GtkBufferDisplay *);
+#endif
+
+
-#endif /* _GTKEXT_GTKBUFFER_DISPLAY_H */
+#endif /* _GTKEXT_BUFFERVIEW_H */