summaryrefslogtreecommitdiff
path: root/src/gui/editem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editem.c')
-rw-r--r--src/gui/editem.c76
1 files changed, 38 insertions, 38 deletions
diff --git a/src/gui/editem.c b/src/gui/editem.c
index 417208e..a2d1210 100644
--- a/src/gui/editem.c
+++ b/src/gui/editem.c
@@ -49,20 +49,20 @@ static void g_editor_item_init(GEditorItem *);
static GEditorItem *_editem_list = NULL;
/* Suivi du panneau d'affichage courant */
-static GtkViewPanel *_current_view = NULL;
+static GtkDisplayPanel *_current_view = NULL;
/* Suivi des changements de position */
static GObject *_caret_instance = NULL;
/* Suit les changements de focus des panneaux d'affichage. */
-static gboolean notify_view_panel_focus_change(GtkViewPanel *, GdkEventFocus *, void *);
+static gboolean notify_view_panel_focus_change(GtkDisplayPanel *, GdkEventFocus *, void *);
/* Lance une procédure de déplacement de la position courante. */
-static void start_moving_to_address_in_view_panel(GtkViewPanel *, const vmpa2t *, void *);
+static void start_moving_to_address_in_view_panel(GtkDisplayPanel *, const vmpa2t *, void *);
/* Suit les changements de position dans du code d'assembleur. */
-static void track_caret_address_on_view_panel(GtkViewPanel *, const vmpa2t *, void *);
+static void track_caret_address_on_view_panel(GtkDisplayPanel *, const vmpa2t *, void *);
@@ -200,7 +200,7 @@ GLoadedBinary *g_editor_item_get_current_binary(const GEditorItem *item)
* *
******************************************************************************/
-GtkViewPanel *g_editor_item_get_current_view(const GEditorItem *item)
+GtkDisplayPanel *g_editor_item_get_current_view(const GEditorItem *item)
{
return _current_view;
@@ -266,9 +266,9 @@ void change_editor_items_current_binary(GObject *ref, GLoadedBinary *binary)
/******************************************************************************
* *
-* Paramètres : vpanel = composant d'affichage concerné par l'opération. *
-* event = informations liées à l'événement. *
-* data = adresse non utilisée ici. *
+* Paramètres : panel = composant d'affichage concerné par l'opération. *
+* event = informations liées à l'événement. *
+* data = adresse non utilisée ici. *
* *
* Description : Suit les changements de focus des panneaux d'affichage. *
* *
@@ -278,7 +278,7 @@ void change_editor_items_current_binary(GObject *ref, GLoadedBinary *binary)
* *
******************************************************************************/
-static gboolean notify_view_panel_focus_change(GtkViewPanel *vpanel, GdkEventFocus *event, void *data)
+static gboolean notify_view_panel_focus_change(GtkDisplayPanel *panel, GdkEventFocus *event, void *data)
{
GEditorItem *iter; /* Boucle de parcours */
GEditorItemClass *klass; /* Classe correspondante */
@@ -288,7 +288,7 @@ static gboolean notify_view_panel_focus_change(GtkViewPanel *vpanel, GdkEventFoc
klass = G_EDITOR_ITEM_GET_CLASS(iter);
if (klass->notify_focus != NULL)
- klass->notify_focus(iter, event->in ? vpanel : NULL);
+ klass->notify_focus(iter, event->in ? panel : NULL);
}
@@ -299,9 +299,9 @@ static gboolean notify_view_panel_focus_change(GtkViewPanel *vpanel, GdkEventFoc
/******************************************************************************
* *
-* Paramètres : vpanel = composant d'affichage parcouru. *
-* addr = adresse de destination du curseur souhaitée. *
-* data = adresse non utilisée ici. *
+* Paramètres : panel = composant d'affichage parcouru. *
+* addr = adresse de destination du curseur souhaitée. *
+* data = adresse non utilisée ici. *
* *
* Description : Lance une procédure de déplacement de la position courante. *
* *
@@ -311,23 +311,23 @@ static gboolean notify_view_panel_focus_change(GtkViewPanel *vpanel, GdkEventFoc
* *
******************************************************************************/
-static void start_moving_to_address_in_view_panel(GtkViewPanel *vpanel, const vmpa2t *addr, void *data)
+static void start_moving_to_address_in_view_panel(GtkDisplayPanel *panel, const vmpa2t *addr, void *data)
{
const vmpa2t *src; /* Position courante de curseur*/
GDbMove *move; /* Déplacement à organiser */
GLoadedBinary *binary; /* Binaire en cours d'étude */
- src = gtk_view_panel_get_caret_location(vpanel);
+ src = gtk_display_panel_get_caret_location(panel);
/* S'il n'y a pas de passif, pas besoin d'historique */
if (src == NULL)
- gtk_view_panel_scroll_to_address(vpanel, addr, SPT_CENTER);
+ gtk_display_panel_scroll_to_address(panel, addr, SPT_CENTER);
else
{
move = g_db_move_new(src, addr);
- binary = gtk_view_panel_get_binary(vpanel);
+ binary = gtk_display_panel_get_binary(panel);
g_loaded_binary_add_to_collection(binary, G_DB_ITEM(move));
}
@@ -337,9 +337,9 @@ static void start_moving_to_address_in_view_panel(GtkViewPanel *vpanel, const vm
/******************************************************************************
* *
-* Paramètres : vpanel = composant d'affichage parcouru. *
-* addr = nouvelle adresse du curseur courant. *
-* data = adresse non utilisée ici. *
+* Paramètres : panel = composant d'affichage parcouru. *
+* addr = nouvelle adresse du curseur courant. *
+* data = adresse non utilisée ici. *
* *
* Description : Suit les changements de position dans du code d'assembleur. *
* *
@@ -349,7 +349,7 @@ static void start_moving_to_address_in_view_panel(GtkViewPanel *vpanel, const vm
* *
******************************************************************************/
-static void track_caret_address_on_view_panel(GtkViewPanel *vpanel, const vmpa2t *addr, void *data)
+static void track_caret_address_on_view_panel(GtkDisplayPanel *panel, const vmpa2t *addr, void *data)
{
GEditorItem *iter; /* Boucle de parcours */
GEditorItemClass *klass; /* Classe correspondante */
@@ -359,7 +359,7 @@ static void track_caret_address_on_view_panel(GtkViewPanel *vpanel, const vmpa2t
klass = G_EDITOR_ITEM_GET_CLASS(iter);
if (klass->track_caret != NULL)
- klass->track_caret(iter, vpanel, addr);
+ klass->track_caret(iter, panel, addr);
}
@@ -368,8 +368,8 @@ static void track_caret_address_on_view_panel(GtkViewPanel *vpanel, const vmpa2t
/******************************************************************************
* *
-* Paramètres : ref = espace de référencement global. *
-* vpanel = nouveau panneau d'affichage actif. *
+* Paramètres : ref = espace de référencement global. *
+* panel = nouveau panneau d'affichage actif. *
* *
* Description : Lance une actualisation du fait d'un changement de vue. *
* *
@@ -379,7 +379,7 @@ static void track_caret_address_on_view_panel(GtkViewPanel *vpanel, const vmpa2t
* *
******************************************************************************/
-void change_editor_items_current_view(GObject *ref, GtkViewPanel *vpanel)
+void change_editor_items_current_view(GObject *ref, GtkDisplayPanel *panel)
{
GEditorItem *iter; /* Boucle de parcours */
GEditorItemClass *klass; /* Classe correspondante */
@@ -392,21 +392,21 @@ void change_editor_items_current_view(GObject *ref, GtkViewPanel *vpanel)
g_signal_handlers_disconnect_by_func(_current_view, G_CALLBACK(notify_view_panel_focus_change), NULL);
}
- _current_view = vpanel;
+ _current_view = panel;
editem_list_for_each(iter, _editem_list)
{
klass = G_EDITOR_ITEM_GET_CLASS(iter);
if (klass->update_view != NULL)
- klass->update_view(iter, vpanel);
+ klass->update_view(iter, panel);
}
- if (vpanel != NULL)
+ if (panel != NULL)
{
- g_signal_connect(vpanel, "focus-in-event", G_CALLBACK(notify_view_panel_focus_change), NULL);
- g_signal_connect(vpanel, "focus-out-event", G_CALLBACK(notify_view_panel_focus_change), NULL);
+ g_signal_connect(panel, "focus-in-event", G_CALLBACK(notify_view_panel_focus_change), NULL);
+ g_signal_connect(panel, "focus-out-event", G_CALLBACK(notify_view_panel_focus_change), NULL);
}
/* Suivi du curseur */
@@ -423,17 +423,17 @@ void change_editor_items_current_view(GObject *ref, GtkViewPanel *vpanel)
_caret_instance = NULL;
}
- if (vpanel != NULL)
+ if (panel != NULL)
{
- g_signal_connect(vpanel, "move-request",
+ g_signal_connect(panel, "move-request",
G_CALLBACK(start_moving_to_address_in_view_panel),
NULL);
- g_signal_connect(vpanel, "caret-moved",
+ g_signal_connect(panel, "caret-moved",
G_CALLBACK(track_caret_address_on_view_panel),
NULL);
- _caret_instance = G_OBJECT(vpanel);
+ _caret_instance = G_OBJECT(panel);
g_object_ref(_caret_instance);
}
@@ -443,8 +443,8 @@ void change_editor_items_current_view(GObject *ref, GtkViewPanel *vpanel)
/******************************************************************************
* *
-* Paramètres : ref = espace de référencement global. *
-* vpanel = nouveau panneau d'affichage actif. *
+* Paramètres : ref = espace de référencement global. *
+* panel = nouveau panneau d'affichage actif. *
* *
* Description : Lance une actualisation du fait d'un changement de contenu. *
* *
@@ -454,7 +454,7 @@ void change_editor_items_current_view(GObject *ref, GtkViewPanel *vpanel)
* *
******************************************************************************/
-void change_editor_items_current_view_content(GtkViewPanel *vpanel)
+void change_editor_items_current_view_content(GtkDisplayPanel *panel)
{
GEditorItem *iter; /* Boucle de parcours */
GEditorItemClass *klass; /* Classe correspondante */
@@ -464,7 +464,7 @@ void change_editor_items_current_view_content(GtkViewPanel *vpanel)
klass = G_EDITOR_ITEM_GET_CLASS(iter);
if (klass->update_content != NULL)
- klass->update_content(iter, vpanel);
+ klass->update_content(iter, panel);
}