improve output when enumerating actions using --verbose
authorDavid Zeuthen <davidz@redhat.com>
Mon, 12 Jan 2009 16:35:03 +0000 (11:35 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 12 Jan 2009 16:35:03 +0000 (11:35 -0500)
src/programs/polkit.c

index 126488b..17449cf 100644 (file)
@@ -203,19 +203,19 @@ print_action (PolkitActionDescription *action)
   vendor_url = polkit_action_description_get_vendor_url (action);
   icon = polkit_action_description_get_icon (action);
 
-  g_print ("action_id:       %s\n", polkit_action_description_get_action_id (action));
-  g_print ("description:     %s\n", polkit_action_description_get_description (action));
-  g_print ("message:         %s\n", polkit_action_description_get_message (action));
+  g_print ("%s:\n", polkit_action_description_get_action_id (action));
+  g_print ("  description: %s\n", polkit_action_description_get_description (action));
+  g_print ("  message:     %s\n", polkit_action_description_get_message (action));
   if (vendor != NULL)
-    g_print ("vendor:          %s\n", vendor);
+    g_print ("  vendor:      %s\n", vendor);
   if (vendor_url != NULL)
-    g_print ("vendor_url:      %s\n", vendor_url);
+    g_print ("  vendor_url:  %s\n", vendor_url);
 
   if (icon != NULL)
     {
       gchar *s;
       s = g_icon_to_string (icon);
-      g_print ("icon:            %s\n", s);
+      g_print ("  icon:        %s\n", s);
       g_free (s);
     }
 
@@ -227,7 +227,7 @@ print_action (PolkitActionDescription *action)
 
       key = annotation_keys[n];
       value = polkit_action_description_get_annotation (action, key);
-      g_print ("annotation:      %s -> %s\n", key, value);
+      g_print ("  annotation:  %s -> %s\n", key, value);
     }
 }