summaryrefslogtreecommitdiff
path: root/src/gui/panels/symbols.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/panels/symbols.c')
-rw-r--r--src/gui/panels/symbols.c51
1 files changed, 15 insertions, 36 deletions
diff --git a/src/gui/panels/symbols.c b/src/gui/panels/symbols.c
index eebfc4c..1b7453b 100644
--- a/src/gui/panels/symbols.c
+++ b/src/gui/panels/symbols.c
@@ -249,18 +249,26 @@ static void g_symbols_panel_init(GSymbolsPanel *panel)
GtkTreeViewColumn *column; /* Colonne de la liste */
GtkTreeSelection *select; /* Sélection dans la liste */
+ /* Eléments de base */
+
base = G_EDITOR_ITEM(panel);
+ base->name = PANEL_SYMBOLS_ID;
+
+ pitem = G_PANEL_ITEM(panel);
+
+ pitem->personality = PIP_SINGLETON;
+ pitem->lname = _("Binary symbols");
+ pitem->path = "eN";
+
+ /* Représentation graphique */
+
base->widget = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8);
gtk_widget_show(base->widget);
ref = G_OBJECT(base->widget);
g_object_set_data(ref, "panel", panel);
- pitem = G_PANEL_ITEM(panel);
-
- pitem->personality = PIP_SINGLETON;
-
/* Barre d'outils supérieure */
box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8);
@@ -429,7 +437,7 @@ static void g_symbols_panel_finalize(GSymbolsPanel *panel)
/******************************************************************************
* *
-* Paramètres : ref = espace de référencement global. *
+* Paramètres : - *
* *
* Description : Crée un panneau d'affichage des symboles. *
* *
@@ -439,15 +447,12 @@ static void g_symbols_panel_finalize(GSymbolsPanel *panel)
* *
******************************************************************************/
-GEditorItem *g_symbols_panel_new(GObject *ref)
+GPanelItem *g_symbols_panel_new(void)
{
- GEditorItem *result; /* Structure à retourner */
+ GPanelItem *result; /* Structure à retourner */
result = g_object_new(G_TYPE_SYMBOLS_PANEL, NULL);
- g_panel_item_init_ext(G_PANEL_ITEM(result), ref, PANEL_SYMBOLS_ID,
- _("Binary symbols"), G_EDITOR_ITEM(result)->widget, "eN");
-
return result;
}
@@ -455,32 +460,6 @@ GEditorItem *g_symbols_panel_new(GObject *ref)
/******************************************************************************
* *
-* Paramètres : ref = espace de référencement global. *
-* *
-* Description : Construit et intègre un panneau d'affichage des symboles. *
-* *
-* Retour : Adresse du panneau mis en place. *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-GPanelItem *create_symbols_panel(GObject *ref)
-{
- GEditorItem *result; /* Elément réactif à renvoyer */
-
- result = g_symbols_panel_new(ref);
-
- /* Enregistre correctement le tout */
- register_editor_item(result);
-
- return G_PANEL_ITEM(result);
-
-}
-
-
-/******************************************************************************
-* *
* Paramètres : button = bouton de la barre activé. *
* panel = structure contenant les informations maîtresses. *
* *