]> Pileus Git - ~andy/gtk/commitdiff
[path-bar] Add some comments to explain the async recursion on an I/O callback
authorFederico Mena Quintero <federico@gnome.org>
Mon, 28 Nov 2011 18:03:02 +0000 (12:03 -0600)
committerFederico Mena Quintero <federico@gnome.org>
Tue, 29 Nov 2011 20:17:04 +0000 (14:17 -0600)
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
gtk/gtkpathbar.c

index 35dc8bf249aaa6634b044c4966685328d48071c9..d1afca68f3d398cb587aea139c0e1da9e9f2a6da 100644 (file)
@@ -1824,17 +1824,23 @@ gtk_path_bar_get_info_callback (GCancellable *cancellable,
   if (BUTTON_IS_FAKE_ROOT (button_data))
     file_info->fake_root = file_info->new_buttons;
 
+  /* We have assigned the info for the innermost button, i.e. the deepest directory.
+   * Now, go on to fetch the info for this directory's parent.
+   */
+
   file_info->file = file_info->parent_file;
   file_info->first_directory = FALSE;
 
   if (!file_info->file)
     {
+      /* No parent?  Okay, we are done. */
       gtk_path_bar_set_file_finish (file_info, TRUE);
       return;
     }
 
   file_info->parent_file = g_file_get_parent (file_info->file);
 
+  /* Recurse asynchronously */
   file_info->path_bar->get_info_cancellable =
     _gtk_file_system_get_info (file_info->path_bar->file_system,
                               file_info->file,