diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-08-26 22:15:05 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-08-26 22:15:05 (GMT) |
commit | 8ca477e012b11a19363542d171b8e973d637641c (patch) | |
tree | 94a4fcde1779f031946eff7a36075f41a17cd73b /src/gui/panels/errors.c | |
parent | 4fb2ac107092671fe27fc3ebf9fc86dff7c3ec19 (diff) |
Removed most of the functions using the editor items as global access to active items.
Diffstat (limited to 'src/gui/panels/errors.c')
-rw-r--r-- | src/gui/panels/errors.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/panels/errors.c b/src/gui/panels/errors.c index 842f0ec..67965b5 100644 --- a/src/gui/panels/errors.c +++ b/src/gui/panels/errors.c @@ -34,6 +34,7 @@ #include "panel-int.h" +#include "../core/global.h" #include "../../core/global.h" #include "../../format/format.h" #include "../../gtkext/support.h" @@ -140,7 +141,7 @@ static void filter_error_panel(GErrorPanel *, GtkStatusStack *, activity_id_t); static void update_error_panel_summary(GPanelUpdate *, GErrorPanel *); /* Réagit au changement de sélection des portions. */ -static void on_error_selection_changed(GtkTreeSelection *, GErrorPanel *); +static void on_error_selection_changed(GtkTreeSelection *, gpointer); @@ -925,7 +926,7 @@ static void update_error_panel_summary(GPanelUpdate *update, GErrorPanel *panel) /****************************************************************************** * * * Paramètres : selection = sélection modifiée. * -* panel = structure contenant les informations maîtresses. * +* unused = adresse non utilisée ici. * * * * Description : Réagit au changement de sélection des portions. * * * @@ -935,7 +936,7 @@ static void update_error_panel_summary(GPanelUpdate *update, GErrorPanel *panel) * * ******************************************************************************/ -static void on_error_selection_changed(GtkTreeSelection *selection, GErrorPanel *panel) +static void on_error_selection_changed(GtkTreeSelection *selection, gpointer unused) { GtkTreeIter iter; /* Point de sélection */ GtkTreeModel *model; /* Modèle de gestion */ @@ -946,8 +947,9 @@ static void on_error_selection_changed(GtkTreeSelection *selection, GErrorPanel { gtk_tree_model_get(model, &iter, ETC_ADDR, &addr, -1); - display = g_editor_item_get_current_view(G_EDITOR_ITEM(panel)); + display = get_current_view(); gtk_display_panel_request_move(display, addr); + g_object_unref(G_OBJECT(display)); delete_vmpa(addr); |