Re: Trouble building f-spot-0.0.7 and CVS on linux/ppc



Ok, rwabel helped me diagnose this and it turns out I was using a
slightly newer version of gtk-sharp than what ubuntu ships.  Here is a
patch to fix the problem.  I've already committed it to CVS.

--Larry

On Fri, 2005-02-04 at 14:24 +0000, Olafur Arason wrote:
> I get this error:
> ./GroupSelector.cs(923) error CS1502: The best overloaded match for
> method ' Gtk.Button..ctor (System.IntPtr)' has some invalid arguments
> ./GroupSelector.cs(923) error CS1503: Argument 0: Cannot convert from
> 'Gtk.Image' to 'System.IntPtr'
> ./GroupSelector.cs(923) error CS1501: No overload for method
> `Gtk.Button' takes `1' arguments
> ./GroupSelector.cs(923) error CS1501: New invocation: Can not find a
> constructor in `Gtk.Button' for this argument list
> ./GroupSelector.cs(930) error CS1502: The best overloaded match for
> method ' Gtk.Button..ctor (System.IntPtr)' has some invalid arguments
> ./GroupSelector.cs(930) error CS1503: Argument 0: Cannot convert from
> 'Gtk.Image' to 'System.IntPtr'
> ./GroupSelector.cs(930) error CS1501: No overload for method
> `Gtk.Button' takes `1' arguments
> ./GroupSelector.cs(930) error CS1501: New invocation: Can not find a
> constructor in `Gtk.Button' for this argument list
> 
> I'm on Ubuntu Hoary. Mono 1.0.4
> 
> Olafur Arason
> _______________________________________________
> F-spot-list mailing list
> F-spot-list gnome org
> http://mail.gnome.org/mailman/listinfo/f-spot-list
cvs diff -r 1.43 -r 1.44 src/GroupSelector.cs
Index: src/GroupSelector.cs
===================================================================
RCS file: /cvs/gnome/f-spot/src/GroupSelector.cs,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -p -r1.43 -r1.44
--- src/GroupSelector.cs	31 Jan 2005 07:38:55 -0000	1.43
+++ src/GroupSelector.cs	5 Feb 2005 23:07:46 -0000	1.44
@@ -920,14 +920,16 @@ namespace FSpot {
 			min_limit = new Limit (this, Limit.LimitType.Min);
 			max_limit = new Limit (this, Limit.LimitType.Max);
 
-			left = new Gtk.Button (new Gtk.Image (Gtk.Stock.GoBack, Gtk.IconSize.Button));
+			left = new Gtk.Button ();
+			left.Add (new Gtk.Image (Gtk.Stock.GoBack, Gtk.IconSize.Button));
 			left.Relief = Gtk.ReliefStyle.None;
 			//left.Clicked += HandleScrollLeft;
 			left.Pressed += HandleLeftPressed;
 			left.ButtonReleaseEvent += HandleScrollReleaseEvent;
 			left_delay = new Delay (50, new GLib.IdleHandler (HandleScrollLeft));
 
-			right = new Gtk.Button (new Gtk.Image (Gtk.Stock.GoForward, Gtk.IconSize.Button));
+			right = new Gtk.Button ();
+			right.Add (new Gtk.Image (Gtk.Stock.GoForward, Gtk.IconSize.Button));
 			right.Relief = Gtk.ReliefStyle.None;
 			right.Pressed += HandleRightPressed;
 			right.ButtonReleaseEvent += HandleScrollReleaseEvent;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]