obconf: use obconf from git due to 2.0.3 incompatibility with ob 3.5

This commit is contained in:
Bartlomiej Palmowski 2012-07-22 15:31:54 +02:00
parent 8995a4c441
commit 74cdcb0ef4
3 changed files with 51 additions and 5 deletions

View File

@ -1 +1,2 @@
b22e273721851dedad72acbc77eefb68 obconf-2.0.3.tar.gz
aab5ea712814a200f40f56e411cf88f9 obconf-git_master_cc7a18807663313.tar.xz
ebfba423c13d1f3f5216561b3e7f73f0 preview_c.patch

View File

@ -1,17 +1,21 @@
# Description: openbox preferences manager
# URL: http://openbox.org/obconf/
# URL: http://openbox.org/wiki/Obconf
# Packager: Marcin Karpezo <sirmacik@happylinux.pl>
# Maintainer: Bartlomiej Palmowski, rotwang at crux dot org dot pl
# Depends on: openbox libglade startup-notification
name=obconf
version=2.0.3
version=git
release=1
source=(http://icculus.org/openbox/$name/$name-$version.tar.gz)
source=(http://ci.crux.org.pl/userContent/$name-git_master_cc7a18807663313.tar.xz
preview_c.patch)
build () {
cd $name-$version
cd $name
patch -p2 -i$SRC/preview_c.patch
autoreconf -f -i
./configure --prefix=/usr --disable-nls
make
make DESTDIR=$PKG install
}

41
obconf/preview_c.patch Normal file
View File

@ -0,0 +1,41 @@
--- a/obconf/src/preview.c
+++ b/obconf2/src/preview.c
@@ -327,28 +327,28 @@ static GdkPixbuf* preview_window(RrTheme *theme, const gchar *titlelayout,
switch (*layout) {
case 'D':
a = focus ?
- theme->btn_desk->a_focused_unpressed :
- theme->btn_desk->a_unfocused_unpressed;
+ theme->a_focused_unpressed_desk :
+ theme->a_unfocused_unpressed_desk;
break;
case 'S':
a = focus ?
- theme->btn_shade->a_focused_unpressed :
- theme->btn_shade->a_unfocused_unpressed;
+ theme->a_focused_unpressed_shade :
+ theme->a_unfocused_unpressed_shade;
break;
case 'I':
a = focus ?
- theme->btn_iconify->a_focused_unpressed :
- theme->btn_iconify->a_unfocused_unpressed;
+ theme->a_focused_unpressed_iconify :
+ theme->a_unfocused_unpressed_iconify;
break;
case 'M':
a = focus ?
- theme->btn_max->a_focused_unpressed :
- theme->btn_max->a_unfocused_unpressed;
+ theme->a_focused_unpressed_max :
+ theme->a_unfocused_unpressed_max;
break;
case 'C':
a = focus ?
- theme->btn_close->a_focused_unpressed :
- theme->btn_close->a_unfocused_unpressed;
+ theme->a_focused_unpressed_close :
+ theme->a_unfocused_unpressed_close;
break;
default:
continue;