summaryrefslogtreecommitdiff
path: root/src/gui/panels/welcome.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-08-27 09:47:29 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-08-27 10:07:59 (GMT)
commitacd37cbf8578686d2e5bae64b6b4eb6d2bc5376b (patch)
treec3ec34400c422ccd3e0f122ae6c0ec7ea67e37de /src/gui/panels/welcome.c
parent8ca477e012b11a19363542d171b8e973d637641c (diff)
Deleted the reference to the main window in all panels.
Diffstat (limited to 'src/gui/panels/welcome.c')
-rw-r--r--src/gui/panels/welcome.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/panels/welcome.c b/src/gui/panels/welcome.c
index 44ff517..8ae1667 100644
--- a/src/gui/panels/welcome.c
+++ b/src/gui/panels/welcome.c
@@ -37,6 +37,7 @@
#include "panel-int.h"
+#include "../core/global.h"
#include "../../analysis/project.h"
#include "../../common/cpp.h"
#include "../../common/io.h"
@@ -468,7 +469,7 @@ static void on_new_binary_clicked(GtkButton *button, GWelcomePanel *panel)
GObject *ref; /* Espace de référencements */
GtkMenuItem *item; /* Elément de menu simulé */
- ref = g_editor_item_get_global_ref(G_EDITOR_ITEM(panel));
+ ref = G_OBJECT(get_editor_window());//g_editor_item_get_global_ref(G_EDITOR_ITEM(panel));
item = GTK_MENU_ITEM(g_object_get_data(ref, "mnu_project_add_binary"));
@@ -594,7 +595,6 @@ static void on_row_activated_for_projects(GtkTreeView *treeview, GtkTreePath *pa
GtkTreeIter iter; /* Point de la consultation */
gboolean valid; /* Validité de l'entrée */
gchar *filename; /* Chemin d'accès au projet */
- GObject *ref; /* Espace de référencements */
GStudyProject *project; /* Nouveau projet à ouvrir */
model = gtk_tree_view_get_model(treeview);
@@ -605,9 +605,7 @@ static void on_row_activated_for_projects(GtkTreeView *treeview, GtkTreePath *pa
if (valid)
{
- ref = g_editor_item_get_global_ref(G_EDITOR_ITEM(panel));
-
- project = g_study_project_open(ref, filename);
+ project = g_study_project_open(filename);
if (project != NULL)
{