Add a small comments

This commit is contained in:
Matthias Clasen 2012-02-03 07:27:10 -05:00
parent 1f7cc92219
commit 43ffb8521d
2 changed files with 5 additions and 0 deletions

View File

@ -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;

View File

@ -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);