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:
parent
833869ab8d
commit
1e8514a258
2 changed files with 21 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -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 ();
|
||||
|
@ -94,6 +103,7 @@ int main (int argc, char **argv)
|
|||
gconf_client_set_string (client, FONT_KEY, theme->application_font, NULL);
|
||||
g_object_unref (client);
|
||||
}
|
||||
|
||||
|
||||
g_free (program);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue