summaryrefslogtreecommitdiff
path: root/src/gpm-statistics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpm-statistics.c')
-rw-r--r--src/gpm-statistics.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c
index 795a372..423d4e1 100644
--- a/src/gpm-statistics.c
+++ b/src/gpm-statistics.c
@@ -1575,12 +1575,10 @@ main (int argc, char *argv[])
/* get UI */
builder = gtk_builder_new ();
-
retval = gtk_builder_add_from_file (builder, GPM_DATA "/gpm-statistics.ui", &error);
- if (retval == 0) {
- egg_warning ("failed to load ui: %s", error->message);
- g_error_free (error);
+ if (error) {
+ egg_error ("failed to load ui: %s", error->message);
}
/* add history graph */