summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/project.c16
-rw-r--r--src/analysis/project.h4
2 files changed, 7 insertions, 13 deletions
diff --git a/src/analysis/project.c b/src/analysis/project.c
index 9377247..9a10985 100644
--- a/src/analysis/project.c
+++ b/src/analysis/project.c
@@ -76,8 +76,6 @@ struct _GStudyProject
{
GObject parent; /* A laisser en premier */
- GObject *ref; /* Espace de référencement */
-
char *filename; /* Lieu d'enregistrement */
loaded_content *contents; /* Contenus binaires chargés */
@@ -181,15 +179,12 @@ static void g_study_project_init(GStudyProject *project)
* *
******************************************************************************/
-GStudyProject *g_study_project_new(GObject *ref)
+GStudyProject *g_study_project_new(void)
{
GStudyProject *result; /* Composant à retourner */
result = g_object_new(G_TYPE_STUDY_PROJECT, NULL);
- g_object_ref(ref);
- result->ref = ref;
-
return result;
}
@@ -197,8 +192,7 @@ GStudyProject *g_study_project_new(GObject *ref)
/******************************************************************************
* *
-* Paramètres : ref = espace de référencements global. *
-* filename = chemin d'accès au fichier à charger. *
+* Paramètres : filename = chemin d'accès au fichier à charger. *
* *
* Description : Crée un projet à partir du contenu XML d'un fichier. *
* *
@@ -208,7 +202,7 @@ GStudyProject *g_study_project_new(GObject *ref)
* *
******************************************************************************/
-GStudyProject *g_study_project_open(GObject *ref, const char *filename)
+GStudyProject *g_study_project_open(const char *filename)
{
GStudyProject *result; /* Adresse à retourner */
xmlDocPtr xdoc; /* Structure XML chargée */
@@ -228,7 +222,7 @@ GStudyProject *g_study_project_open(GObject *ref, const char *filename)
if (!open_xml_file(filename, &xdoc, &context)) return NULL;
- result = g_study_project_new(ref);
+ result = g_study_project_new();
result->filename = strdup(filename);
@@ -866,7 +860,7 @@ GPanelItem *_setup_new_panel_item_for_binary(GStudyProject *project, GLoadedBina
lname = g_loaded_binary_get_name(binary, true);
result = g_panel_item_new(PIP_BINARY_VIEW, name, lname, selected, true, "N");
- register_panel_item(result, project->ref, get_main_configuration());
+ register_panel_item(result, get_main_configuration());
handled->items = (GPanelItem **)realloc(handled->items, ++handled->count * sizeof(GPanelItem *));
handled->items[handled->count - 1] = result;
diff --git a/src/analysis/project.h b/src/analysis/project.h
index bf399fa..7ae3c03 100644
--- a/src/analysis/project.h
+++ b/src/analysis/project.h
@@ -68,10 +68,10 @@ typedef struct _GStudyProjectClass GStudyProjectClass;
GType g_study_project_get_type(void);
/* Crée un nouveau projet vierge. */
-GStudyProject *g_study_project_new(GObject *);
+GStudyProject *g_study_project_new(void);
/* Crée un projet à partir du contenu XML d'un fichier. */
-GStudyProject *g_study_project_open(GObject *, const char *);
+GStudyProject *g_study_project_open(const char *);
/* Procède à l'enregistrement d'un projet donné. */
bool g_study_project_save(GStudyProject *, const char *);