[gnumeric] GUI: Attempt to disable Ubuntu scroll bars.



commit 55bda81508f1d44618652a17407e8f2d9706d61d
Author: Morten Welinder <terra gnome org>
Date:   Thu Mar 27 10:13:25 2014 -0400

    GUI: Attempt to disable Ubuntu scroll bars.
    
    Ubuntu scroll bars don't work, so disable them.

 ChangeLog              |    5 +++++
 NEWS                   |    1 +
 src/main-application.c |    8 ++++++++
 3 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0c889c5..3384278 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-27  Morten Welinder  <terra gnome org>
+
+       * src/main-application.c (main): Attempt to banish ubuntu's
+       overlay scrollbar which don't work.
+
 2014-03-21  Morten Welinder  <terra gnome org>
 
        * src/style-conditions.c (gnm_style_cond_eval): Make "Contains..."
diff --git a/NEWS b/NEWS
index c7219eb..1ba9ae2 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ Morten:
        * Fix xls export of rich text.
        * Fix problems with large, circular farms of VLOOKUP etc. [#723894]
        * Let goffice handle conditional number formats.
+       * Attempt a workaround for Ubuntu scroll bars.
 
 --------------------------------------------------------------------------
 Gnumeric 1.12.13
diff --git a/src/main-application.c b/src/main-application.c
index 0352069..54c3f04 100644
--- a/src/main-application.c
+++ b/src/main-application.c
@@ -265,6 +265,14 @@ 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 now replace
+                * an existing setting, so you can run with =1 if you like.
+                */
+               g_setenv ("LIBOVERLAY_SCROLLBAR", "0", FALSE);
+
                gnm_session_init (argv[0]);
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]