<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">&lt;<a href="mailto:gary@garycmartin.com">gary@garycmartin.com</a>&gt;</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&#39;er&#39;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&#39;t the Sugar team at least include a compatibility shim?  I guess it&#39;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&#39;m at. I&#39;m very tempted to go back and add the old toolbar support back into Write (I already did this for Calculate and it&#39;s not too painful, working on the same for Labyrinth just now). The core devs don&#39;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&#39;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&#39;t seem trivial for Terminal, but it&#39;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&#39;s just for developers that want to specifically warn that their activity won&#39;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&#39;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>