Make gdk_rgba_to_string() take a const GdkRGBA

https://bugzilla.gnome.org/show_bug.cgi?id=633216
This commit is contained in:
Christian Persch 2010-10-29 21:16:52 -04:00 committed by Matthias Clasen
parent 630b2c58b4
commit edec3e12dd
2 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ gdk_rgba_equal (gconstpointer p1,
* Returns: A newly allocated text string
**/
gchar *
gdk_rgba_to_string (GdkRGBA *rgba)
gdk_rgba_to_string (const GdkRGBA *rgba)
{
gchar red[G_ASCII_DTOSTR_BUF_SIZE];
gchar green[G_ASCII_DTOSTR_BUF_SIZE];

View File

@ -55,7 +55,7 @@ guint gdk_rgba_hash (gconstpointer p);
gboolean gdk_rgba_equal (gconstpointer p1,
gconstpointer p2);
gchar * gdk_rgba_to_string (GdkRGBA *rgba);
gchar * gdk_rgba_to_string (const GdkRGBA *rgba);
GType gdk_rgba_get_type (void) G_GNUC_CONST;