<div dir="ltr">Hmm. I guess I'll just go with option 1 - if other activities are doing that then the user might expect similar behaviour.<div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px; max-height:0px;" src="https://mailfoogae.appspot.com/t?sender=acHJhc29vbjkyLmlpdHJAZ21haWwuY29t&type=zerocontent&guid=0203c2cd-2a00-44fa-90ca-b4568c950fa1"><font color="#ffffff" size="1">ᐧ</font></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 20, 2014 at 2:29 PM, Sam Parkinson <span dir="ltr"><<a href="mailto:sam.parkinson3@gmail.com" target="_blank">sam.parkinson3@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,<br></div><div><br>Three different ideas. <br><br>Number 1:<br>--------------<br><br></div><div>
Maybe you should do this like the (non-social) help, and not display the option for activities that don't have a form.  I'm not sure how possible that would be; depends on your architecture.<br>

<br></div><div>Number 2:<br></div><div>--------------<br><br>Why don't you just do like what happens in the journal?<br><br>When the journal can't find any items it replaces the listview with a label that says "Can't find anything :P" (okay, not exactly).<br>


<br><div>Number 3:<br></div>--------------<br><br></div><div>I think Walter made a pull request to add a service to show notification banners (like you want).  Here is the pull request & discussion:  <a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/139" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/139</a><br>


</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Sun, Jul 20, 2014 at 5:32 PM, Prasoon Shukla <span dir="ltr"><<a href="mailto:prasoon92.iitr@gmail.com" target="_blank">prasoon92.iitr@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">It's actually just like view source - you can be running any activity and upon pressing the shortcut, the social-help activity is launched. However, if there is no category (in the discourse forum) for currently active activity, then we just want to display a notification saying so.<div>



<br></div><div>I really would like help with this - I'm stuck at this point.</div><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px" src="https://mailfoogae.appspot.com/t?sender=acHJhc29vbjkyLmlpdHJAZ21haWwuY29t&type=zerocontent&guid=67f5608c-eaa8-45d0-a848-e2c98ad99f62"><font color="#ffffff" size="1">ᐧ</font></div>



</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 20, 2014 at 12:04 AM, Gonzalo Odiard <span dir="ltr"><<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><div>On Sat, Jul 19, 2014 at 3:07 PM, Prasoon Shukla <span dir="ltr"><<a href="mailto:prasoon92.iitr@gmail.com" target="_blank">prasoon92.iitr@gmail.com</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all<div><br></div><div>I've had this problem for some time now and I couldn't find a solution to it.</div>




<div><br></div><div>The use case is like this: The user presses a keyboard shortcut (alt+shift+c) to launch an activity. However, if a certain condition is met, we <i>don't</i> launch the activity and instead we show the user a notification in the currently active/running activity. I want to show a notification and I <i>don't</i> have the activity instance on which I can attach a <font face="courier new, monospace">NotificationAlert</font>.</div>




</div></blockquote><div><br></div></div><div>Are you trying to start one activity from another activity?</div><div>What code you use to start the activity?</div><span><font color="#888888"><div><br></div><div>
Gonzalo</div><div><br></div></font></span></div>
</div></div>
</blockquote></div><br></div>
</div></div><br></div></div>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>