made "~/" be gnome_util_user_home instead.
1999-06-22 <jrb@redhat.com> * capplets/theme-switcher/lister.c (print_standard_stuff): made "~/" be gnome_util_user_home instead.
This commit is contained in:
parent
6bcf201781
commit
904058be61
3 changed files with 19 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
1999-06-22 <jrb@redhat.com>
|
||||||
|
|
||||||
|
* capplets/theme-switcher/lister.c (print_standard_stuff): made
|
||||||
|
"~/" be gnome_util_user_home instead.
|
||||||
|
|
||||||
1999-06-16 <jrb@redhat.com>
|
1999-06-16 <jrb@redhat.com>
|
||||||
|
|
||||||
* capplets/theme-switcher/demo.c (demo_main): patch from Akira
|
* capplets/theme-switcher/demo.c (demo_main): patch from Akira
|
||||||
|
|
|
@ -5,11 +5,17 @@
|
||||||
static void
|
static void
|
||||||
print_standard_stuff(FILE *fout, gchar *theme, gchar *font)
|
print_standard_stuff(FILE *fout, gchar *theme, gchar *font)
|
||||||
{
|
{
|
||||||
|
gchar *homedir;
|
||||||
|
|
||||||
|
homedir = g_strconcat ("include \"",
|
||||||
|
gnome_util_user_home(),
|
||||||
|
"/.gtkrc.mine\"\n\n", NULL);
|
||||||
fprintf(fout, MARK_STRING);
|
fprintf(fout, MARK_STRING);
|
||||||
fprintf(fout, "include \"%s\"\n\n", theme);
|
fprintf(fout, "include \"%s\"\n\n", theme);
|
||||||
if (font)
|
if (font)
|
||||||
fprintf(fout, "style \"user-font\"\n{\n font=\"%s\"\n}\nwidget_class \"*\" style \"user-font\"\n\n", font);
|
fprintf(fout, "style \"user-font\"\n{\n font=\"%s\"\n}\nwidget_class \"*\" style \"user-font\"\n\n", font);
|
||||||
fprintf(fout, "include \"~/.gtkrc.mine\"\n\n");
|
fprintf(fout, homedir);
|
||||||
|
g_free (homedir);
|
||||||
fprintf(fout, MARK_STRING);
|
fprintf(fout, MARK_STRING);
|
||||||
}
|
}
|
||||||
void
|
void
|
||||||
|
|
|
@ -5,11 +5,17 @@
|
||||||
static void
|
static void
|
||||||
print_standard_stuff(FILE *fout, gchar *theme, gchar *font)
|
print_standard_stuff(FILE *fout, gchar *theme, gchar *font)
|
||||||
{
|
{
|
||||||
|
gchar *homedir;
|
||||||
|
|
||||||
|
homedir = g_strconcat ("include \"",
|
||||||
|
gnome_util_user_home(),
|
||||||
|
"/.gtkrc.mine\"\n\n", NULL);
|
||||||
fprintf(fout, MARK_STRING);
|
fprintf(fout, MARK_STRING);
|
||||||
fprintf(fout, "include \"%s\"\n\n", theme);
|
fprintf(fout, "include \"%s\"\n\n", theme);
|
||||||
if (font)
|
if (font)
|
||||||
fprintf(fout, "style \"user-font\"\n{\n font=\"%s\"\n}\nwidget_class \"*\" style \"user-font\"\n\n", font);
|
fprintf(fout, "style \"user-font\"\n{\n font=\"%s\"\n}\nwidget_class \"*\" style \"user-font\"\n\n", font);
|
||||||
fprintf(fout, "include \"~/.gtkrc.mine\"\n\n");
|
fprintf(fout, homedir);
|
||||||
|
g_free (homedir);
|
||||||
fprintf(fout, MARK_STRING);
|
fprintf(fout, MARK_STRING);
|
||||||
}
|
}
|
||||||
void
|
void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue