Applied modified patch from bug 167063 (themus-theme-applier crashes while

2007-01-07  Thomas Wood  <thos@gnome.org>

	* themus-theme-applier.c: (main): Applied modified patch from bug 167063
	(themus-theme-applier crashes while running from command promt)

svn path=/trunk/; revision=7083
This commit is contained in:
Thomas Wood 2007-01-07 15:47:51 +00:00 committed by Thomas Wood
parent 833869ab8d
commit 1e8514a258
2 changed files with 21 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2007-01-07 Thomas Wood <thos@gnome.org>
* themus-theme-applier.c: (main): Applied modified patch from bug 167063
(themus-theme-applier crashes while running from command promt)
2006-07-23 Sebastien Bacher <seb128@debian.org>
* theme-method.directory.in: add encoding key,

View file

@ -35,7 +35,7 @@ int main (int argc, char **argv)
{
GnomeVFSURI *uri;
GnomeThemeMetaInfo *theme;
GnomeProgram *program;
GnomeProgram *program = NULL;
GladeXML *font_xml;
GtkWidget *font_dialog;
GtkWidget *font_sample;
@ -56,12 +56,21 @@ int main (int argc, char **argv)
gnome_theme_init (NULL);
uri = gnome_vfs_uri_new (args[0]);
g_assert (uri != NULL);
if (!uri)
{
g_object_unref (program);
return 1;
}
theme = gnome_theme_read_meta_theme (uri);
gnome_vfs_uri_unref (uri);
g_assert (theme != NULL);
if (!theme)
{
g_object_unref (program);
return 1;
}
if (theme->application_font) {
glade_init ();
@ -95,5 +104,6 @@ int main (int argc, char **argv)
g_object_unref (client);
}
g_free (program);
return 0;
}