[arch-commits] Commit in synapse/trunk (PKGBUILD concrete-gtk-timeout.patch)

Felix Yan fyan at nymeria.archlinux.org
Sat Mar 22 06:00:56 UTC 2014


    Date: Saturday, March 22, 2014 @ 07:00:56
  Author: fyan
Revision: 108062

upgpkg: synapse 0.2.10-6

- add patch from FS#37282 to fix build, address FS#39579

Added:
  synapse/trunk/concrete-gtk-timeout.patch
Modified:
  synapse/trunk/PKGBUILD

----------------------------+
 PKGBUILD                   |   11 ++++--
 concrete-gtk-timeout.patch |   75 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 83 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-22 01:23:54 UTC (rev 108061)
+++ PKGBUILD	2014-03-22 06:00:56 UTC (rev 108062)
@@ -4,7 +4,7 @@
 
 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 @@
 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 @@
   # 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"
 

Added: concrete-gtk-timeout.patch
===================================================================
--- concrete-gtk-timeout.patch	                        (rev 0)
+++ concrete-gtk-timeout.patch	2014-03-22 06:00:56 UTC (rev 108062)
@@ -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 ();
+           });
+       });




More information about the arch-commits mailing list