Date: Monday, October 20, 2014 @ 04:26:46 Author: bgyorgy Revision: 121000
archrelease: copy trunk to community-i686, community-x86_64 Added: guake/repos/community-i686/PKGBUILD (from rev 120999, guake/trunk/PKGBUILD) guake/repos/community-i686/fix-crasher.patch (from rev 120999, guake/trunk/fix-crasher.patch) guake/repos/community-i686/fix-hiding.patch (from rev 120999, guake/trunk/fix-hiding.patch) guake/repos/community-i686/fix-hotkey.patch (from rev 120999, guake/trunk/fix-hotkey.patch) guake/repos/community-i686/guake.install (from rev 120999, guake/trunk/guake.install) guake/repos/community-x86_64/PKGBUILD (from rev 120999, guake/trunk/PKGBUILD) guake/repos/community-x86_64/fix-crasher.patch (from rev 120999, guake/trunk/fix-crasher.patch) guake/repos/community-x86_64/fix-hiding.patch (from rev 120999, guake/trunk/fix-hiding.patch) guake/repos/community-x86_64/fix-hotkey.patch (from rev 120999, guake/trunk/fix-hotkey.patch) guake/repos/community-x86_64/guake.install (from rev 120999, guake/trunk/guake.install) Deleted: guake/repos/community-i686/PKGBUILD guake/repos/community-i686/fix-compiositing.patch guake/repos/community-i686/fix-crasher.patch guake/repos/community-i686/fix-hotkey.patch guake/repos/community-i686/guake.install guake/repos/community-x86_64/PKGBUILD guake/repos/community-x86_64/fix-compiositing.patch guake/repos/community-x86_64/fix-crasher.patch guake/repos/community-x86_64/fix-hotkey.patch guake/repos/community-x86_64/guake.install -----------------------------------------+ /PKGBUILD | 114 ++++++++++++++++++++++++++++++ /fix-crasher.patch | 26 ++++++ /fix-hotkey.patch | 28 +++++++ /guake.install | 44 +++++++++++ community-i686/PKGBUILD | 51 ------------- community-i686/fix-compiositing.patch | 110 ---------------------------- community-i686/fix-crasher.patch | 13 --- community-i686/fix-hiding.patch | 10 ++ community-i686/fix-hotkey.patch | 14 --- community-i686/guake.install | 22 ----- community-x86_64/PKGBUILD | 51 ------------- community-x86_64/fix-compiositing.patch | 110 ---------------------------- community-x86_64/fix-crasher.patch | 13 --- community-x86_64/fix-hiding.patch | 10 ++ community-x86_64/fix-hotkey.patch | 14 --- community-x86_64/guake.install | 22 ----- 16 files changed, 232 insertions(+), 420 deletions(-) Deleted: community-i686/PKGBUILD =================================================================== --- community-i686/PKGBUILD 2014-10-20 02:26:34 UTC (rev 120999) +++ community-i686/PKGBUILD 2014-10-20 02:26:46 UTC (rev 121000) @@ -1,51 +0,0 @@ -# $Id$ -# Maintainer: Balló György <ballogyor+arch at gmail dot com> -# Contributor: Angel Velasquez <an...@archlinux.org> -# Contributor: Wilson Pinto Júnior (N3RD3X) <n3r...@linuxmail.org> - -pkgname=guake -pkgver=0.5.0 -pkgrel=1 -pkgdesc='Drop-down terminal for GNOME' -arch=('i686' 'x86_64') -url="http://guake.org/" -license=('GPL') -depends=('python2-notify' 'vte' 'python2-gconf' 'python2-dbus' 'python2-xdg') -makedepends=('intltool' 'gnome-common') -install=$pkgname.install -source=($pkgname-$pkgver.tar.gz::https://github.com/Guake/$pkgname/archive/$pkgver.tar.gz - fix-crasher.patch - fix-hotkey.patch) -md5sums=('4383b7fcf85a355b4b69dd5cf66ff78f' - '12933c13aa1e7beb9431e3367cfaabd0' - '77050aeecb837d8c8109ab272f7277e2') - -prepare() { - cd "$srcdir/$pkgname-$pkgver" - - # Fix crasher - https://github.com/Guake/guake/issues/373 - patch -Np1 -i ../fix-crasher.patch - - # Fix frozen hotkey - https://github.com/Guake/guake/issues/378 - patch -Np1 -i ../fix-hotkey.patch - - # Fix GConf schema dir - sed -i 's|schemadir = $(sysconfdir)/gconf/schemas|schemadir = $(GCONF_SCHEMA_FILE_DIR)|' data/Makefile.am - - # Python2 fix - sed -i 's|/usr/bin/env python|/usr/bin/python2|' src/{guake-prefs,prefs.py} -} - -build() { - cd "$srcdir/$pkgname-$pkgver" - ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --disable-static --disable-schemas-install \ - --with-gconf-schema-file-dir=/usr/share/gconf/schemas \ - PYTHON=python2 - make -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - make DESTDIR="$pkgdir" install -} Copied: guake/repos/community-i686/PKGBUILD (from rev 120999, guake/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2014-10-20 02:26:46 UTC (rev 121000) @@ -0,0 +1,57 @@ +# $Id$ +# Maintainer: Balló György <ballogyor+arch at gmail dot com> +# Contributor: Angel Velasquez <an...@archlinux.org> +# Contributor: Wilson Pinto Júnior (N3RD3X) <n3r...@linuxmail.org> +# Contributor: Attila Bukor <r1pp3rj...@w4it.eu> + +pkgname=guake +pkgver=0.5.0 +pkgrel=2 +pkgdesc='Drop-down terminal for GNOME' +arch=('i686' 'x86_64') +url="http://guake.org/" +license=('GPL') +depends=('python2-notify' 'vte' 'python2-gconf' 'python2-dbus' 'python2-xdg') +makedepends=('intltool' 'gnome-common') +install=$pkgname.install +source=($pkgname-$pkgver.tar.gz::https://github.com/Guake/$pkgname/archive/$pkgver.tar.gz + fix-crasher.patch + fix-hiding.patch + fix-hotkey.patch) +md5sums=('4383b7fcf85a355b4b69dd5cf66ff78f' + '12933c13aa1e7beb9431e3367cfaabd0' + '117f21da9744272d51d9e7d977382f27' + '77050aeecb837d8c8109ab272f7277e2') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + # Fix crasher - https://github.com/Guake/guake/issues/373 + patch -Np1 -i ../fix-crasher.patch + + # Fix restoring focus - https://github.com/Guake/guake/issues/384 + patch -Np1 -i ../fix-hiding.patch + + # Fix frozen hotkey - https://github.com/Guake/guake/issues/378 + patch -Np1 -i ../fix-hotkey.patch + + # Fix GConf schema dir + sed -i 's|schemadir = $(sysconfdir)/gconf/schemas|schemadir = $(GCONF_SCHEMA_FILE_DIR)|' data/Makefile.am + + # Python2 fix + sed -i 's|/usr/bin/env python|/usr/bin/python2|' src/{guake-prefs,prefs.py} +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-static --disable-schemas-install \ + --with-gconf-schema-file-dir=/usr/share/gconf/schemas \ + PYTHON=python2 + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} Deleted: community-i686/fix-compiositing.patch =================================================================== --- community-i686/fix-compiositing.patch 2014-10-20 02:26:34 UTC (rev 120999) +++ community-i686/fix-compiositing.patch 2014-10-20 02:26:46 UTC (rev 121000) @@ -1,110 +0,0 @@ -From b0e3e2b0544967d2ac3f9df299867142b4b4dec8 Mon Sep 17 00:00:00 2001 -From: Alexander Mezin <mezin.alexan...@gmail.com> -Date: Sun, 3 Mar 2013 02:48:01 +0700 -Subject: [PATCH] Handle enabling/disabling compositing while Guake is running - -Currently Guake checks if compositing is enabled only at startup. -This causes problems in XFCE: Guake window is opaque when it's -started automatically on login. I have to restart it to enable -transparency. Also, it is generally better to react to changes -without restart. ---- - src/guake | 64 ++++++++++++++++++++++++++++++++++++++------------------------- - 1 file changed, 39 insertions(+), 25 deletions(-) - -diff --git a/src/guake b/src/guake -index 1b321fc..50e1a91 100644 ---- a/src/guake -+++ b/src/guake -@@ -301,33 +301,14 @@ class GConfHandler(object): - will set the transparent flag to false if an image is set in - all terminals open. - """ -- image = entry.value.get_string() -- for i in self.guake.term_list: -- if image and os.path.exists(image): -- i.set_background_image_file(image) -- i.set_background_transparent(False) -- else: -- """We need to clear the image if it's not set but there is -- a bug in vte python bidnings which doesn't allow None to be -- passed to set_background_image (C GTK function expects NULL). -- The user will need to restart Guake after clearing the image. -- i.set_background_image(None) -- """ -- if self.guake.has_argb: -- i.set_background_transparent(False) -- else: -- i.set_background_transparent(True) -+ self.guake.set_background_image(entry.value.get_string()) - - def bgtransparency_changed(self, client, connection_id, entry, data): - """If the gconf var style/background/transparency be changed, this - method will be called and will set the saturation and transparency - properties in all terminals open. - """ -- transparency = entry.value.get_int() -- for i in self.guake.term_list: -- i.set_background_saturation(transparency / 100.0) -- if self.guake.has_argb: -- i.set_opacity(int((100 - transparency) / 100.0 * 65535)) -+ self.guake.set_background_transparency(entry.value.get_int()) - - def backspace_changed(self, client, connection_id, entry, data): - """If the gconf var compat_backspace be changed, this method -@@ -560,11 +541,21 @@ class Guake(SimpleGladeApp): - # check and set ARGB for real transparency - screen = self.window.get_screen() - colormap = screen.get_rgba_colormap() -- if colormap != None and screen.is_composited(): -- self.window.set_colormap(colormap) -- self.has_argb = True -- else: -+ if colormap == None: - self.has_argb = False -+ else: -+ self.window.set_colormap(colormap) -+ self.has_argb = self.window.get_screen().is_composited() -+ -+ def composited_changed(screen): -+ self.has_argb = screen.is_composited() -+ self.set_background_transparency( -+ self.client.get_int(KEY('/style/background/transparency'))) -+ self.set_background_image( -+ self.client.get_string(KEY('/style/background/image'))) -+ -+ self.window.get_screen().connect("composited-changed", -+ composited_changed); - - # List of vte.Terminal widgets, it will be useful when needed - # to get a widget by the current page in self.notebook -@@ -659,6 +650,29 @@ class Guake(SimpleGladeApp): - 'press <b>%s</b> to use it.') % label, filename) - notification.show() - -+ def set_background_transparency(self, transparency): -+ for i in self.term_list: -+ i.set_background_saturation(transparency / 100.0) -+ if self.has_argb: -+ i.set_opacity(int((100 - transparency) / 100.0 * 65535)) -+ -+ def set_background_image(self, image): -+ for i in self.term_list: -+ if image and os.path.exists(image): -+ i.set_background_image_file(image) -+ i.set_background_transparent(False) -+ else: -+ """We need to clear the image if it's not set but there is -+ a bug in vte python bidnings which doesn't allow None to be -+ passed to set_background_image (C GTK function expects NULL). -+ The user will need to restart Guake after clearing the image. -+ i.set_background_image(None) -+ """ -+ if self.has_argb: -+ i.set_background_transparent(False) -+ else: -+ i.set_background_transparent(True) -+ - def execute_command(self, command, tab=None): - """Execute the `command' in the `tab'. If tab is None, the - command will be executed in the currently selected Deleted: community-i686/fix-crasher.patch =================================================================== --- community-i686/fix-crasher.patch 2014-10-20 02:26:34 UTC (rev 120999) +++ community-i686/fix-crasher.patch 2014-10-20 02:26:46 UTC (rev 121000) @@ -1,13 +0,0 @@ -diff -Naur guake-0.5.0.orig/src/guake guake-0.5.0/src/guake ---- guake-0.5.0.orig/src/guake 2014-10-05 17:49:44.240402904 +0000 -+++ guake-0.5.0/src/guake 2014-10-05 17:51:22.280038750 +0000 -@@ -634,6 +634,9 @@ - scale_factor = 2 ** (self.font_scale_index / 6) - new_size = int(scale_factor * font.get_size()) - -+ if new_size == 0: -+ return -+ - if font.get_size_is_absolute(): - font.set_absolute_size(new_size) - else: Copied: guake/repos/community-i686/fix-crasher.patch (from rev 120999, guake/trunk/fix-crasher.patch) =================================================================== --- community-i686/fix-crasher.patch (rev 0) +++ community-i686/fix-crasher.patch 2014-10-20 02:26:46 UTC (rev 121000) @@ -0,0 +1,13 @@ +diff -Naur guake-0.5.0.orig/src/guake guake-0.5.0/src/guake +--- guake-0.5.0.orig/src/guake 2014-10-05 17:49:44.240402904 +0000 ++++ guake-0.5.0/src/guake 2014-10-05 17:51:22.280038750 +0000 +@@ -634,6 +634,9 @@ + scale_factor = 2 ** (self.font_scale_index / 6) + new_size = int(scale_factor * font.get_size()) + ++ if new_size == 0: ++ return ++ + if font.get_size_is_absolute(): + font.set_absolute_size(new_size) + else: Copied: guake/repos/community-i686/fix-hiding.patch (from rev 120999, guake/trunk/fix-hiding.patch) =================================================================== --- community-i686/fix-hiding.patch (rev 0) +++ community-i686/fix-hiding.patch 2014-10-20 02:26:46 UTC (rev 121000) @@ -0,0 +1,10 @@ +--- guake-0.5.0.orig/src/guake 2014-10-13 23:11:31.803523945 +0200 ++++ guake-0.5.0.orig/src/guake 2014-10-13 23:11:43.130502724 +0200 +@@ -1094,7 +1094,6 @@ + """Hides the main window of the terminal and sets the visible + flag to False. + """ +- self.window.set_keep_below(True) + self.window.hide() # Don't use hide_all here! + + def get_final_window_monitor(self): Deleted: community-i686/fix-hotkey.patch =================================================================== --- community-i686/fix-hotkey.patch 2014-10-20 02:26:34 UTC (rev 120999) +++ community-i686/fix-hotkey.patch 2014-10-20 02:26:46 UTC (rev 121000) @@ -1,14 +0,0 @@ -diff -Naur guake-0.5.0.orig/src/guake guake-0.5.0/src/guake ---- guake-0.5.0.orig/src/guake 2014-10-05 18:48:34.680242628 +0000 -+++ guake-0.5.0/src/guake 2014-10-05 19:06:14.629370046 +0000 -@@ -1039,10 +1039,6 @@ - if not self.window.get_property('visible'): - self.show() - self.set_terminal_focus() -- elif (self.client.get_bool(KEY('/general/focus_if_open')) and -- self.window.window and -- not self.window.window.get_state()): -- self.window.window.focus() - else: - self.hide() - Copied: guake/repos/community-i686/fix-hotkey.patch (from rev 120999, guake/trunk/fix-hotkey.patch) =================================================================== --- community-i686/fix-hotkey.patch (rev 0) +++ community-i686/fix-hotkey.patch 2014-10-20 02:26:46 UTC (rev 121000) @@ -0,0 +1,14 @@ +diff -Naur guake-0.5.0.orig/src/guake guake-0.5.0/src/guake +--- guake-0.5.0.orig/src/guake 2014-10-05 18:48:34.680242628 +0000 ++++ guake-0.5.0/src/guake 2014-10-05 19:06:14.629370046 +0000 +@@ -1039,10 +1039,6 @@ + if not self.window.get_property('visible'): + self.show() + self.set_terminal_focus() +- elif (self.client.get_bool(KEY('/general/focus_if_open')) and +- self.window.window and +- not self.window.window.get_state()): +- self.window.window.focus() + else: + self.hide() + Deleted: community-i686/guake.install =================================================================== --- community-i686/guake.install 2014-10-20 02:26:34 UTC (rev 120999) +++ community-i686/guake.install 2014-10-20 02:26:46 UTC (rev 121000) @@ -1,22 +0,0 @@ -pkgname=guake - -post_install() { - usr/sbin/gconfpkg --install ${pkgname} - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor -} - -pre_upgrade() { - pre_remove $1 -} - -post_upgrade() { - post_install $1 -} - -pre_remove() { - usr/sbin/gconfpkg --uninstall ${pkgname} -} - -post_remove() { - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor -} Copied: guake/repos/community-i686/guake.install (from rev 120999, guake/trunk/guake.install) =================================================================== --- community-i686/guake.install (rev 0) +++ community-i686/guake.install 2014-10-20 02:26:46 UTC (rev 121000) @@ -0,0 +1,22 @@ +pkgname=guake + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} Deleted: community-x86_64/PKGBUILD =================================================================== --- community-x86_64/PKGBUILD 2014-10-20 02:26:34 UTC (rev 120999) +++ community-x86_64/PKGBUILD 2014-10-20 02:26:46 UTC (rev 121000) @@ -1,51 +0,0 @@ -# $Id$ -# Maintainer: Balló György <ballogyor+arch at gmail dot com> -# Contributor: Angel Velasquez <an...@archlinux.org> -# Contributor: Wilson Pinto Júnior (N3RD3X) <n3r...@linuxmail.org> - -pkgname=guake -pkgver=0.5.0 -pkgrel=1 -pkgdesc='Drop-down terminal for GNOME' -arch=('i686' 'x86_64') -url="http://guake.org/" -license=('GPL') -depends=('python2-notify' 'vte' 'python2-gconf' 'python2-dbus' 'python2-xdg') -makedepends=('intltool' 'gnome-common') -install=$pkgname.install -source=($pkgname-$pkgver.tar.gz::https://github.com/Guake/$pkgname/archive/$pkgver.tar.gz - fix-crasher.patch - fix-hotkey.patch) -md5sums=('4383b7fcf85a355b4b69dd5cf66ff78f' - '12933c13aa1e7beb9431e3367cfaabd0' - '77050aeecb837d8c8109ab272f7277e2') - -prepare() { - cd "$srcdir/$pkgname-$pkgver" - - # Fix crasher - https://github.com/Guake/guake/issues/373 - patch -Np1 -i ../fix-crasher.patch - - # Fix frozen hotkey - https://github.com/Guake/guake/issues/378 - patch -Np1 -i ../fix-hotkey.patch - - # Fix GConf schema dir - sed -i 's|schemadir = $(sysconfdir)/gconf/schemas|schemadir = $(GCONF_SCHEMA_FILE_DIR)|' data/Makefile.am - - # Python2 fix - sed -i 's|/usr/bin/env python|/usr/bin/python2|' src/{guake-prefs,prefs.py} -} - -build() { - cd "$srcdir/$pkgname-$pkgver" - ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --disable-static --disable-schemas-install \ - --with-gconf-schema-file-dir=/usr/share/gconf/schemas \ - PYTHON=python2 - make -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - make DESTDIR="$pkgdir" install -} Copied: guake/repos/community-x86_64/PKGBUILD (from rev 120999, guake/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2014-10-20 02:26:46 UTC (rev 121000) @@ -0,0 +1,57 @@ +# $Id$ +# Maintainer: Balló György <ballogyor+arch at gmail dot com> +# Contributor: Angel Velasquez <an...@archlinux.org> +# Contributor: Wilson Pinto Júnior (N3RD3X) <n3r...@linuxmail.org> +# Contributor: Attila Bukor <r1pp3rj...@w4it.eu> + +pkgname=guake +pkgver=0.5.0 +pkgrel=2 +pkgdesc='Drop-down terminal for GNOME' +arch=('i686' 'x86_64') +url="http://guake.org/" +license=('GPL') +depends=('python2-notify' 'vte' 'python2-gconf' 'python2-dbus' 'python2-xdg') +makedepends=('intltool' 'gnome-common') +install=$pkgname.install +source=($pkgname-$pkgver.tar.gz::https://github.com/Guake/$pkgname/archive/$pkgver.tar.gz + fix-crasher.patch + fix-hiding.patch + fix-hotkey.patch) +md5sums=('4383b7fcf85a355b4b69dd5cf66ff78f' + '12933c13aa1e7beb9431e3367cfaabd0' + '117f21da9744272d51d9e7d977382f27' + '77050aeecb837d8c8109ab272f7277e2') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + # Fix crasher - https://github.com/Guake/guake/issues/373 + patch -Np1 -i ../fix-crasher.patch + + # Fix restoring focus - https://github.com/Guake/guake/issues/384 + patch -Np1 -i ../fix-hiding.patch + + # Fix frozen hotkey - https://github.com/Guake/guake/issues/378 + patch -Np1 -i ../fix-hotkey.patch + + # Fix GConf schema dir + sed -i 's|schemadir = $(sysconfdir)/gconf/schemas|schemadir = $(GCONF_SCHEMA_FILE_DIR)|' data/Makefile.am + + # Python2 fix + sed -i 's|/usr/bin/env python|/usr/bin/python2|' src/{guake-prefs,prefs.py} +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-static --disable-schemas-install \ + --with-gconf-schema-file-dir=/usr/share/gconf/schemas \ + PYTHON=python2 + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} Deleted: community-x86_64/fix-compiositing.patch =================================================================== --- community-x86_64/fix-compiositing.patch 2014-10-20 02:26:34 UTC (rev 120999) +++ community-x86_64/fix-compiositing.patch 2014-10-20 02:26:46 UTC (rev 121000) @@ -1,110 +0,0 @@ -From b0e3e2b0544967d2ac3f9df299867142b4b4dec8 Mon Sep 17 00:00:00 2001 -From: Alexander Mezin <mezin.alexan...@gmail.com> -Date: Sun, 3 Mar 2013 02:48:01 +0700 -Subject: [PATCH] Handle enabling/disabling compositing while Guake is running - -Currently Guake checks if compositing is enabled only at startup. -This causes problems in XFCE: Guake window is opaque when it's -started automatically on login. I have to restart it to enable -transparency. Also, it is generally better to react to changes -without restart. ---- - src/guake | 64 ++++++++++++++++++++++++++++++++++++++------------------------- - 1 file changed, 39 insertions(+), 25 deletions(-) - -diff --git a/src/guake b/src/guake -index 1b321fc..50e1a91 100644 ---- a/src/guake -+++ b/src/guake -@@ -301,33 +301,14 @@ class GConfHandler(object): - will set the transparent flag to false if an image is set in - all terminals open. - """ -- image = entry.value.get_string() -- for i in self.guake.term_list: -- if image and os.path.exists(image): -- i.set_background_image_file(image) -- i.set_background_transparent(False) -- else: -- """We need to clear the image if it's not set but there is -- a bug in vte python bidnings which doesn't allow None to be -- passed to set_background_image (C GTK function expects NULL). -- The user will need to restart Guake after clearing the image. -- i.set_background_image(None) -- """ -- if self.guake.has_argb: -- i.set_background_transparent(False) -- else: -- i.set_background_transparent(True) -+ self.guake.set_background_image(entry.value.get_string()) - - def bgtransparency_changed(self, client, connection_id, entry, data): - """If the gconf var style/background/transparency be changed, this - method will be called and will set the saturation and transparency - properties in all terminals open. - """ -- transparency = entry.value.get_int() -- for i in self.guake.term_list: -- i.set_background_saturation(transparency / 100.0) -- if self.guake.has_argb: -- i.set_opacity(int((100 - transparency) / 100.0 * 65535)) -+ self.guake.set_background_transparency(entry.value.get_int()) - - def backspace_changed(self, client, connection_id, entry, data): - """If the gconf var compat_backspace be changed, this method -@@ -560,11 +541,21 @@ class Guake(SimpleGladeApp): - # check and set ARGB for real transparency - screen = self.window.get_screen() - colormap = screen.get_rgba_colormap() -- if colormap != None and screen.is_composited(): -- self.window.set_colormap(colormap) -- self.has_argb = True -- else: -+ if colormap == None: - self.has_argb = False -+ else: -+ self.window.set_colormap(colormap) -+ self.has_argb = self.window.get_screen().is_composited() -+ -+ def composited_changed(screen): -+ self.has_argb = screen.is_composited() -+ self.set_background_transparency( -+ self.client.get_int(KEY('/style/background/transparency'))) -+ self.set_background_image( -+ self.client.get_string(KEY('/style/background/image'))) -+ -+ self.window.get_screen().connect("composited-changed", -+ composited_changed); - - # List of vte.Terminal widgets, it will be useful when needed - # to get a widget by the current page in self.notebook -@@ -659,6 +650,29 @@ class Guake(SimpleGladeApp): - 'press <b>%s</b> to use it.') % label, filename) - notification.show() - -+ def set_background_transparency(self, transparency): -+ for i in self.term_list: -+ i.set_background_saturation(transparency / 100.0) -+ if self.has_argb: -+ i.set_opacity(int((100 - transparency) / 100.0 * 65535)) -+ -+ def set_background_image(self, image): -+ for i in self.term_list: -+ if image and os.path.exists(image): -+ i.set_background_image_file(image) -+ i.set_background_transparent(False) -+ else: -+ """We need to clear the image if it's not set but there is -+ a bug in vte python bidnings which doesn't allow None to be -+ passed to set_background_image (C GTK function expects NULL). -+ The user will need to restart Guake after clearing the image. -+ i.set_background_image(None) -+ """ -+ if self.has_argb: -+ i.set_background_transparent(False) -+ else: -+ i.set_background_transparent(True) -+ - def execute_command(self, command, tab=None): - """Execute the `command' in the `tab'. If tab is None, the - command will be executed in the currently selected Deleted: community-x86_64/fix-crasher.patch =================================================================== --- community-x86_64/fix-crasher.patch 2014-10-20 02:26:34 UTC (rev 120999) +++ community-x86_64/fix-crasher.patch 2014-10-20 02:26:46 UTC (rev 121000) @@ -1,13 +0,0 @@ -diff -Naur guake-0.5.0.orig/src/guake guake-0.5.0/src/guake ---- guake-0.5.0.orig/src/guake 2014-10-05 17:49:44.240402904 +0000 -+++ guake-0.5.0/src/guake 2014-10-05 17:51:22.280038750 +0000 -@@ -634,6 +634,9 @@ - scale_factor = 2 ** (self.font_scale_index / 6) - new_size = int(scale_factor * font.get_size()) - -+ if new_size == 0: -+ return -+ - if font.get_size_is_absolute(): - font.set_absolute_size(new_size) - else: Copied: guake/repos/community-x86_64/fix-crasher.patch (from rev 120999, guake/trunk/fix-crasher.patch) =================================================================== --- community-x86_64/fix-crasher.patch (rev 0) +++ community-x86_64/fix-crasher.patch 2014-10-20 02:26:46 UTC (rev 121000) @@ -0,0 +1,13 @@ +diff -Naur guake-0.5.0.orig/src/guake guake-0.5.0/src/guake +--- guake-0.5.0.orig/src/guake 2014-10-05 17:49:44.240402904 +0000 ++++ guake-0.5.0/src/guake 2014-10-05 17:51:22.280038750 +0000 +@@ -634,6 +634,9 @@ + scale_factor = 2 ** (self.font_scale_index / 6) + new_size = int(scale_factor * font.get_size()) + ++ if new_size == 0: ++ return ++ + if font.get_size_is_absolute(): + font.set_absolute_size(new_size) + else: Copied: guake/repos/community-x86_64/fix-hiding.patch (from rev 120999, guake/trunk/fix-hiding.patch) =================================================================== --- community-x86_64/fix-hiding.patch (rev 0) +++ community-x86_64/fix-hiding.patch 2014-10-20 02:26:46 UTC (rev 121000) @@ -0,0 +1,10 @@ +--- guake-0.5.0.orig/src/guake 2014-10-13 23:11:31.803523945 +0200 ++++ guake-0.5.0.orig/src/guake 2014-10-13 23:11:43.130502724 +0200 +@@ -1094,7 +1094,6 @@ + """Hides the main window of the terminal and sets the visible + flag to False. + """ +- self.window.set_keep_below(True) + self.window.hide() # Don't use hide_all here! + + def get_final_window_monitor(self): Deleted: community-x86_64/fix-hotkey.patch =================================================================== --- community-x86_64/fix-hotkey.patch 2014-10-20 02:26:34 UTC (rev 120999) +++ community-x86_64/fix-hotkey.patch 2014-10-20 02:26:46 UTC (rev 121000) @@ -1,14 +0,0 @@ -diff -Naur guake-0.5.0.orig/src/guake guake-0.5.0/src/guake ---- guake-0.5.0.orig/src/guake 2014-10-05 18:48:34.680242628 +0000 -+++ guake-0.5.0/src/guake 2014-10-05 19:06:14.629370046 +0000 -@@ -1039,10 +1039,6 @@ - if not self.window.get_property('visible'): - self.show() - self.set_terminal_focus() -- elif (self.client.get_bool(KEY('/general/focus_if_open')) and -- self.window.window and -- not self.window.window.get_state()): -- self.window.window.focus() - else: - self.hide() - Copied: guake/repos/community-x86_64/fix-hotkey.patch (from rev 120999, guake/trunk/fix-hotkey.patch) =================================================================== --- community-x86_64/fix-hotkey.patch (rev 0) +++ community-x86_64/fix-hotkey.patch 2014-10-20 02:26:46 UTC (rev 121000) @@ -0,0 +1,14 @@ +diff -Naur guake-0.5.0.orig/src/guake guake-0.5.0/src/guake +--- guake-0.5.0.orig/src/guake 2014-10-05 18:48:34.680242628 +0000 ++++ guake-0.5.0/src/guake 2014-10-05 19:06:14.629370046 +0000 +@@ -1039,10 +1039,6 @@ + if not self.window.get_property('visible'): + self.show() + self.set_terminal_focus() +- elif (self.client.get_bool(KEY('/general/focus_if_open')) and +- self.window.window and +- not self.window.window.get_state()): +- self.window.window.focus() + else: + self.hide() + Deleted: community-x86_64/guake.install =================================================================== --- community-x86_64/guake.install 2014-10-20 02:26:34 UTC (rev 120999) +++ community-x86_64/guake.install 2014-10-20 02:26:46 UTC (rev 121000) @@ -1,22 +0,0 @@ -pkgname=guake - -post_install() { - usr/sbin/gconfpkg --install ${pkgname} - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor -} - -pre_upgrade() { - pre_remove $1 -} - -post_upgrade() { - post_install $1 -} - -pre_remove() { - usr/sbin/gconfpkg --uninstall ${pkgname} -} - -post_remove() { - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor -} Copied: guake/repos/community-x86_64/guake.install (from rev 120999, guake/trunk/guake.install) =================================================================== --- community-x86_64/guake.install (rev 0) +++ community-x86_64/guake.install 2014-10-20 02:26:46 UTC (rev 121000) @@ -0,0 +1,22 @@ +pkgname=guake + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +}