зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5c00ae3d05
Коммит
bd7f167f6e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче