diff options
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); |