[gtk+/wip/colorchooser-v2: 31/40] Add a small comments



commit 9492a4830d448cf2b074229445f17d4081124492
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Feb 3 07:27:10 2012 -0500

    Add a small comments

 gtk/gtkcolorchooserwidget.c |    1 +
 gtk/gtkcoloreditor.c        |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index fbf5756..a299f98 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -93,6 +93,7 @@ button_activate (GtkColorSwatch        *swatch,
 {
   GdkRGBA color;
 
+  /* somewhat random, makes the hairline nicely visible */
   color.red = 0.75;
   color.green = 0.25;
   color.blue = 0.25;
diff --git a/gtk/gtkcoloreditor.c b/gtk/gtkcoloreditor.c
index 3bc7f0a..99e3c53 100644
--- a/gtk/gtkcoloreditor.c
+++ b/gtk/gtkcoloreditor.c
@@ -425,6 +425,10 @@ gtk_color_editor_init (GtkColorEditor *editor)
   gtk_grid_attach (GTK_GRID (grid), editor->priv->h_slider, 0, 1, 1, 1);
   gtk_grid_attach (GTK_GRID (grid), editor->priv->sv_plane, 1, 1, 2, 1);
   gtk_grid_attach (GTK_GRID (grid), editor->priv->a_slider, 1, 2, 2, 1);
+
+  /* This extra alignment is necessary so we have room to the sides
+   * to place the popups as desired
+   */
   alignment = gtk_alignment_new (0.5, 0.5, 0, 0);
   gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 30, 30);
   gtk_container_add (GTK_CONTAINER (editor->priv->overlay), alignment);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]