From 9593501b2e1a25e0e0201276733dc0cbd602ac93 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Mon, 4 Jun 2018 22:34:59 +0200 Subject: Avoided to count errors twice. --- src/gui/panels/errors.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gui/panels/errors.c b/src/gui/panels/errors.c index 87c0a02..a529314 100644 --- a/src/gui/panels/errors.c +++ b/src/gui/panels/errors.c @@ -125,7 +125,7 @@ static void g_error_panel_class_init(GErrorPanelClass *); static void g_error_panel_init(GErrorPanel *); /* Procède à l'initialisation de l'interface de mise à jour. */ -static void g_error_panel_interface_init(GUpdatablePanelInterface *); +static void g_error_panel_updatable_interface_init(GUpdatablePanelInterface *); /* Supprime toutes les références externes. */ static void g_error_panel_dispose(GErrorPanel *); @@ -189,7 +189,7 @@ static void g_error_panel_conclude(GErrorPanel *, unsigned int, error_update_dat /* Indique le type défini pour un panneau d'affichage des erreurs. */ G_DEFINE_TYPE_WITH_CODE(GErrorPanel, g_error_panel, G_TYPE_PANEL_ITEM, - G_IMPLEMENT_INTERFACE(G_TYPE_UPDATABLE_PANEL, g_error_panel_interface_init)); + G_IMPLEMENT_INTERFACE(G_TYPE_UPDATABLE_PANEL, g_error_panel_updatable_interface_init)); /****************************************************************************** @@ -354,7 +354,7 @@ static void g_error_panel_init(GErrorPanel *panel) * * ******************************************************************************/ -static void g_error_panel_interface_init(GUpdatablePanelInterface *iface) +static void g_error_panel_updatable_interface_init(GUpdatablePanelInterface *iface) { iface->setup = (setup_updatable_cb)g_error_panel_setup; iface->get_group = (get_updatable_group_cb)g_panel_item_get_group; @@ -704,8 +704,6 @@ static void update_error_panel(const GErrorPanel *panel, GtkStatusStack *status, ETC_ADDR, &e->addr, -1); - data->count++; - if (state) data->kept++; -- cgit v0.11.2-87-g4458