summaryrefslogtreecommitdiff
path: root/src/gui/panels/history.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-03-09 12:55:20 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-03-09 12:55:20 (GMT)
commitf8f804cf7ff9a62404b843cf303c762101572784 (patch)
treec35edc5dc8fb5ded9cc8d975d12a1eac2c3e330a /src/gui/panels/history.c
parent235b34006d734d55333a182ffd8bbe7fbf8f54bc (diff)
Reorganized the whole code dealing with dockable panels.
Diffstat (limited to 'src/gui/panels/history.c')
-rw-r--r--src/gui/panels/history.c51
1 files changed, 15 insertions, 36 deletions
diff --git a/src/gui/panels/history.c b/src/gui/panels/history.c
index 4d4be0c..526a775 100644
--- a/src/gui/panels/history.c
+++ b/src/gui/panels/history.c
@@ -166,18 +166,26 @@ static void g_history_panel_init(GHistoryPanel *panel)
GtkWidget *button; /* Bouton de cette même barre */
GtkTreeSelection *select; /* Sélection dans la liste */
+ /* Eléments de base */
+
base = G_EDITOR_ITEM(panel);
+ base->name = PANEL_HISTORY_ID;
+
+ pitem = G_PANEL_ITEM(panel);
+
+ pitem->personality = PIP_SINGLETON;
+ pitem->lname = _("Change history");
+ pitem->path = "eN";
+
+ /* Représentation graphique */
+
base->widget = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8);
gtk_container_set_border_width(GTK_CONTAINER(base->widget), 8);
gtk_widget_show(base->widget);
ref = G_OBJECT(panel);
- pitem = G_PANEL_ITEM(panel);
-
- pitem->personality = PIP_SINGLETON;
-
/* Liste des éléments d'évolution */
scrollwnd = gtk_scrolled_window_new(NULL, NULL);
@@ -293,7 +301,7 @@ static void g_history_panel_finalize(GHistoryPanel *panel)
/******************************************************************************
* *
-* Paramètres : ref = espace de référencement global. *
+* Paramètres : - *
* *
* Description : Crée un panneau d'affichage des symboles. *
* *
@@ -303,15 +311,12 @@ static void g_history_panel_finalize(GHistoryPanel *panel)
* *
******************************************************************************/
-GEditorItem *g_history_panel_new(GObject *ref)
+GPanelItem *g_history_panel_new(void)
{
- GEditorItem *result; /* Structure à retourner */
+ GPanelItem *result; /* Structure à retourner */
result = g_object_new(G_TYPE_HISTORY_PANEL, NULL);
- g_panel_item_init_ext(G_PANEL_ITEM(result), ref, PANEL_HISTORY_ID,
- _("Change history"), G_EDITOR_ITEM(result)->widget, "eN");
-
return result;
}
@@ -319,32 +324,6 @@ GEditorItem *g_history_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_history_panel(GObject *ref)
-{
- GEditorItem *result; /* Elément réactif à renvoyer */
-
- result = g_history_panel_new(ref);
-
- /* Enregistre correctement le tout */
- register_editor_item(result);
-
- return G_PANEL_ITEM(result);
-
-}
-
-
-/******************************************************************************
-* *
* Paramètres : panel = panneau à mettre à jour. *
* binary = nouvelle instance de binaire analysé. *
* *