summaryrefslogtreecommitdiff
path: root/src/analysis/project.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-11-11 21:22:38 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-11-11 21:22:38 (GMT)
commitdb934f20598340772f8c0256c8a8119790a1821e (patch)
treed03e57cc5fc953fc3e7653da74a8c58fd310de5d /src/analysis/project.c
parent2df715e74d6600ed0a5688a43f6ecd873957326a (diff)
Prepared the new organization of display widgets.
Diffstat (limited to 'src/analysis/project.c')
-rw-r--r--src/analysis/project.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/analysis/project.c b/src/analysis/project.c
index 7b4f621..dce55b6 100644
--- a/src/analysis/project.c
+++ b/src/analysis/project.c
@@ -113,7 +113,7 @@ static void g_study_project_hide(const GStudyProject *);
/* Met en place un ensemble de vues pour un binaire. */
-GPanelItem *_setup_new_panel_item_for_binary(GStudyProject *, GLoadedBinary *, BinaryView, GtkViewPanel **);
+GPanelItem *_setup_new_panel_item_for_binary(GStudyProject *, GLoadedBinary *, BinaryView, GtkDisplayPanel **);
@@ -589,7 +589,7 @@ void g_study_project_add_loaded_binary(GLoadedBinary *binary, GStudyProject *pro
void g_study_project_attach_binary(GStudyProject *project, GLoadedBinary *binary)
{
loaded_binary *new; /* Nouveau binaire à présenter */
- GtkViewPanel *view; /* Composant d'affichage */
+ GtkDisplayPanel *display; /* Composant d'affichage */
GPanelItem *panel; /* Nouveau panneau associé */
/* Mise en place */
@@ -627,7 +627,7 @@ void g_study_project_attach_binary(GStudyProject *project, GLoadedBinary *binary
{
range = g_binary_symbol_get_range(symbol);
- gtk_view_panel_request_move(GTK_VIEW_PANEL(widget), get_mrange_addr(range));
+ gtk_display_panel_request_move(GTK_DISPLAY_PANEL(widget), get_mrange_addr(range));
}
@@ -637,11 +637,11 @@ void g_study_project_attach_binary(GStudyProject *project, GLoadedBinary *binary
}
- panel = _setup_new_panel_item_for_binary(project, binary, BVW_BLOCK, &view);
+ panel = _setup_new_panel_item_for_binary(project, binary, BVW_BLOCK, &display);
g_mutex_unlock(&project->bin_mutex);
- g_signal_connect(view, "size-allocate", G_CALLBACK(scroll_for_the_first_time), binary);
+ g_signal_connect(display, "size-allocate", G_CALLBACK(scroll_for_the_first_time), binary);
g_panel_item_dock(panel);
@@ -803,14 +803,14 @@ GLoadedBinary **g_study_project_get_binaries(const GStudyProject *project, size_
* *
******************************************************************************/
-GPanelItem *_setup_new_panel_item_for_binary(GStudyProject *project, GLoadedBinary *binary, BinaryView wanted, GtkViewPanel **panel)
+GPanelItem *_setup_new_panel_item_for_binary(GStudyProject *project, GLoadedBinary *binary, BinaryView wanted, GtkDisplayPanel **panel)
{
GPanelItem *result; /* Nouveau panneau à renvoyer */
size_t k; /* Boucle de parcours #3 */
loaded_binary *handled; /* Dossier de suivi à compléter*/
- GtkViewPanel *views[BVW_COUNT]; /* Composants pour l'affichage */
+ GtkDisplayPanel *displays[BVW_COUNT]; /* Composants pour l'affichage */
BinaryView i; /* Boucle de parcours #1 */
- GtkWidget *view; /* Affichage du binaire */
+ GtkWidget *display; /* Affichage du binaire */
GtkWidget *scroll; /* Surface d'exposition */
GtkWidget *selected; /* Interface de prédilection */
const char *name; /* Titre associé au binaire */
@@ -836,33 +836,33 @@ GPanelItem *_setup_new_panel_item_for_binary(GStudyProject *project, GLoadedBina
switch (i)
{
case BVW_BLOCK:
- view = gtk_block_view_new();
+ display = gtk_block_view_new();
break;
case BVW_GRAPH:
- view = gtk_graph_view_new();
+ display = gtk_graph_view_new();
break;
case BVW_SOURCE:
- view = gtk_source_view_new();
+ display = gtk_source_view_new();
break;
default: /* GCC ! */
break;
}
- gtk_widget_show(view);
+ gtk_widget_show(display);
- views[i] = GTK_VIEW_PANEL(view);
+ displays[i] = GTK_DISPLAY_PANEL(display);
- gtk_view_panel_attach_binary(views[i], binary, i);
+ gtk_display_panel_attach_binary(displays[i], binary, i);
/* Intégration finale dans un support défilant */
scroll = qck_create_scrolled_window(NULL, NULL);
- gtk_container_add(GTK_CONTAINER(scroll), view);
+ gtk_container_add(GTK_CONTAINER(scroll), display);
if (i == wanted)
{
selected = scroll;
- *panel = GTK_VIEW_PANEL(view);
+ *panel = GTK_DISPLAY_PANEL(display);
}
}
@@ -889,13 +889,13 @@ GPanelItem *_setup_new_panel_item_for_binary(GStudyProject *project, GLoadedBina
switch (j)
{
case BVW_BLOCK:
- g_object_set_data(G_OBJECT(views[i]), "block_alt_view", views[j]);
+ g_object_set_data(G_OBJECT(displays[i]), "block_alt_view", displays[j]);
break;
case BVW_GRAPH:
- g_object_set_data(G_OBJECT(views[i]), "graph_alt_view", views[j]);
+ g_object_set_data(G_OBJECT(displays[i]), "graph_alt_view", displays[j]);
break;
case BVW_SOURCE:
- g_object_set_data(G_OBJECT(views[i]), "source_alt_view", views[j]);
+ g_object_set_data(G_OBJECT(displays[i]), "source_alt_view", displays[j]);
break;
default: /* GCC ! */
break;
@@ -923,7 +923,7 @@ GPanelItem *_setup_new_panel_item_for_binary(GStudyProject *project, GLoadedBina
* *
******************************************************************************/
-GPanelItem *setup_new_panel_item_for_binary(GStudyProject *project, GLoadedBinary *binary, BinaryView wanted, GtkViewPanel **panel)
+GPanelItem *setup_new_panel_item_for_binary(GStudyProject *project, GLoadedBinary *binary, BinaryView wanted, GtkDisplayPanel **panel)
{
GPanelItem *result; /* Nouveau panneau à renvoyer */
@@ -955,7 +955,7 @@ GPanelItem *setup_new_panel_item_for_binary(GStudyProject *project, GLoadedBinar
* *
******************************************************************************/
-GtkDockStation *get_dock_station_for_view_panel(GtkViewPanel *panel)
+GtkDockStation *get_dock_station_for_view_panel(GtkDisplayPanel *panel)
{
GtkWidget *result; /* Support trouvé à retourner */
@@ -988,7 +988,7 @@ GtkDockStation *get_dock_station_for_view_panel(GtkViewPanel *panel)
* *
******************************************************************************/
-GtkWidget *get_scroll_window_for_view_panel(GtkViewPanel *panel)
+GtkWidget *get_scroll_window_for_view_panel(GtkDisplayPanel *panel)
{
GtkWidget *result; /* Support trouvé à retourner */
@@ -1021,20 +1021,20 @@ GtkWidget *get_scroll_window_for_view_panel(GtkViewPanel *panel)
* *
******************************************************************************/
-GtkViewPanel *get_alt_view_for_view_panel(GtkViewPanel *panel, BinaryView view)
+GtkDisplayPanel *get_alt_view_for_view_panel(GtkDisplayPanel *panel, BinaryView view)
{
- GtkViewPanel *result; /* Panneau visé à renvoyer */
+ GtkDisplayPanel *result; /* Panneau visé à renvoyer */
switch (view)
{
case BVW_BLOCK:
- result = GTK_VIEW_PANEL(g_object_get_data(G_OBJECT(panel), "block_alt_view"));
+ result = GTK_DISPLAY_PANEL(g_object_get_data(G_OBJECT(panel), "block_alt_view"));
break;
case BVW_GRAPH:
- result = GTK_VIEW_PANEL(g_object_get_data(G_OBJECT(panel), "graph_alt_view"));
+ result = GTK_DISPLAY_PANEL(g_object_get_data(G_OBJECT(panel), "graph_alt_view"));
break;
case BVW_SOURCE:
- result = GTK_VIEW_PANEL(g_object_get_data(G_OBJECT(panel), "source_alt_view"));
+ result = GTK_DISPLAY_PANEL(g_object_get_data(G_OBJECT(panel), "source_alt_view"));
break;
default:
assert(false);