<div class="gmail_quote">Hey Gary,</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Mon, Sep 28, 2009 at 8:15 PM, Gary C Martin <span dir="ltr"><<a href="mailto:gary@garycmartin.com">gary@garycmartin.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hmmm. So what happens when Sugar depreciates some API and breaks old activities? Say in a year or so when the core folks decide to remove the old toolbar API code? Or perhaps some of Telepathy and its API which is getting rather overdue for a fix'er'upper effort?</blockquote>
<div><br></div><div>Yikes I really hope this never happens - the old toolbar code just depends on GTK, right? And if we drop some part of the collaboration API, couldn't the Sugar team at least include a compatibility shim? I guess it'll always come down to a decision about how many activities are being broken and how likely they are to be fixed.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">1) Do the work to maintain backwards compatibility<br>
</blockquote>
<br></div>
See this is where I'm at. I'm very tempted to go back and add the old toolbar support back into Write (I already did this for Calculate and it's not too painful, working on the same for Labyrinth just now). The core devs don't think this is worth the effort, because they want folks to move up to newer versions of Sugar (and get to use all the great new features they have worked on), but the Activity developers also want their activities to be a maximum benefit right now, which means supporting 0.82 for the ~98% of our user base right now.</blockquote>
<div><br></div><div>Ok then, I'm inspired :) Is there a list of the activities that have been ported to the new toolbar design somewhere, which need compatibility code written? It didn't seem trivial for Terminal, but it's only a few dozen lines of code after all.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If it's just for developers that want to specifically warn that their activity won't work. Why not let them just pop in a try/except around the sensitive API and show an alert within their Activity? If they already know enough to know it will fail, they'll know where and why.</blockquote>
</blockquote><div><br></div><div>Yep - an alert would work, or if there were a way for the activity to pass a human readable launch failure message back to the launcher window we would be all set.</div><div><br></div><div>
-Wade</div></div>