summaryrefslogtreecommitdiff
path: root/community/synapse
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-03-23 04:08:07 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-03-23 04:08:07 +0000
commitb8646c38f9f0f867b019d1be98cb6ddd506e0efd (patch)
tree3d44cd931b083adda0dbbd20f029844962aedab9 /community/synapse
parent50a801882f997d91380ebb5a74a63919582cb211 (diff)
Sun Mar 23 04:02:26 UTC 2014
Diffstat (limited to 'community/synapse')
-rw-r--r--community/synapse/PKGBUILD13
-rw-r--r--community/synapse/concrete-gtk-timeout.patch75
2 files changed, 84 insertions, 4 deletions
diff --git a/community/synapse/PKGBUILD b/community/synapse/PKGBUILD
index c6a3accf1..bcc1da070 100644
--- a/community/synapse/PKGBUILD
+++ b/community/synapse/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 88681 2013-04-21 22:16:50Z heftig $
+# $Id: PKGBUILD 108063 2014-03-22 06:02:43Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Alessio Sergi <asergi at archlinux dot us>
pkgname=synapse
pkgver=0.2.10
-pkgrel=5
+pkgrel=6
pkgdesc="A semantic file launcher"
arch=('i686' 'x86_64')
url="https://launchpad.net/synapse-project"
@@ -24,10 +24,12 @@ optdepends=('banshee: banshee plugin'
install=$pkgname.install
source=("https://launchpad.net/$pkgname-project/0.2/$pkgver/+download/$pkgname-$pkgver.tar.gz"
"fix-check-desktop.patch"
- "check-null-exec.patch")
+ "check-null-exec.patch"
+ "concrete-gtk-timeout.patch")
sha1sums=('6e8a800bdbdded4e167734c8e49d95a9e44998ff'
'b64fa4efc4efd01f77f84d19a7a63c10186d0211'
- 'f494e5b36a77421114ce04b7085369abe5c00d68')
+ 'f494e5b36a77421114ce04b7085369abe5c00d68'
+ '6ab8b30bb23fb143d641da62dec7caa61fcd4e28')
build() {
cd "$srcdir/$pkgname-$pkgver"
@@ -38,6 +40,9 @@ build() {
# don't crash on empty Exec field
patch -Np1 -i "$srcdir"/check-null-exec.patch
+ # Namely use Gtk.Timeout:
+ patch -Np1 -i "$srcdir"/concrete-gtk-timeout.patch
+
# DSO fix
export LDFLAGS="$LDFLAGS -lm"
diff --git a/community/synapse/concrete-gtk-timeout.patch b/community/synapse/concrete-gtk-timeout.patch
new file mode 100644
index 000000000..a9014eb0a
--- /dev/null
+++ b/community/synapse/concrete-gtk-timeout.patch
@@ -0,0 +1,75 @@
+diff --git a/src/ui/inspector.vala b/src/ui/inspector.vala
+index b5ec8be..b608a2f 100644
+--- a/src/ui/inspector.vala
++++ b/src/ui/inspector.vala
+@@ -28,7 +28,7 @@ namespace UI
+
+ public Inspector ()
+ {
+- timer_id = Timeout.add (500, this.check_window_at_pointer);
++ timer_id = Gtk.Timeout.add (500, this.check_window_at_pointer);
+ }
+
+ ~Inspector ()
+diff --git a/src/ui/widgets-matchlistview.vala b/src/ui/widgets-matchlistview.vala
+index 2c7b1a7..8a77d74 100644
+--- a/src/ui/widgets-matchlistview.vala
++++ b/src/ui/widgets-matchlistview.vala
+@@ -551,7 +551,7 @@ namespace Synapse.Gui
+ }
+ if (needs_animation)
+ {
+- if (tid == 0) tid = Timeout.add (ANIM_TIMEOUT, this.update_current_offsets);
++ if (tid == 0) tid = Gtk.Timeout.add (ANIM_TIMEOUT, this.update_current_offsets);
+ this.queue_draw ();
+ return true;
+ }
+@@ -734,7 +734,7 @@ namespace Synapse.Gui
+ this.inhibit_move = true;
+ this.set_indexes (this.dragdrop_target_item, this.dragdrop_target_item);
+ this.selected_index_changed (this.select_index);
+- Timeout.add (Gtk.Settings.get_default ().gtk_double_click_time ,()=>{
++ Gtk.Timeout.add (Gtk.Settings.get_default ().gtk_double_click_time ,()=>{
+ if (inhibit_move)
+ {
+ inhibit_move = false;
+diff --git a/src/ui/widgets.vala b/src/ui/widgets.vala
+index 2dd8f16..3acf736 100644
+--- a/src/ui/widgets.vala
++++ b/src/ui/widgets.vala
+@@ -185,7 +185,7 @@ namespace Synapse.Gui
+ {
+ if (tid != 0) return;
+
+- tid = Timeout.add (40, ()=>{
++ tid = Gtk.Timeout.add (40, ()=>{
+ offset = (offset - 1) % (_anim_width);
+ queue_draw ();
+ return true;
+@@ -245,7 +245,7 @@ namespace Synapse.Gui
+ {
+ if (tid == 0)
+ {
+- tid = Timeout.add (INITIAL_TIMEOUT, ()=>{
++ tid = Gtk.Timeout.add (INITIAL_TIMEOUT, ()=>{
+ tid = 0;
+ start_animation ();
+ return false;
+@@ -1085,7 +1085,7 @@ namespace Synapse.Gui
+ }
+ if (tid == 0)
+ {
+- tid = Timeout.add (30, ()=>{
++ tid = Gtk.Timeout.add (30, ()=>{
+ return update_current_offset ();
+ });
+ }
+@@ -1121,7 +1121,7 @@ namespace Synapse.Gui
+ });
+ this.size_allocate.connect (()=>{
+ if (tid == 0)
+- tid = Timeout.add (30, ()=>{
++ tid = Gtk.Timeout.add (30, ()=>{
+ return update_current_offset ();
+ });
+ });