diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2010-10-24 12:58:53 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2010-10-24 12:58:53 (GMT) |
commit | 6ab5a66388182e6cb9a49b8d6e54a9348de4f264 (patch) | |
tree | 5dfdd4d9125423226cd44cc6e6c18502f362fbd2 /src/gtkext/gtkbinview-int.h | |
parent | 7e53295ae7e67c8473aca2974e519aa0a593788e (diff) |
Introduced new views for rendering source code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@184 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/gtkbinview-int.h')
-rw-r--r-- | src/gtkext/gtkbinview-int.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/gtkext/gtkbinview-int.h b/src/gtkext/gtkbinview-int.h index ab72a84..51bc786 100644 --- a/src/gtkext/gtkbinview-int.h +++ b/src/gtkext/gtkbinview-int.h @@ -26,6 +26,7 @@ #include "gtkbinview.h" +#include "gtkviewpanel-int.h" #include <stdbool.h> @@ -33,9 +34,6 @@ -/* Réagit à un défilement quelconque. */ -typedef void (* scroll_fc) (GtkBinView *); - /* Définit les lignes à associer à la représentation. */ typedef void (* set_rendering_lines_fc) (GtkBinView *, GRenderingLine *, GRenderingLine *); @@ -48,21 +46,13 @@ typedef bool (* get_addr_coordinates_fc) (const GtkBinView *, vmpa_t, gint *, gi struct _GtkBinView { - GtkFixed parent; /* A laisser en premier */ - - GtkAdjustment *hadjustment; /* Barre de défilement horiz. */ - GtkAdjustment *vadjustment; /* Barre de défilement vert. */ - - GdkGC *gc; /* Contexte graphique du rendu */ - - bool show_border; /* Affichage d'une bordure ? */ + GtkViewPanel parent; /* A laisser en premier */ GOpenidaBinary *binary; /* Contenu binaire affiché */ GRenderingLine *lines; /* Contenu à représenter */ GRenderingLine *last; /* Dernière ligne associée */ - scroll_fc scroll; /* Défilement du contenu */ set_rendering_lines_fc set_lines; /* Association des lignes */ define_main_address_fc define_address; /* Sélection externe d'adresse */ get_addr_coordinates_fc get_coordinates;/* Conversion adresse <-> pos. */ @@ -71,12 +61,10 @@ struct _GtkBinView struct _GtkBinViewClass { - GtkFixedClass parent; /* A laisser en premier */ + GtkViewPanelClass parent; /* A laisser en premier */ /* Signaux */ - void (* set_scroll_adjustments) (GtkBinView *, GtkAdjustment *, GtkAdjustment *); - void (* lines_set) (GtkBinView *); }; |