You are not logged in.

#1 2011-04-28 20:04:12

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

[REQUEST] Ubuntu's overlay scrollbars

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
gedit

I 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

#2 2011-05-06 18:47:42

xConStruct
Member
From: Germany
Registered: 2010-12-29
Posts: 20
Website

Re: [REQUEST] Ubuntu's overlay scrollbars

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

#3 2011-05-06 22:32:47

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: [REQUEST] Ubuntu's overlay scrollbars

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

#4 2011-05-07 09:44:03

ly19x
Member
Registered: 2011-05-07
Posts: 1

Re: [REQUEST] Ubuntu's overlay scrollbars

Can someone make few screenshots.

Offline

#5 2011-05-07 10:44:38

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: [REQUEST] Ubuntu's overlay scrollbars

ly19x wrote:

Can someone make few screenshots.

Here:
http://www.webupd8.org/2011/03/unity-to … lbars.html


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

#6 2011-05-07 10:46:59

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: [REQUEST] Ubuntu's overlay scrollbars

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

#7 2011-05-07 12:20:20

xConStruct
Member
From: Germany
Registered: 2010-12-29
Posts: 20
Website

Re: [REQUEST] Ubuntu's overlay scrollbars

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

#8 2011-05-07 17:16:08

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: [REQUEST] Ubuntu's overlay scrollbars

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

#9 2011-05-10 16:59:24

hobarrera
Member
From: The Netherlands
Registered: 2011-04-12
Posts: 356
Website

Re: [REQUEST] Ubuntu's overlay scrollbars

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

#10 2011-08-01 18:32:36

Hund
Member
From: Sweden
Registered: 2010-03-22
Posts: 479
Website

Re: [REQUEST] Ubuntu's overlay scrollbars

I have installed the two packages "liboverlay-scrollbar-bzr" and "gtk2-overlay-scrollbar", and then what? smile

Offline

#11 2011-08-01 19:23:23

xConStruct
Member
From: Germany
Registered: 2010-12-29
Posts: 20
Website

Re: [REQUEST] Ubuntu's overlay scrollbars

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

#12 2011-12-11 19:28:42

brAzzi64
Member
From: Montevideo, Uruguay
Registered: 2011-12-08
Posts: 18
Website

Re: [REQUEST] Ubuntu's overlay scrollbars

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 smile

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?

screenshot-12112011-112520am.php

Congrats again!

Offline

#13 2011-12-11 20:40:12

xConStruct
Member
From: Germany
Registered: 2010-12-29
Posts: 20
Website

Re: [REQUEST] Ubuntu's overlay scrollbars

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

#14 2011-12-11 20:51:36

brAzzi64
Member
From: Montevideo, Uruguay
Registered: 2011-12-08
Posts: 18
Website

Re: [REQUEST] Ubuntu's overlay scrollbars

Cool, hiding the grip in my grk-rc worked smile

Thanks again, and good work!

Offline

#15 2011-12-13 02:32:36

snoxu
Member
Registered: 2010-01-24
Posts: 141

Re: [REQUEST] Ubuntu's overlay scrollbars

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 conflito

My terminal is in Portuguese but it's understandable I hope.

Last edited by snoxu (2011-12-13 02:39:07)

Offline

#16 2011-12-13 13:16:16

xConStruct
Member
From: Germany
Registered: 2010-12-29
Posts: 20
Website

Re: [REQUEST] Ubuntu's overlay scrollbars

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

#17 2011-12-13 16:04:47

snoxu
Member
Registered: 2010-01-24
Posts: 141

Re: [REQUEST] Ubuntu's overlay scrollbars

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

#18 2011-12-13 23:18:06

snoxu
Member
Registered: 2010-01-24
Posts: 141

Re: [REQUEST] Ubuntu's overlay scrollbars

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

#19 2012-07-01 11:55:47

mokasin
Member
Registered: 2009-07-30
Posts: 35

Re: [REQUEST] Ubuntu's overlay scrollbars

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

#20 2012-07-25 10:53:10

lemanski6
Member
Registered: 2011-05-02
Posts: 15

Re: [REQUEST] Ubuntu's overlay scrollbars

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

Board footer

Powered by FluxBB