summaryrefslogtreecommitdiff
path: root/src/glibext/gbinportion.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext/gbinportion.h')
-rw-r--r--src/glibext/gbinportion.h41
1 files changed, 9 insertions, 32 deletions
diff --git a/src/glibext/gbinportion.h b/src/glibext/gbinportion.h
index c10d54d..fd1336b 100644
--- a/src/glibext/gbinportion.h
+++ b/src/glibext/gbinportion.h
@@ -35,38 +35,15 @@
-/* --------------------------- COULEURS DE REPRESENTATION --------------------------- */
-
-
-/* Converion code -> identifiant unique */
-typedef fnv64_t bp_color_t;
-
-/* Identifiant non valide */
-#define BP_NO_COLOR 0
-
-/* Identifiant pour la transparence */
-#define BP_INHERIT_COLOR 1
-
-
-#define BPC_RAW "raw"
-#define BPC_CODE "code"
-#define BPC_DATA "data"
-#define BPC_DATA_RO "data-ro"
-#define BPC_DISASS_ERROR "disassembly-error"
-
-
-/* Enregistre une couleur pour le dessin de portions. */
-bool register_binary_portion_color(const char *, uint8_t, uint8_t, uint8_t, uint8_t);
-
-/* Supprime une couleur pour le dessin de portions. */
-void unregister_binary_portion_color(const char *);
-
-/* Enregistre les couleurs de base pour le dessin des portions. */
-void init_binary_portion_colors(void);
-
-/* Supprime les couleurs de base pour le dessin des portions. */
-void exit_binary_portion_colors(void);
+/**
+ * Couleurs de représentation.
+ */
+#define BPC_RAW "binportion-raw"
+#define BPC_CODE "binportion-code"
+#define BPC_DATA "binportion-data"
+#define BPC_DATA_RO "binportion-data-ro"
+#define BPC_DISASS_ERROR "binportion-disassembly-error"
#define G_TYPE_BIN_PORTION (g_binary_portion_get_type())
@@ -135,7 +112,7 @@ bool g_binary_portion_get_pos_from_addr(GBinPortion *, vmpa_t, const GdkRectangl
gboolean g_binary_portion_query_tooltip(GBinPortion *, gint, gint, const GdkRectangle *, GtkTooltip *);
/* Représente la portion sur une bande dédiée. */
-void g_binary_portion_draw(GBinPortion *, cairo_t *, const GdkRectangle *);
+void g_binary_portion_draw(GBinPortion *, GtkStyleContext *, cairo_t *, const GdkRectangle *);