fix function signatures

2007-06-20  Jens Granseuer  <jensgr@gmx.net>

	* 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
This commit is contained in:
Jens Granseuer 2007-06-20 20:14:18 +00:00 committed by Jens Granseuer
parent 89d4dc18ff
commit 33dd3f654a
3 changed files with 13 additions and 7 deletions

View file

@ -1,3 +1,9 @@
2007-06-20 Jens Granseuer <jensgr@gmx.net>
* 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 <jensgr@gmx.net>
* Makefile.am: remove obsolete files

View file

@ -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 ();

View file

@ -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 */