diff options
author | Todd T. Fries <todd@fries.net> | 2012-03-24 09:31:08 -0500 |
---|---|---|
committer | Todd T. Fries <todd@fries.net> | 2012-03-24 09:31:08 -0500 |
commit | 5ec1e05aabe2ffa56a431851e853cdd7fc6fd742 (patch) | |
tree | bcafa494ac5a0b68f95a0b677c18ca8f7935b537 | |
parent | 792d657fb71bb9db35eca037316e5c7cc10ea5bd (diff) | |
download | xombrero-5ec1e05aabe2ffa56a431851e853cdd7fc6fd742.tar.gz |
tidy about:webkit output by roughly using C declarations
tidy nesting in about:allthethings, easier on the eyes ok marco@
-rw-r--r-- | about.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/about.c b/about.c index 40ac1f9..c15840e 100644 --- a/about.c +++ b/about.c @@ -1588,7 +1588,8 @@ show_g_object_settings(GObject *o, char *str, int recurse) break; case G_TYPE_BOOLEAN: boolean = g_value_get_boolean(&value); - valstr = g_strdup_printf("%d", boolean); + valstr = g_strdup_printf("%s", + boolean ? "TRUE" : "FALSE"); break; case G_TYPE_FLOAT: fp = g_value_get_float(&value); @@ -1600,18 +1601,19 @@ show_g_object_settings(GObject *o, char *str, int recurse) break; case G_TYPE_STRING: string = g_value_get_string(&value); - valstr = g_strdup_printf("%s", string); + valstr = g_strdup_printf("\"%s\"", + string); break; case G_TYPE_OBJECT: object = g_value_get_object(&value); if (object != NULL) { if (recurse) { - tmpstr = g_strdup_printf("%s %s>", str, - pspec->name); + tmpstr = g_strdup_printf("%s ", + str); tmpsettings = show_g_object_settings( object, tmpstr, recurse); valstr = g_strdup_printf( - "{\n%s%s }\n", + "{\n%s%s }\n", tmpsettings, str); g_free(tmpstr); g_free(tmpsettings); @@ -1623,16 +1625,17 @@ show_g_object_settings(GObject *o, char *str, int recurse) } break; default: - valstr = g_strdup_printf("unhandled type '%s'", + valstr = g_strdup_printf( + "type %s unhandled", tname); } } b = body; body = g_strdup_printf( - "%s%s: %3d: %s type=%s, flags=0x%x, val = %s\n", - body, str, i, pspec->name, tname, - pspec->flags, valstr); + "%s%s: %3d: flags=0x%08x, %-13s %s = %s\n", + body, str, i, pspec->flags, tname, pspec->name, + valstr); g_free(b); g_free(valstr); } |