From 33dd3f654a2c40134da1e2991178c8f35c73f818 Mon Sep 17 00:00:00 2001 From: Jens Granseuer Date: Wed, 20 Jun 2007 20:14:18 +0000 Subject: [PATCH] fix function signatures 2007-06-20 Jens Granseuer * gnome-theme-info.c: (gnome_theme_icon_info_find, gnome_theme_is_writable): * gnome-theme-info.h: fix function signatures svn path=/trunk/; revision=7754 --- capplets/common/ChangeLog | 6 ++++++ capplets/common/gnome-theme-info.c | 10 +++++----- capplets/common/gnome-theme-info.h | 4 ++-- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/capplets/common/ChangeLog b/capplets/common/ChangeLog index 9840e3462..875c68f8d 100644 --- a/capplets/common/ChangeLog +++ b/capplets/common/ChangeLog @@ -1,3 +1,9 @@ +2007-06-20 Jens Granseuer + + * gnome-theme-info.c: (gnome_theme_icon_info_find, + gnome_theme_is_writable): + * gnome-theme-info.h: fix function signatures + 2007-06-18 Jens Granseuer * Makefile.am: remove obsolete files diff --git a/capplets/common/gnome-theme-info.c b/capplets/common/gnome-theme-info.c index 58e9a6ed2..226611cf5 100644 --- a/capplets/common/gnome-theme-info.c +++ b/capplets/common/gnome-theme-info.c @@ -1291,7 +1291,7 @@ gnome_theme_icon_info_free (GnomeThemeIconInfo *icon_theme_info) g_free (icon_theme_info); } -GnomeThemeInfo * +GnomeThemeIconInfo * gnome_theme_icon_info_find (const gchar *icon_theme_name) { g_return_val_if_fail (icon_theme_name != NULL, NULL); @@ -1464,7 +1464,7 @@ gnome_theme_meta_info_compare (GnomeThemeMetaInfo *a, } gboolean -gnome_theme_is_writable (gpointer theme, GnomeThemeType type) { +gnome_theme_is_writable (const gpointer theme, GnomeThemeType type) { GnomeVFSResult vfs_result; GnomeVFSFileInfo *vfs_info; const gchar *theme_path; @@ -1475,13 +1475,13 @@ gnome_theme_is_writable (gpointer theme, GnomeThemeType type) { switch (type) { case GNOME_THEME_TYPE_REGULAR: - theme_path = ((GnomeThemeInfo *) theme)->path; + theme_path = ((const GnomeThemeInfo *) theme)->path; break; case GNOME_THEME_TYPE_ICON: - theme_path = ((GnomeThemeIconInfo *) theme)->path; + theme_path = ((const GnomeThemeIconInfo *) theme)->path; break; case GNOME_THEME_TYPE_METATHEME: - theme_path = ((GnomeThemeMetaInfo *) theme)->path; + theme_path = ((const GnomeThemeMetaInfo *) theme)->path; break; default: g_assert_not_reached (); diff --git a/capplets/common/gnome-theme-info.h b/capplets/common/gnome-theme-info.h index ae995f1dd..f9c3d804f 100644 --- a/capplets/common/gnome-theme-info.h +++ b/capplets/common/gnome-theme-info.h @@ -108,7 +108,7 @@ GnomeThemeInfo *gnome_theme_info_find_by_uri (const gchar * /* Icon Themes */ GnomeThemeIconInfo *gnome_theme_icon_info_new (void); void gnome_theme_icon_info_free (GnomeThemeIconInfo *icon_theme_info); -GnomeThemeInfo *gnome_theme_icon_info_find (const gchar *icon_theme_name); +GnomeThemeIconInfo *gnome_theme_icon_info_find (const gchar *icon_theme_name); GList *gnome_theme_icon_info_find_all (void); gint gnome_theme_icon_info_compare (GnomeThemeIconInfo *a, GnomeThemeIconInfo *b); @@ -129,7 +129,7 @@ GnomeThemeMetaInfo *gnome_theme_read_meta_theme (GnomeVFSURI *meta_th void gnome_theme_init (gboolean *monitor_not_added); void gnome_theme_info_register_theme_change (ThemeChangedCallback func, gpointer data); -gboolean gnome_theme_is_writable (gpointer theme, +gboolean gnome_theme_is_writable (const gpointer theme, GnomeThemeType type); #endif /* GNOME_THEME_INFO_H */