mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
gio-tool: Do not print settable arguments unless they are any
"Settable arguments:" is printed even if they are not any arguments to print. Do not print it similarly as it is done for "Writable namespaces:". https://bugzilla.gnome.org/show_bug.cgi?id=776169
This commit is contained in:
parent
bde2bde411
commit
bcb1bfda52
@ -223,15 +223,18 @@ get_writable_info (GFile *file)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
g_print (_("Settable attributes:\n"));
|
||||
for (i = 0; i < list->n_infos; i++)
|
||||
if (list->n_infos > 0)
|
||||
{
|
||||
flags = attribute_flags_to_string (list->infos[i].flags);
|
||||
g_print (" %s (%s%s%s)\n",
|
||||
list->infos[i].name,
|
||||
attribute_type_to_string (list->infos[i].type),
|
||||
(*flags != 0)?", ":"", flags);
|
||||
g_free (flags);
|
||||
g_print (_("Settable attributes:\n"));
|
||||
for (i = 0; i < list->n_infos; i++)
|
||||
{
|
||||
flags = attribute_flags_to_string (list->infos[i].flags);
|
||||
g_print (" %s (%s%s%s)\n",
|
||||
list->infos[i].name,
|
||||
attribute_type_to_string (list->infos[i].type),
|
||||
(*flags != 0)?", ":"", flags);
|
||||
g_free (flags);
|
||||
}
|
||||
}
|
||||
|
||||
g_file_attribute_info_list_unref (list);
|
||||
|
Loading…
Reference in New Issue
Block a user