Merge lp:~jjed/overlay-scrollbar/hacking-docs into lp:overlay-scrollbar

Proposed by Jjed
Status: Needs review
Proposed branch: lp:~jjed/overlay-scrollbar/hacking-docs
Merge into: lp:overlay-scrollbar
Diff against target: 63 lines (+59/-0)
1 file modified
HACKING (+59/-0)
To merge this branch: bzr merge lp:~jjed/overlay-scrollbar/hacking-docs
Reviewer Review Type Date Requested Status
Ayatana Scrollbar Team Pending
Review via email: mp+89615@code.launchpad.net

Description of the change

This branch includes a HACKING file. I ran into trouble installing a locally-patched version of ayatana scrollbars, so I'm assuming this will be useful.

To post a comment you must log in.

Unmerged revisions

334. By Jacob Edwards

Merge with trunk.

333. By Jacob Edwards

Include a HACKING file with rudimentary build and install instructions.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'HACKING'
--- HACKING 1970-01-01 00:00:00 +0000
+++ HACKING 2012-01-22 22:56:23 +0000
@@ -0,0 +1,59 @@
1This file is aimed at developers running the development release of
2Ubuntu, trying to modify and test changes to liboverlay-scrollbar. The
3names of packages and files are as they were during the 12.04 cycle; if
4this info grows out of date, replace version numbers you see (eg '0.2-0'
5to '0.3-0')
6
7
8Getting the code and dependencies
9---------------------------------
10
11This step is straightforward. Simply branch the launchpad project and use
12apt to fetch dependencies.
13
14 bzr branch lp:ayatana-scrollbar
15 sudo apt-get build-dep overlay-scrollbar
16
17
18Compiling and installing to /usr/local/lib/
19-------------------------------------------
20
21This step is also straightforward.
22
23 ./autogen.sh
24 make
25 sudo make install
26
27
28Linking your system scrollbar library to your local version
29-----------------------------------------------------------
30
31Overlay scrollbars require a patched version of GTK+ (see the 'misc/'
32directory) that loads them from an absolute library path like
33'/usr/lib/liboverlay-scrollbar3-0.2.so.0'. Applications will NOT obey
34your $LD_LIBRARY_PATH. If you are using the current development release
35of Ubuntu, the GTK+ patches should already be applied.
36
37The library '*.so.0" itself is a symlink to your system overlay
38scrollbar shared library. To use the version of overlay scrollbars you
39installed locally, simply redirect the link. Please ensure the original
40link (and the local library you installed) exists.
41
42 sudo ln -s `readlink /usr/lib/liboverlay-scrollbar3-0.2.so.0` /usr/lib/liboverlay-scrollbar3.so.backup
43 sudo ln -sf /usr/local/lib/liboverlay-scrollbar3-0.2.so /usr/lib/liboverlay-scrollbar3-0.2.so.0
44
45To restore your original system scrollbars, simply relink the absolute
46path of your scrollbar library to the target of the 'so.backup' file.
47
48
49Launching an application
50------------------------
51
52GTK+ applications should begin using your local installed scrollbars.
53You can force the issue by launching with
54
55 env LIBOVERLAY_SCROLLBAR=1 <aplication command>
56
57To make sure you are using the local installed scrollbars, you can perform
58an obvious modification to the thumbnail appearance: for example, comment
59out the `draw_arrow` function block in 'os/os-thumb.c'.

Subscribers

People subscribed via source and target branches