[gtk+/picture: 15/17] icontheme: constify arguments to gtk_icon_theme_load_symbolic()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/picture: 15/17] icontheme: constify arguments to gtk_icon_theme_load_symbolic()
- Date: Thu, 10 Feb 2011 13:56:43 +0000 (UTC)
commit af82424d98b04259d7f2acfaab30e07dc5d3bf69
Author: Benjamin Otte <otte redhat com>
Date: Thu Feb 10 13:58:07 2011 +0100
icontheme: constify arguments to gtk_icon_theme_load_symbolic()
gtk/gtkicontheme.c | 16 ++++++++--------
gtk/gtkicontheme.h | 8 ++++----
2 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 1cd27cd..c799776 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -3055,7 +3055,7 @@ gdk_color_to_css (GdkColor *color)
}
static gchar *
-gdk_rgba_to_css (GdkRGBA *color)
+gdk_rgba_to_css (const GdkRGBA *color)
{
/* drop alpha for now, since librsvg does not understand rgba() */
return g_strdup_printf ("rgb(%d,%d,%d)",
@@ -3177,13 +3177,13 @@ _gtk_icon_info_load_symbolic_internal (GtkIconInfo *icon_info,
* Since: 3.0
**/
GdkPixbuf *
-gtk_icon_info_load_symbolic (GtkIconInfo *icon_info,
- GdkRGBA *fg,
- GdkRGBA *success_color,
- GdkRGBA *warning_color,
- GdkRGBA *error_color,
- gboolean *was_symbolic,
- GError **error)
+gtk_icon_info_load_symbolic (GtkIconInfo *icon_info,
+ const GdkRGBA *fg,
+ const GdkRGBA *success_color,
+ const GdkRGBA *warning_color,
+ const GdkRGBA *error_color,
+ gboolean *was_symbolic,
+ GError **error)
{
GdkPixbuf *pixbuf;
gchar *css_fg;
diff --git a/gtk/gtkicontheme.h b/gtk/gtkicontheme.h
index c8fe166..607bdf0 100644
--- a/gtk/gtkicontheme.h
+++ b/gtk/gtkicontheme.h
@@ -179,10 +179,10 @@ GdkPixbuf * gtk_icon_info_get_builtin_pixbuf (GtkIconInfo *icon_info
GdkPixbuf * gtk_icon_info_load_icon (GtkIconInfo *icon_info,
GError **error);
GdkPixbuf * gtk_icon_info_load_symbolic (GtkIconInfo *icon_info,
- GdkRGBA *fg,
- GdkRGBA *success_color,
- GdkRGBA *warning_color,
- GdkRGBA *error_color,
+ const GdkRGBA *fg,
+ const GdkRGBA *success_color,
+ const GdkRGBA *warning_color,
+ const GdkRGBA *error_color,
gboolean *was_symbolic,
GError **error);
GdkPixbuf * gtk_icon_info_load_symbolic_for_context (GtkIconInfo *icon_info,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]