summaryrefslogtreecommitdiff
path: root/src/glibext/gbinportion.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-09-15 20:30:37 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-09-15 20:30:37 (GMT)
commit74642fbdeefaec21885e5fb6cad432e3e3b47cdb (patch)
tree11c5a34a3cdae86feefe6a35052b0384480fee75 /src/glibext/gbinportion.h
parentce8c1719963657aeaf963650183e46979cab0d68 (diff)
Defined a GTK3 style for binary portions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@404 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
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 *);