Commit 707fe35e authored by Morten Welinder's avatar Morten Welinder

GUI: Adjust Ubuntu hack.

Modules get triggered by parsing gtk+ options, so we need to set the
environment variable earlier.
parent 2b046435
2014-03-28 Morten Welinder <terra@gnome.org>
* src/main-application.c (main): Move Ubuntu hack earlier.
2014-03-27 Morten Welinder <terra@gnome.org>
* src/main-application.c (main): Attempt to banish ubuntu's
......
......@@ -238,6 +238,14 @@ main (int argc, char const **argv)
/* No code before here, we need to init threads */
argv = gnm_pre_parse_init (argc, argv);
/*
* Attempt to disable Ubuntu's funky, non-working scroll
* bars. This needs to be done before gtk starts loading
* modules. Note: the following call will not replace
* an existing setting, so you can run with =1 if you like.
*/
g_setenv ("LIBOVERLAY_SCROLLBAR", "0", FALSE);
#ifdef G_OS_WIN32
has_console = FALSE;
{
......@@ -265,14 +273,6 @@ main (int argc, char const **argv)
with_gui = !func_def_file && !func_state_file && !split_funcdocs;
if (with_gui) {
/*
* Attempt to disable Ubuntu's funky, non-working scroll
* bars. This needs to be done before gtk starts loading
* modules. Note: the following call will not replace
* an existing setting, so you can run with =1 if you like.
*/
g_setenv ("LIBOVERLAY_SCROLLBAR", "0", FALSE);
gnm_session_init (argv[0]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment