<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -15,8 +15,11 @@ on_expose_event (GtkWidget      *widget,
   cairo_t *cr;
 
   cr = gdk_cairo_create (widget-&gt;window);
+
+  /* Ideally the widget will provide a context */
   context = g_object_new (GTK_TYPE_STYLE_CONTEXT, NULL);
 
+  /* Set radius for box borders */
   gtk_style_context_set_param_int (context, &quot;radius&quot;, 15);
 
   width = (widget-&gt;allocation.width - 2 * BORDER) / N_COLS;
@@ -27,6 +30,7 @@ on_expose_event (GtkWidget      *widget,
     {
       GtkPlacingContext placing = 0;
 
+      /* Specify where will the row connect with others */
       if (r &gt; 0)
         placing |= GTK_PLACING_CONNECTS_UP;
 
@@ -37,10 +41,12 @@ on_expose_event (GtkWidget      *widget,
 
       for (c = 0; c &lt; N_COLS; c++)
         {
+          /* Save context so we can restore later the previous placing */
           gtk_style_context_save (context);
 
           placing = gtk_style_context_get_placing_context (context);
 
+          /* Specify where will the column connect with others */
           if (c &gt; 0)
             placing |= GTK_PLACING_CONNECTS_LEFT;
 
@@ -55,10 +61,17 @@ on_expose_event (GtkWidget      *widget,
               gtk_style_context_set_color (context, &amp;color);
             }
 
+          /* Paint box, GtkStyleContext will use the placing
+           * info to know which are the rounded corners in
+           * the box group.
+           */
           gtk_depict_box (context, cr, x, y, width, height);
 
           x += width;
 
+          /* Restore context to reset placing to
+           * the previous value and unset color
+           */
           gtk_style_context_restore (context);
         }
 </diff>
      <filename>tests/testtheme.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>53088a326778ae50d5e715592043256501687d84</id>
    </parent>
  </parents>
  <author>
    <name>Carlos Garnacho</name>
    <email>carlosg@gnome.org</email>
  </author>
  <url>http://github.com/garnacho/gtk-roles-and-siblings/commit/afeb3908f366acf565ad2f728df57bf3decc64a2</url>
  <id>afeb3908f366acf565ad2f728df57bf3decc64a2</id>
  <committed-date>2009-02-04T17:44:47-08:00</committed-date>
  <authored-date>2009-02-04T17:44:47-08:00</authored-date>
  <message>Add a few comments to the testcase code.</message>
  <tree>f522713ca1a6193234f08769d229239726377828</tree>
  <committer>
    <name>Carlos Garnacho</name>
    <email>carlosg@gnome.org</email>
  </committer>
</commit>
