basic/glyph-util: rename "special glyph" to just "glyph"
Admittedly, some of our glyphs _are_ special, e.g. "O=" for SPECIAL_GLYPH_TOUCH ;) But we don't need this in the name. The very long names make some invocations very wordy, e.g. special_glyph(SPECIAL_GLYPH_SLIGHTLY_UNHAPPY_SMILEY). Also, I want to add GLYPH_SPACE, which is not special at all.
This commit is contained in:
+10
-10
@@ -259,7 +259,7 @@ static int context_load_installed_instances(Context *c) {
|
||||
|
||||
assert(c);
|
||||
|
||||
log_info("Discovering installed instances%s", special_glyph(SPECIAL_GLYPH_ELLIPSIS));
|
||||
log_info("Discovering installed instances%s", glyph(GLYPH_ELLIPSIS));
|
||||
|
||||
FOREACH_ARRAY(tr, c->transfers, c->n_transfers) {
|
||||
Transfer *t = *tr;
|
||||
@@ -291,7 +291,7 @@ static int context_load_available_instances(Context *c) {
|
||||
|
||||
assert(c);
|
||||
|
||||
log_info("Discovering available instances%s", special_glyph(SPECIAL_GLYPH_ELLIPSIS));
|
||||
log_info("Discovering available instances%s", glyph(GLYPH_ELLIPSIS));
|
||||
|
||||
FOREACH_ARRAY(tr, c->transfers, c->n_transfers) {
|
||||
Transfer *t = *tr;
|
||||
@@ -497,14 +497,14 @@ static int context_discover_update_sets(Context *c) {
|
||||
|
||||
assert(c);
|
||||
|
||||
log_info("Determining installed update sets%s", special_glyph(SPECIAL_GLYPH_ELLIPSIS));
|
||||
log_info("Determining installed update sets%s", glyph(GLYPH_ELLIPSIS));
|
||||
|
||||
r = context_discover_update_sets_by_flag(c, UPDATE_INSTALLED);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (!arg_offline) {
|
||||
log_info("Determining available update sets%s", special_glyph(SPECIAL_GLYPH_ELLIPSIS));
|
||||
log_info("Determining available update sets%s", glyph(GLYPH_ELLIPSIS));
|
||||
|
||||
r = context_discover_update_sets_by_flag(c, UPDATE_AVAILABLE);
|
||||
if (r < 0)
|
||||
@@ -540,9 +540,9 @@ static int context_show_table(Context *c) {
|
||||
TABLE_SET_COLOR, color,
|
||||
TABLE_STRING, us->version,
|
||||
TABLE_SET_COLOR, color,
|
||||
TABLE_STRING, special_glyph_check_mark_space(FLAGS_SET(us->flags, UPDATE_INSTALLED)),
|
||||
TABLE_STRING, glyph_check_mark_space(FLAGS_SET(us->flags, UPDATE_INSTALLED)),
|
||||
TABLE_SET_COLOR, color,
|
||||
TABLE_STRING, special_glyph_check_mark_space(FLAGS_SET(us->flags, UPDATE_AVAILABLE)),
|
||||
TABLE_STRING, glyph_check_mark_space(FLAGS_SET(us->flags, UPDATE_AVAILABLE)),
|
||||
TABLE_SET_COLOR, color,
|
||||
TABLE_STRING, update_set_flags_to_string(us->flags),
|
||||
TABLE_SET_COLOR, color);
|
||||
@@ -847,9 +847,9 @@ static int context_vacuum(
|
||||
assert(c);
|
||||
|
||||
if (space == 0)
|
||||
log_info("Making room%s", special_glyph(SPECIAL_GLYPH_ELLIPSIS));
|
||||
log_info("Making room%s", glyph(GLYPH_ELLIPSIS));
|
||||
else
|
||||
log_info("Making room for %" PRIu64 " updates%s", space, special_glyph(SPECIAL_GLYPH_ELLIPSIS));
|
||||
log_info("Making room for %" PRIu64 " updates%s", space, glyph(GLYPH_ELLIPSIS));
|
||||
|
||||
FOREACH_ARRAY(tr, c->transfers, c->n_transfers) {
|
||||
Transfer *t = *tr;
|
||||
@@ -1083,7 +1083,7 @@ static int context_apply(
|
||||
return r;
|
||||
}
|
||||
|
||||
log_info("%s Successfully installed update '%s'.", special_glyph(SPECIAL_GLYPH_SPARKLES), us->version);
|
||||
log_info("%s Successfully installed update '%s'.", glyph(GLYPH_SPARKLES), us->version);
|
||||
|
||||
if (ret_applied)
|
||||
*ret_applied = us;
|
||||
@@ -1473,7 +1473,7 @@ static int verb_pending_or_reboot(int argc, char **argv, void *userdata) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
log_info("Determining installed update sets%s", special_glyph(SPECIAL_GLYPH_ELLIPSIS));
|
||||
log_info("Determining installed update sets%s", glyph(GLYPH_ELLIPSIS));
|
||||
|
||||
r = context_discover_update_sets_by_flag(context, UPDATE_INSTALLED);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user