summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-05-01 01:35:26 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-05-01 01:35:26 (GMT)
commitef68a3dd8ff259200ca7f088eecc9ce35e7ffe8f (patch)
treef89cccbe3d0ac421b41cc49a28bee32e8903e45a /src/gtkext
parent89ceb1e27afed0bac789e33c2f10eade01747d88 (diff)
Handled all width measures per view in a dedicated manager.
Diffstat (limited to 'src/gtkext')
-rw-r--r--src/gtkext/gtkbufferview-int.h2
-rw-r--r--src/gtkext/gtkbufferview.c8
-rw-r--r--src/gtkext/gtkbufferview.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/gtkext/gtkbufferview-int.h b/src/gtkext/gtkbufferview-int.h
index ea181f9..2da069d 100644
--- a/src/gtkext/gtkbufferview-int.h
+++ b/src/gtkext/gtkbufferview-int.h
@@ -41,7 +41,7 @@ struct _GtkBufferView
{
GtkViewPanel parent; /* A laisser en premier */
- GCodeBuffer *buffer; /* Code sous forme de texte */
+ //GCodeBuffer *buffer; /* Code sous forme de texte */
GBufferView *buffer_view; /* Affichage de cette forme */
gint line_height; /* Hauteur maximale des lignes */
diff --git a/src/gtkext/gtkbufferview.c b/src/gtkext/gtkbufferview.c
index b56a170..f0efce0 100644
--- a/src/gtkext/gtkbufferview.c
+++ b/src/gtkext/gtkbufferview.c
@@ -892,14 +892,14 @@ void gtk_buffer_view_attach_buffer(GtkBufferView *view, GBufferView *buffer)
gint width; /* Largeur de l'objet actuelle */
gint height; /* Hauteur de l'objet actuelle */
- if (view->buffer != NULL)
+ if (view->buffer_view != NULL)
{
- g_object_unref(G_OBJECT(view->buffer));
+ //g_object_unref(G_OBJECT(view->buffer));
g_object_unref(G_OBJECT(view->buffer_view));
}
- view->buffer = g_buffer_view_get_buffer(buffer);
- g_object_ref(G_OBJECT(view->buffer));
+ //view->buffer = g_buffer_view_get_buffer(buffer);
+ //g_object_ref(G_OBJECT(view->buffer));
view->buffer_view = buffer;
diff --git a/src/gtkext/gtkbufferview.h b/src/gtkext/gtkbufferview.h
index 06249cf..a46a9dd 100644
--- a/src/gtkext/gtkbufferview.h
+++ b/src/gtkext/gtkbufferview.h
@@ -29,7 +29,7 @@
#include <gtk/gtk.h>
-#include "../glibext/gcodebuffer.h"
+#include "../glibext/gbufferview.h"