summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkviewpanel.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-01-16 01:29:18 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-01-16 01:29:18 (GMT)
commitd487ea54850c85ea22df22af3b21b57d9ad0fd2f (patch)
treee84eefa64d8845cb97ca98c95cc9acf713ccfcf8 /src/gtkext/gtkviewpanel.c
parent725304423eccf57b8e829542670b5abe7b00eeb4 (diff)
Updated menus on view change.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@227 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/gtkviewpanel.c')
-rw-r--r--src/gtkext/gtkviewpanel.c89
1 files changed, 89 insertions, 0 deletions
diff --git a/src/gtkext/gtkviewpanel.c b/src/gtkext/gtkviewpanel.c
index 7ffeccc..9ccf209 100644
--- a/src/gtkext/gtkviewpanel.c
+++ b/src/gtkext/gtkviewpanel.c
@@ -339,6 +339,9 @@ void gtk_view_panel_attach_binary(GtkViewPanel *panel, GOpenidaBinary *binary, b
g_object_ref(G_OBJECT(binary));
panel->binary = binary;
+ panel->display_addr = addr;
+ panel->display_code = code;
+
panel->attach(panel, binary, addr, code);
}
@@ -348,6 +351,92 @@ void gtk_view_panel_attach_binary(GtkViewPanel *panel, GOpenidaBinary *binary, b
* *
* Paramètres : panel = composant GTK à consulter. *
* *
+* Description : Indique si les adresses doivent apparaître dans le rendu. *
+* *
+* Retour : Consigne d'affichage. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+bool gtk_view_panel_get_addresses_display(const GtkViewPanel *panel)
+{
+ return *panel->display_addr;
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : panel = composant GTK à consulter. *
+* state = nouvel état à prendre en compte. *
+* *
+* Description : Définit si les adresses doivent apparaître dans le rendu. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+void gtk_view_panel_set_addresses_display(const GtkViewPanel *panel, bool state)
+{
+ if (*panel->display_addr != state)
+ {
+ *panel->display_addr = state;
+ gtk_widget_queue_draw(GTK_WIDGET(panel));
+ }
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : panel = composant GTK à consulter. *
+* *
+* Description : Indique si le code doit apparaître dans le rendu. *
+* *
+* Retour : Consigne d'affichage. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+bool gtk_view_panel_get_code_display(const GtkViewPanel *panel)
+{
+ return *panel->display_code;
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : panel = composant GTK à consulter. *
+* state = nouvel état à prendre en compte. *
+* *
+* Description : Définit si le code doit apparaître dans le rendu. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+void gtk_view_panel_set_code_display(const GtkViewPanel *panel, bool state)
+{
+ if (*panel->display_code != state)
+ {
+ *panel->display_code = state;
+ gtk_widget_queue_draw(GTK_WIDGET(panel));
+ }
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : panel = composant GTK à consulter. *
+* *
* Description : Fournit le binaire associé à la représentation. *
* *
* Retour : Représentation de contenu binaire. *