fix error code when GTK engine is missing, and fix the function signature
2008-05-06 Jens Granseuer <jensgr@gmx.net> * gnome-theme-info.c: (gnome_theme_meta_info_validate): fix error code when GTK engine is missing, and fix the function signature svn path=/trunk/; revision=8693
This commit is contained in:
parent
3c71eb6319
commit
15fbcb3bde
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-05-06 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* gnome-theme-info.c: (gnome_theme_meta_info_validate): fix error
|
||||
code when GTK engine is missing, and fix the function signature
|
||||
|
||||
2008-05-06 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* Makefile.am:
|
||||
|
|
|
@ -1561,12 +1561,12 @@ gnome_theme_meta_info_free (GnomeThemeMetaInfo *meta_theme_info)
|
|||
}
|
||||
|
||||
gboolean
|
||||
gnome_theme_meta_info_validate (GnomeThemeMetaInfo *info, GError **error)
|
||||
gnome_theme_meta_info_validate (const GnomeThemeMetaInfo *info, GError **error)
|
||||
{
|
||||
GnomeThemeInfo *theme;
|
||||
gchar *gtkrc;
|
||||
|
||||
g_assert (error == NULL || *error == NULL);
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
|
||||
|
||||
theme = gnome_theme_info_find (info->gtk_theme_name);
|
||||
if (!theme || !theme->has_gtk) {
|
||||
|
@ -1609,7 +1609,7 @@ gnome_theme_meta_info_validate (GnomeThemeMetaInfo *info, GError **error)
|
|||
g_free (full);
|
||||
|
||||
if (!found) {
|
||||
g_set_error (error, GNOME_THEME_ERROR, GNOME_THEME_ERROR_GTK_THEME_NOT_AVAILABLE,
|
||||
g_set_error (error, GNOME_THEME_ERROR, GNOME_THEME_ERROR_GTK_ENGINE_NOT_AVAILABLE,
|
||||
_("This theme will not look as intended because the required GTK+ theme engine '%s' is not installed."),
|
||||
(gchar *) l->data);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue