Apply patches from upstream bug tracker to allow build with recent vala versions
authorJulien Valroff <julien@kirya.net>
Sun, 27 Feb 2011 13:12:36 +0000 (14:12 +0100)
committerJulien Valroff <julien@kirya.net>
Sun, 27 Feb 2011 13:12:36 +0000 (14:12 +0100)
debian/changelog
debian/patches/010_construct-only-properties.diff [new file with mode: 0644]
debian/patches/011_get_style_property-fix.diff [new file with mode: 0644]
debian/patches/series

index b93cad0..14c5df4 100644 (file)
@@ -1,3 +1,10 @@
+pino (0.2.11-4) unstable; urgency=low
+
+  * Apply patches from upstream bug tracker to allow build with recent
+    vala versions 
+
+ -- Julien Valroff <julien@debian.org>  Sun, 27 Feb 2011 14:12:00 +0100
+
 pino (0.2.11-3) unstable; urgency=low
 
   * Bump debhelper compat to 8
diff --git a/debian/patches/010_construct-only-properties.diff b/debian/patches/010_construct-only-properties.diff
new file mode 100644 (file)
index 0000000..bc94311
--- /dev/null
@@ -0,0 +1,30 @@
+Description: Fix build with valac 0.9.7
+Author: Vincent Untz <vincent.untz@gmail.com>
+Bug: http://code.google.com/p/pino-twitter/issues/detail?id=309
+Forwarded: no
+
+--- pino-0.2.10.orig/src/account_action.vala
++++ pino-0.2.10/src/account_action.vala
+@@ -38,7 +38,8 @@ public class AccountAction : Action {
+       weak Thread thread_1;
+       
+       public AccountAction() {
+-              name = "AccountAct";
++              GLib.Object (name: "AccountAct");
++
+               label = _("Accounts");
+               tooltip = null;
+               stock_id = null;
+Index: pino-0.2.10/src/more_window.vala
+===================================================================
+--- pino-0.2.10.orig/src/more_window.vala
++++ pino-0.2.10/src/more_window.vala
+@@ -28,7 +28,7 @@ public class MoreWindow : Window {
+       public signal void moar_event();
+       
+       public MoreWindow() {
+-              type = WindowType.POPUP;
++              GLib.Object (type: WindowType.POPUP);
+               
+               //set_position(WindowPosition.MOUSE);
+               
diff --git a/debian/patches/011_get_style_property-fix.diff b/debian/patches/011_get_style_property-fix.diff
new file mode 100644 (file)
index 0000000..07cc571
--- /dev/null
@@ -0,0 +1,19 @@
+Description: Fix build with vala >= 0.10.2
+Author: Vincent Untz <vincent.untz@gmail.com>
+Bug: http://code.google.com/p/pino-twitter/issues/detail?id=309
+Bug-Debian: http://bugs.debian.org/614431 
+Forwarded: no
+
+--- pino-0.2.10.orig/src/gtk_style.vala
++++ pino-0.2.10/src/gtk_style.vala
+@@ -41,8 +41,8 @@ public class SystemStyle : Object {
+               fg_color = rgb_to_hex(style.fg[Gtk.StateType.NORMAL]);
+               sl_color = rgb_to_hex(style.bg[Gtk.StateType.SELECTED]);
+               
+-              Value v = new Value(typeof(Gdk.Color));// = null;
+-              style.get_style_property(typeof(Gtk.Widget), "link-color", v);
++              Value v = Value(typeof(Gdk.Color));// = null;
++              style.get_style_property(typeof(Gtk.Widget), "link-color", out v);
+               lk_color = rgb_to_hex((Gdk.Color) v);
+               
+               //working on light color (lt_color)
index 651e24a..85c5626 100644 (file)
@@ -1,3 +1,5 @@
 001_sec-accounts-file.diff
 002_allow-current-user-info.diff
 003_es-translation.diff
+010_construct-only-properties.diff
+011_get_style_property-fix.diff