View previous topic :: View next topic |
Author |
Message |
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Sat Dec 03, 2005 2:33 pm Post subject: gtk-engines, cairo and glitz cvs-ebuilds |
|
|
I wrote this to get the new animated clearlooks-cairo engine. It's live cvs-ebuild so use it at your own risk.
It also includes animated slider patch by SchAmane. If you don't want it, or ebuild fails on patching (if something changes in cvs-code that breaks it) just comment the epatch line from the ebuild.
overlay (just unpack in your portdir_overlay):
gtk-engines_cvs.tar.bz2
separate files:
gtk-engines-9999.ebuild
clearlooks_slider-0.3.patch
I have also made cvs-ebuilds for cairo and glitz.
Lots of bugs are fixed in cvs and they do drawing much faster.
overlay:
cairo_glitz_cvs.tar.bz2
separate files:
cairo-9999.ebuild
glitz-9999.ebuild
If you have existing clearlooks-engine based theme you'd like to animate, edit the theme's gtkrc like this: Code: | engine "clearlooks"
{
animation = TRUE
} | Check the default clearlooks theme (/usr/share/themes/Clearlooks/gtk-2.0/gtkrc) for details and this page for more info.
have fun :)
Last edited by pussi on Sat Dec 17, 2005 2:02 pm; edited 10 times in total |
|
Back to top |
|
|
SchAmane Tux's lil' helper
Joined: 11 Sep 2004 Posts: 107
|
Posted: Sun Dec 04, 2005 1:28 am Post subject: |
|
|
Hi, thanks for linking me.
I was already thinking about making ebuild for cvs clearlooks too =)
Nice job.
I think i can give you patch for slider. Tabs animation is little bit dirty, it cause repainting of whole notesbook only for one tab animation.
And. Yes, you need 2 more ebuilds. Glitz-cvs and Cairo-cvs. Actual cvs versions fix a lot of bugs, and do drawing a lot faster. |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Mon Dec 05, 2005 12:48 am Post subject: |
|
|
SchAmane wrote: | Hi, thanks for linking me.
I was already thinking about making ebuild for cvs clearlooks too =)
Nice job.
I think i can give you patch for slider. Tabs animation is little bit dirty, it cause repainting of whole notesbook only for one tab animation. :cry: | Cool, thanks :) I actually knew that about tab-animations but it could still be nice to try it.
SchAmane wrote: | And. Yes, you need 2 more ebuilds. Glitz-cvs and Cairo-cvs. Actual cvs versions fix a lot of bugs, and do drawing a lot faster. |
Btw, does the sample videos run on correct speed because animations look much slower on my computer that in those videos, or is it just that much faster with cvs-cairo? |
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Mon Dec 05, 2005 1:22 am Post subject: |
|
|
I cannot find the cairo and glitz ebuilds anywhere. If you have them would you mind posting them? |
|
Back to top |
|
|
SchAmane Tux's lil' helper
Joined: 11 Sep 2004 Posts: 107
|
Posted: Mon Dec 05, 2005 1:28 am Post subject: |
|
|
pussi wrote: | Btw, does the sample videos run on correct speed because animations look much slower on my computer that in those videos, or is it just that much faster with cvs-cairo? |
There is something wrong with gst-launch and way how it captures. There is little bit speedup in movies, but not realy much. |
|
Back to top |
|
|
sn4ip3r Guru
Joined: 14 Dec 2002 Posts: 325 Location: Tallinn, Estonia
|
Posted: Tue Dec 06, 2005 7:56 am Post subject: |
|
|
Why is glitz needed, does clearlooks-cairo really use opengl through cairo? |
|
Back to top |
|
|
SchAmane Tux's lil' helper
Joined: 11 Sep 2004 Posts: 107
|
Posted: Wed Dec 07, 2005 1:02 pm Post subject: |
|
|
sn4ip3r wrote: | Why is glitz needed, does clearlooks-cairo really use opengl through cairo? |
Yes, holly damn... it use opengl throw glitz support in cairo =) But cairo can also use XRENDER extension from xorg.
Actually it use GLX from xorg if driver for your hardware do support it =) |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Wed Dec 07, 2005 3:32 pm Post subject: |
|
|
SchAmane wrote: | sn4ip3r wrote: | Why is glitz needed, does clearlooks-cairo really use opengl through cairo? |
Yes, holly damn... it use opengl throw glitz support in cairo =) But cairo can also use XRENDER extension from xorg.
Actually it use GLX from xorg if driver for your hardware do support it =) |
Afaik gtk+ doesn't use glitz for cairo rendering (at least not yet), but does it still effect on the clearlooks engine? |
|
Back to top |
|
|
SchAmane Tux's lil' helper
Joined: 11 Sep 2004 Posts: 107
|
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Sat Dec 10, 2005 1:42 am Post subject: |
|
|
Thanks for the patch :)
I updated the ebuild and added instructions where to put the patch file.
EDIT: The patch don't seem to apply: Code: | patching file clearlooks/src/clearlooks_draw.c
patch: **** malformed patch at line 65: |
I's there something wrong with the patch or did I run the patch command incorrectly? |
|
Back to top |
|
|
SchAmane Tux's lil' helper
Joined: 11 Sep 2004 Posts: 107
|
Posted: Sat Dec 10, 2005 1:44 pm Post subject: |
|
|
pussi wrote: | Code: | patching file clearlooks/src/clearlooks_draw.c
patch: **** malformed patch at line 65: |
I's there something wrong with the patch or did I run the patch command incorrectly? |
I need to redo this patch. So wait for 0.3 version.
Any idea about hosting ebuild files somewhere ? It would be better than just put code here.
http://files.myeburg.net/work/progressbar_anim/clearlooks_slider-0.3.patch |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Sat Dec 10, 2005 2:13 pm Post subject: |
|
|
Thanks, it worked now.
And yes, I could make overlay of all the ebuilds or something. Probably later today. |
|
Back to top |
|
|
SchAmane Tux's lil' helper
Joined: 11 Sep 2004 Posts: 107
|
Posted: Sat Dec 10, 2005 3:45 pm Post subject: |
|
|
pussi wrote: | And yes, I could make overlay of all the ebuilds or something. Probably later today. |
I dont think we need whole overlay for 3 ebuilds =) But just publish files throw web would be nice. I can help you with hosting, if you dont have one self. |
|
Back to top |
|
|
xbb Tux's lil' helper
Joined: 26 Nov 2005 Posts: 85
|
Posted: Sat Dec 10, 2005 4:46 pm Post subject: |
|
|
Hi, thanks for the nice ebuilds
How can I check if cairo compiled correctly with glitz? |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Sat Dec 10, 2005 8:38 pm Post subject: |
|
|
SchAmane wrote: | I dont think we need whole overlay for 3 ebuilds =) But just publish files throw web would be nice. I can help you with hosting, if you dont have one self. | I think it'd be easier to use overlay, at least with gtk-engines now when there's a patch file that you should otherwise copy separately, but I guess I just do both.
And yes, I have some webspace on metawire, but thanks for the offer :)
xbb wrote: | Hi, thanks for the nice ebuilds :)
How can I check if cairo compiled correctly with glitz? | When you emerge cairo, there should read something like this in the end of configure.
Code: | cairo will be compiled with the following surface backends:
(blah blah)
glitz: yes | There might also be some application in cvs to check this after the compilation. |
|
Back to top |
|
|
xbb Tux's lil' helper
Joined: 26 Nov 2005 Posts: 85
|
Posted: Sun Dec 11, 2005 2:39 am Post subject: |
|
|
thanks its working well |
|
Back to top |
|
|
tj Apprentice
Joined: 10 Aug 2002 Posts: 199 Location: tokyo, japan
|
Posted: Sun Dec 11, 2005 2:51 am Post subject: |
|
|
hmm - cairo's reporting the patch during emerge but I'm getting:
Code: | cairo will be compiled with the following surface backends:
(blah blah)
glitz: no
|
if I etcat -v cairo, gtk-engines, or glitz, the overlay ebuilds are unmasked and installed
any clues as to what I've missed?
edit: I've forgotten to edit .gtkrc - unfortunately SchAmane's site seems to be down - anyone have the lines that need to be added? _________________ I tried installing Suse Linux off the Internet. It got stuck in the middle somewhere.Installing off the Internet is for the birds. |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Sun Dec 11, 2005 5:11 am Post subject: |
|
|
tj wrote: | hmm - cairo's reporting the patch during emerge but I'm getting:
Code: | cairo will be compiled with the following surface backends:
(blah blah)
glitz: no
|
if I etcat -v cairo, gtk-engines, or glitz, the overlay ebuilds are unmasked and installed
any clues as to what I've missed? | Did you emerge it with USE="glitz"?
tj wrote: | edit: I've forgotten to edit .gtkrc - unfortunately SchAmane's site seems to be down - anyone have the lines that need to be added? | It's up again. You can also take a look at /usr/share/themes/Clearlooks/gtk-2.0/gtkrc on how to enable the animations for your theme. |
|
Back to top |
|
|
tj Apprentice
Joined: 10 Aug 2002 Posts: 199 Location: tokyo, japan
|
Posted: Sun Dec 11, 2005 6:10 am Post subject: |
|
|
pussi - thanks for the advice
I'm using Clearlooks-Cream so I added animation = TRUE to the gtkrc in /usr/share/themes/Clearlooks-Cream/gtk-2.0/
It works but I had a couple of questions:
1. Should I be editing this file or the ~/.gtkrc ?
2. I noticed in /usr/share/themes/Clearlooks/gtk-2.0/gtkrc a few more lines seemingly related to animation
Code: | engine "clearlooks"
{
scrollbar_color = "#76acde"
menubarstyle = 2 # 0 = flat, 1 = sunken, 2 = flat gradient
menuitemstyle = 1 # 0 = flat, 1 = 3d-ish (gradient), 2 = 3d-ish (button)
listviewitemstyle = 1 # 0 = flat, 1 = 3d-ish (gradient)
progressbarstyle = 1 # 0 = candy bar, 1 = fancy candy bar, 2 = flat
animation = TRUE
}
|
should I be adding these to the gtkrc (either system-wide or in ~/ )?
Appreciate the pointers
Edit: thanks for updating the original post - in answer to my own questions after a bit more poking around it looks like it has to be the system-wide option since ~/.gtkrc is just inheriting from there??? _________________ I tried installing Suse Linux off the Internet. It got stuck in the middle somewhere.Installing off the Internet is for the birds. |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Sun Dec 11, 2005 12:08 pm Post subject: |
|
|
1. You shouldn't edit any gtk's configure files like ~/.gtkrc but the theme's configuration file called 'gtkrc'.
It's located either in /usr/share/themes/<Name_of_the_theme>/gtk-2.0/gtkrc (system wide themes) or ~/.themes/<Name_of_the_theme>/gtk-2.0/gtkrc (per user themes).
2. The other lines are not related to animation, but they are other new settings in clearlooks engine (scrollbar style for example). You can add those line in your own theme and play with them if you like, but I it shouldn't break anything if you don't (then the engine should just use the default values on these settings).
I hope my answers cleared things up :) I knew I should have explained this more precisely in the first place. |
|
Back to top |
|
|
tj Apprentice
Joined: 10 Aug 2002 Posts: 199 Location: tokyo, japan
|
Posted: Sun Dec 11, 2005 1:57 pm Post subject: |
|
|
pussi wrote: | 1. You shouldn't edit any gtk's configure files like ~/.gtkrc but the theme's configuration file called 'gtkrc'.
It's located either in /usr/share/themes/<Name_of_the_theme>/gtk-2.0/gtkrc (system wide themes) or ~/.themes/<Name_of_the_theme>/gtk-2.0/gtkrc (per user themes).
2. The other lines are not related to animation, but they are other new settings in clearlooks engine (scrollbar style for example). You can add those line in your own theme and play with them if you like, but I it shouldn't break anything if you don't (then the engine should just use the default values on these settings).
I hope my answers cleared things up I knew I should have explained this more precisely in the first place. |
pussi, thanks for the reply - I pretty much got it figured out between posts but good to know about the ~/.themes tip; I've gone for system-wide as I'm the only user on this box.
I left the other settings alone for now - may play next weekend.
It's very nice with the fading checks & radio buttons - the progress bar rarely shows as I'm on 100Mb fibre
All in all, a very smooth addition
Thanks again _________________ I tried installing Suse Linux off the Internet. It got stuck in the middle somewhere.Installing off the Internet is for the birds. |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Fri Feb 03, 2006 9:08 pm Post subject: |
|
|
I updated the gtk-engines ebuild for the recent changes in cvs. Now you need to enable "animation" use-flag for gtk-engines to enable animations for clearlooks engine. |
|
Back to top |
|
|
effloresce Tux's lil' helper
Joined: 24 Jan 2005 Posts: 109
|
Posted: Thu Apr 06, 2006 2:35 am Post subject: |
|
|
Did cvs for gtk-engines change? The emerge fails saying it can't unpack, nothing to unpack. |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Sun Jun 18, 2006 5:14 pm Post subject: |
|
|
effloresce wrote: | Did cvs for gtk-engines change? The emerge fails saying it can't unpack, nothing to unpack. | Sorry for the late reply :oops:
I think that happened after some change in gnome.eclass or something. Anyway here's a fixed version of the ebuild (I just paste it here since metawire is offline). Code: | # Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
inherit cvs
ECVS_SERVER="anoncvs.gnome.org:/cvs/gnome"
ECVS_MODULE="gtk-engines"
DESCRIPTION="GTK+2 standard engines and themes"
HOMEPAGE="http://www.gtk.org/"
KEYWORDS="-*"
LICENSE="GPL-2 LGPL-2.1"
SLOT="2"
IUSE="accessibility static animation debug"
SRC_URI=""
RDEPEND=">=x11-libs/gtk+-2.8
!<=x11-themes/gnome-themes-2.8.2"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.9"
S="${WORKDIR}/${ECVS_MODULE}"
DOCS="AUTHORS ChangeLog NEWS README"
pkg_setup(){
G2CONF="$(use_enable static)"
use accessibility || G2CONF="${G2CONF} --disable-hc"
use debug && G2CONF="${G2CONF} --enable-debug=yes"
G2CONF="${G2CONF} $(use_enable doc gtk-doc)"
}
src_compile() {
cd ${S}/engines
#Comment this line if you _don't_ want slider animations
# epatch ${FILESDIR}/clearlooks_slider-0.3.patch
cd ${S}
./autogen.sh \
--prefix=/usr \
--host=${CHOST} \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--datadir=/usr/share \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--cache-file=$CONF_CACHE \
--disable-crux \
$(use_enable animation) \
${EXTRA_ECONF}
emake
}
src_install() {
einstall
} |
Here's also live-git ebuild for latest cairo :) You'll need to put this git.eclass in your ${PORTDIR_OVERLAY}/eclass Code: | # Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.0.2.ebuild,v 1.2 2005/10/26 19:36:56 grobian Exp $
inherit eutils git
DESCRIPTION="A vector graphics library with cross-device output support"
HOMEPAGE="http://cairographics.org/"
SRC_URI=""
EGIT_REPO_URI="git://git.cairographics.org/git/cairo"
LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
SLOT="0"
KEYWORDS="-*"
IUSE="doc glitz png X svg"
S=${WORKDIR}/${P}
MY_PATCHDIR=${PORTDIR}/x11-libs/${PN}/files
RDEPEND="media-libs/fontconfig
>=media-libs/freetype-2.1
sys-libs/zlib
X? (
||( (
x11-libs/libXrender
x11-libs/libXt )
virtual/x11 )
virtual/xft )
glitz? ( >=media-libs/glitz-0.5.1 )
png? ( media-libs/libpng )
svg? ( >=media-libs/freetype-2.1.4
dev-libs/libxml2 )
!<x11-libs/cairo-0.2"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.9
doc? (
>=dev-util/gtk-doc-1.3
~app-text/docbook-xml-dtd-4.2 )"
eautogen() {
./autogen.sh \
--prefix=/usr \
--host=${CHOST} \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--datadir=/usr/share \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--cache-file=$CONF_CACHE \
${EXTRA_ECONF} \
"$@"
}
src_compile() {
cd "${S}"
# Call PKG_PROG_PKG_CONFIG to fix other standard pkg-config calls
# epatch ${MY_PATCHDIR}/${PN}-1.0.2-pkg_macro.patch
local myconf="$(use_with X x) \
$(use_enable X xlib) \
$(use_enable png) \
$(use_enable doc gtk-doc) \
$(use_enable glitz) \
$(use_enable svg)"
eautogen $myconf || die "./autogen.sh failed"
emake || die "Compilation failed"
}
src_install() {
make DESTDIR="${D}" install || die "Installation failed"
dodoc AUTHORS ChangeLog NEWS README TODO
} |
|
|
Back to top |
|
|
|