diff options
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/gtkbufferview-int.h | 2 | ||||
-rw-r--r-- | src/gtkext/gtkbufferview.c | 8 | ||||
-rw-r--r-- | src/gtkext/gtkbufferview.h | 2 |
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" |