]> Pileus Git - ~andy/gtk/commitdiff
Update docstring to match pango_color_parse, do not reference XParseColor
authorBjörn Lindqvist <bjourne@gmail.com>
Sat, 24 May 2008 16:51:38 +0000 (16:51 +0000)
committerBjörn Lindqvist <bjornl@src.gnome.org>
Sat, 24 May 2008 16:51:38 +0000 (16:51 +0000)
2008-05-24  Björn Lindqvist  <bjourne@gmail.com>

* gdk/gdkcolor.c (gdk_color_parse): Update docstring to match
pango_color_parse, do not reference XParseColor forms (#434991).

svn path=/trunk/; revision=20135

ChangeLog
gdk/gdkcolor.c

index d6a73c31660ac667061f14b136124f49fbd035d6..52f81222ff1c4f9dddc66468bcafda6fc5ee9d46 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-24  Björn Lindqvist  <bjourne@gmail.com>
+
+       * gdk/gdkcolor.c (gdk_color_parse): Update docstring to match
+       pango_color_parse, do not reference XParseColor forms (#434991).
+
 2008-05-24  James Sharpe <jsharpe@gnome.org>
 
        * gdk/gdk.symbols: Remove duplicate
index 4c3d88ebe6a8dcd5b50bb0269fa697c63029a2fd..6a513a3e2861358b904aee3b2311b04ca4e46d45 100644 (file)
@@ -316,17 +316,18 @@ gdk_color_get_type (void)
  * @spec: the string specifying the color.
  * @color: the #GdkColor to fill in
  * 
- * Parses a textual specification of a color and fill in
- * the <structfield>red</structfield>,
- * <structfield>green</structfield>, and 
- * <structfield>blue</structfield> fields of a 
- * #GdkColor structure. The color is <emphasis>not</emphasis> 
- * allocated, you must call gdk_colormap_alloc_color() yourself.
- * The text string can be in any of the forms accepted
- * by <function>XParseColor</function>; these include
- * name for a color from <filename>rgb.txt</filename>, such as
- * <literal>DarkSlateGray</literal>, or a hex specification
- * such as <literal>&num;3050b2</literal> or <literal>&num;35b</literal>.
+ * Parses a textual specification of a color and fill in the
+ * <structfield>red</structfield>, <structfield>green</structfield>,
+ * and <structfield>blue</structfield> fields of a #GdkColor
+ * structure. The color is <emphasis>not</emphasis> allocated, you
+ * must call gdk_colormap_alloc_color() yourself. The string can
+ * either one of a large set of standard names. (Taken from the X11
+ * <filename>rgb.txt</filename> file), or it can be a hex value in the
+ * form '&num;rgb' '&num;rrggbb' '&num;rrrgggbbb' or
+ * '&num;rrrrggggbbbb' where 'r', 'g' and 'b' are hex digits of the
+ * red, green, and blue components of the color, respectively. (White
+ * in the four forms is '&num;fff' '&num;ffffff' '&num;fffffffff' and
+ * '&num;ffffffffffff')
  * 
  * Return value: %TRUE if the parsing succeeded.
  **/