[gtk+] GtkSymbolicColor: Take const GdkRGBA in new_literal().
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkSymbolicColor: Take const GdkRGBA in new_literal().
- Date: Sat, 4 Dec 2010 15:08:28 +0000 (UTC)
commit af20ba6103d0eae66fc860d6a97af165f2ffd0f2
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Nov 3 11:35:42 2010 +0100
GtkSymbolicColor: Take const GdkRGBA in new_literal().
gtk/gtksymboliccolor.c | 2 +-
gtk/gtksymboliccolor.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtksymboliccolor.c b/gtk/gtksymboliccolor.c
index c37313d..1873d19 100644
--- a/gtk/gtksymboliccolor.c
+++ b/gtk/gtksymboliccolor.c
@@ -94,7 +94,7 @@ struct _GtkGradient
* Since: 3.0
**/
GtkSymbolicColor *
-gtk_symbolic_color_new_literal (GdkRGBA *color)
+gtk_symbolic_color_new_literal (const GdkRGBA *color)
{
GtkSymbolicColor *symbolic_color;
diff --git a/gtk/gtksymboliccolor.h b/gtk/gtksymboliccolor.h
index d52a9d3..fdcb915 100644
--- a/gtk/gtksymboliccolor.h
+++ b/gtk/gtksymboliccolor.h
@@ -34,7 +34,7 @@ typedef struct _GtkGradient GtkGradient;
GType gtk_symbolic_color_get_type (void) G_GNUC_CONST;
GType gtk_gradient_get_type (void) G_GNUC_CONST;
-GtkSymbolicColor * gtk_symbolic_color_new_literal (GdkRGBA *color);
+GtkSymbolicColor * gtk_symbolic_color_new_literal (const GdkRGBA *color);
GtkSymbolicColor * gtk_symbolic_color_new_name (const gchar *name);
GtkSymbolicColor * gtk_symbolic_color_new_shade (GtkSymbolicColor *color,
gdouble factor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]