summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-06-04 20:34:59 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-06-04 20:34:59 (GMT)
commit9593501b2e1a25e0e0201276733dc0cbd602ac93 (patch)
tree3a7922f0fec03478fe696fdaae2f7fca2d196570 /src
parent1f2b71e31326a5bc021785888cd2203010acf4e6 (diff)
Avoided to count errors twice.
Diffstat (limited to 'src')
-rw-r--r--src/gui/panels/errors.c8
1 files 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++;