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

Subscribers

People subscribed via source and target branches