summaryrefslogtreecommitdiff
path: root/src/gtkext/gtksourceview.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-01-14 16:06:42 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-01-14 16:06:42 (GMT)
commit2ad11520c0bfefd68a89689497752983792a96ba (patch)
tree9271a1bd90bd58f49b8a68c41b348639f67fb559 /src/gtkext/gtksourceview.c
parentd90aa93fc202fdf1ba4e4e7e799ce8d7e4632b7f (diff)
Updated calls to take the binary rendering options into account.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@225 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/gtksourceview.c')
-rw-r--r--src/gtkext/gtksourceview.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gtkext/gtksourceview.c b/src/gtkext/gtksourceview.c
index 026c851..2e5ed48 100644
--- a/src/gtkext/gtksourceview.c
+++ b/src/gtkext/gtksourceview.c
@@ -2,7 +2,7 @@
/* OpenIDA - Outil d'analyse de fichiers binaires
* gtksourceview.c - affichage de code source
*
- * Copyright (C) 2010-2011 Cyrille Bagard
+ * Copyright (C) 2010-2012 Cyrille Bagard
*
* This file is part of OpenIDA.
*
@@ -53,7 +53,7 @@ static void gtk_source_view_class_init(GtkSourceViewClass *);
static void gtk_source_view_init(GtkSourceView *);
/* Prend acte de l'association d'un binaire chargé. */
-static void gtk_source_view_attach_binary(GtkSourceView *, GOpenidaBinary *);
+static void gtk_source_view_attach_binary(GtkSourceView *, GOpenidaBinary *, bool *, bool *);
@@ -134,6 +134,8 @@ GtkWidget *gtk_source_view_new(void)
* *
* Paramètres : view = composant GTK à mettre à jour. *
* binary = binaire associé à intégrer. *
+* addr = indique si les positions doivent être affichées. *
+* code = indique si le code binaire doit être affiché. *
* *
* Description : Prend acte de l'association d'un binaire chargé. *
* *
@@ -143,7 +145,7 @@ GtkWidget *gtk_source_view_new(void)
* *
******************************************************************************/
-static void gtk_source_view_attach_binary(GtkSourceView *view, GOpenidaBinary *binary)
+static void gtk_source_view_attach_binary(GtkSourceView *view, GOpenidaBinary *binary, bool *addr, bool *code)
{
GCodeBuffer *buffer; /* Tampon par défaut */
@@ -152,6 +154,6 @@ static void gtk_source_view_attach_binary(GtkSourceView *view, GOpenidaBinary *b
/* FIXME */
if (buffer != NULL)
- gtk_buffer_view_attach_buffer(GTK_BUFFER_VIEW(view), buffer);
+ gtk_buffer_view_attach_buffer(GTK_BUFFER_VIEW(view), buffer, addr, code);
}