Let GTK handle .gtkrc loading rather than try to do it ourselves (incorrectly). This allows GTK_RC_FILES to just work. Patch from martin.storsjo@pp.qnet.fi. r=pavlov sr=blizzard

This commit is contained in:
dbaron%fas.harvard.edu 2001-07-04 02:12:53 +00:00
Родитель 5c00ae3d05
Коммит bd7f167f6e
1 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -223,9 +223,6 @@ NS_IMETHODIMP nsAppShell::Create(int *bac, char **bav)
sInitialized = PR_TRUE;
gchar *home=nsnull;
gchar *path=nsnull;
int argc = bac ? *bac : 0;
char **argv = bav;
@ -253,15 +250,6 @@ NS_IMETHODIMP nsAppShell::Create(int *bac, char **bav)
HandleColormapPrefs();
gdk_rgb_init();
home = g_get_home_dir();
if ((char*)nsnull != home) {
path = g_strdup_printf("%s%c%s", home, G_DIR_SEPARATOR, ".gtkrc");
if ((char *)nsnull != path) {
gtk_rc_parse(path);
g_free(path);
}
}
return NS_OK;
}