You are not logged in.
Hello all,
This is my first request, so there might be a few things missing. I read the how-to thread, but I don't know enough (yet) about actually making a PKGBUILD to be able to find out all the dependencies and makedepends.
I would like to know whether it would be possible to port the overlay scrollbars from Ubuntu (Ayatana/Unity) to Arch. In the how-to thread I noticed I had to link you to the launchpad (and possibly the PPA) so here they are:
Overlay scrollbar:
https://launchpad.net/ubuntu/+source/overlay-scrollbar
Ayatana project:
https://launchpad.net/ayatana
PPA:
https://launchpad.net/~ayatana-scrollba … ve/release
So far I have been able to find at least one dependency:
liboverlay-scrollbar-0.1-0
Maybe a patched gtk+2.0 found in the PPA is a dependency as well? Also, the PPA states this:
Testing:
you will also need to set an environment variable before running apps with the overlay scrollbars enabled. For example:
export LIBOVERLAY_SCROLLBAR=1
geditI wouldn't know what the makedepends are, so excuse me for letting those out. I hope this is enough for a first attempt and that this will work out nicely!
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
I got it working, so far without any problems (tested in Thunar and Pidgin).
I compiled the latest liboverlay-scrollbar from https://code.launchpad.net/ayatana-scrollbar - don't really know about any dependencies apart from maybe gnome-common, it compiled fine for me.
Then, so that the library gets loaded, we need to patch gtk2 with '100_overlay_scrollbar_loading.patch', it's found here:
http://bazaar.launchpad.net/~ayatana-sc … ding.patch
I fetched Arch's gtk2 source, added the patch file and -command to the original PKGBUILD and recompiled it.
It works without setting the environment variable for me.
I'm new to the whole packaging too, so my PKGBUILDs are probably far from perfect (just copy-pasted from different sources), but you can find them here:
GTK 2:
liboverlay-scrollbar: AUR | GitHub
GTK 3:
liboverlay-scrollbar3: AUR | GitHub
Metapackage for all:
overlay-scrollbar: AUR | GitHub
EDIT: Updated AUR links.
EDIT2: Removed gtk-overlay-scrollbar packages, current overlay-scrollbar depends on gtk-ubuntu.
Last edited by xConStruct (2011-12-11 20:44:12)
Offline
I'll test this tomorrow and will report back. Thanks in advance!
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Can someone make few screenshots.
Offline
Can someone make few screenshots.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
xConStruct, why don't you upload the PKGBUILDs to the AUR? Would be easier..
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Because my gtk2-PKGBUILD is in no form to be released and I just wanted to gather feedback - and maybe pass the ball to someone else. I'm currently figuring out how to make a correct PKGBUILD for gtk2 and then I may upload them to the AUR, although I'm unsure if I want to maintain them ...
In the long term we should probably try to get it into the Ayatana Project on Archlinux, especially because of the gtk2-ubuntu dependency.
EDIT: Done rewriting, they are now in the AUR - see my first post for links.
Last edited by xConStruct (2011-05-07 13:51:25)
Offline
Very nice, but I think I'm dropping the request since this only works for GTK2 and not (yet) GTK3 - and that is what I will be migrating too.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Great job, but check the "depends" field for "gtk2-overlay-scrollbar"
pango requires cairo (amogst others), so don't include that as a dependency.
Due to the amount of dependencies listed, I'm guessing there are more cases like this.
Cheers!
Offline
I have installed the two packages "liboverlay-scrollbar-bzr" and "gtk2-overlay-scrollbar", and then what? ![]()
Offline
Ooops, should have mentioned it here, too: liboverlay-scrollbar-bzr is out of date. I'm currently keeping liboverlay-scrollbar and liboverlay-scrollbar3 (for GTK3) up-to-date. They should work immediately after restarting your GTK apps.
I'll update my main post with the new links.
Last edited by xConStruct (2011-08-01 19:23:52)
Offline
Awesome job! I'll tell you I really expected an orange bar in the middle of the blueish theme I have, but luckily that was not the case ![]()
Anyway, I think I made it work in my setup with only gtk2-ubuntu and liboverlay-scrollbar. I'm running an XFCE desktop. I first installed gtk2-overlay-scrollbar, then I tried with liboverlay-scrollbar but asked me for gtk2-ubuntu. Then when installing that dependency it told me it was in conflict with gtk2-overlay-scrollbar and I had to remove it... so I did. Finally I tried installing liboverlay-scrollbar again, and success. I have the new scrollbars in many of the widgets, at least.
The only problem is that I'm seeing this grabbing-triangle in the corner of random apps... I don't know if maybe I did something wrong?
Congrats again!
Offline
Yep, gtk-overlay-scrollbar is kind of deprecated since gtk-ubuntu came along. gtk-ubuntu incorporates the overlay-scrollbar patch and a few others. I think the grabbing triangle is caused by another ubuntu patch (my guess: "044_grips.patch").
You can either modify your gtk-ubuntu PKGBUILD to exclude this patch or hide the grip in your gtk-rc: http://www.omgubuntu.co.uk/2011/05/disa … ntu-11-04/
Offline
Cool, hiding the grip in my grk-rc worked ![]()
Thanks again, and good work!
Offline
I seems I'm not able to install gtk2-ubuntu nor gtk3-ubuntu because of conflicts with gtk2 and gtk3:
a resolver dependências...
a procurar por conflitos internos...
:: gtk2-ubuntu e gtk2 estão em conflito. Remover gtk2? [s/N]
erro: detectado conflito entre pacotes sem solução
erro: falhou ao preparar a transação (dependências em conflito)
:: gtk2-ubuntu e gtk2 estão em conflitoMy terminal is in Portuguese but it's understandable I hope.
Last edited by snoxu (2011-12-13 02:39:07)
Offline
That is expected and normal behaviour, because they replace the normal gtk with a custom build to include the patches. Just accept it and it should work without breaking any compatibility.
Offline
Sorry about that you are correct.
I was mistakenly pressing 'Enter' to accept instead of 's'.
Last edited by snoxu (2011-12-13 17:01:37)
Offline
Hope you don't mind the question, but how are the resize grips removed or disabled in gtk3?
Last edited by snoxu (2011-12-13 23:59:32)
Offline
I've installed ubuntu-gtk2 and liboverlay-scrollbar from AUR.
But when I run some GTK2 app, i just get
(gtk-demo:24411): GLib-GIO-ERROR **: Settings schema 'org.gnome.desktop.interface' does not contain a key named 'ubuntu-overlay-scrollbars'What am I doing wrong?
Offline
As the error message says, you need a key called 'ubuntu-overlay-scrollbars' in org.gnome.desktop.interface.
You could create a gsettings-desktop-schemas-ubuntu package with a patch that will solve this.
pkgname=gsettings-desktop-schemas-ubuntu
_pkgname=gsettings-desktop-schemas
pkgver=3.4.2
pkgrel=1
_ubver=3.4.1-0ubuntu1
pkgdesc="Shared GSettings schemas for the desktop"
arch=('any')
url="http://live.gnome.org/"
license=('GPL')
depends=('glib2')
makedepends=('intltool' 'gobject-introspection')
provides=("gsettings-desktop-schemas=$pkgver")
conflicts=('gsettings-desktop-schemas')
install=$_pkgname.install
source=("http://ftp.gnome.org/pub/gnome/sources/$_pkgname/${pkgver%.*}/$_pkgname-$pkgver.tar.xz"
"http://archive.ubuntu.com/ubuntu/pool/main/g/$_pkgname/${_pkgname}_${_ubver}.debian.tar.gz")
sha256sums=('ce0a460128d52710b6842ca663690e38374ac921e2f6c1bdf5d54f46aa6eba4f'
'cde8a54bbc0e33857b184ebae59fe8dca541e8d5da658db692ebe615cdd50d4c')
build() {
cd "$_pkgname-$pkgver"
patch -Np1 -i "$srcdir/debian/patches/ubuntu_overlay-scrollbars.patch"
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-schemas-compile
make ${MAKEFLAGS}
}
package() {
cd "$_pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}gsettings-desktop-schemas.install:
post_install() {
glib-compile-schemas --allow-any-name usr/share/glib-2.0/schemas
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}Offline