[Sugar-devel] Notification without activity instance
Prasoon Shukla
prasoon92.iitr at gmail.com
Sun Jul 20 10:45:18 EDT 2014
Hmm. I guess I'll just go with option 1 - if other activities are doing
that then the user might expect similar behaviour.
ᐧ
On Sun, Jul 20, 2014 at 2:29 PM, Sam Parkinson <sam.parkinson3 at gmail.com>
wrote:
> Hi,
>
> Three different ideas.
>
> Number 1:
> --------------
>
> 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.
>
> Number 2:
> --------------
>
> Why don't you just do like what happens in the journal?
>
> 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).
>
> Number 3:
> --------------
>
> I think Walter made a pull request to add a service to show notification
> banners (like you want). Here is the pull request & discussion:
> https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/139
>
>
> On Sun, Jul 20, 2014 at 5:32 PM, Prasoon Shukla <prasoon92.iitr at gmail.com>
> wrote:
>
>> 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.
>>
>> I really would like help with this - I'm stuck at this point.
>> ᐧ
>>
>>
>> On Sun, Jul 20, 2014 at 12:04 AM, Gonzalo Odiard <godiard at sugarlabs.org>
>> wrote:
>>
>>>
>>> On Sat, Jul 19, 2014 at 3:07 PM, Prasoon Shukla <
>>> prasoon92.iitr at gmail.com> wrote:
>>>
>>>> Hi all
>>>>
>>>> I've had this problem for some time now and I couldn't find a solution
>>>> to it.
>>>>
>>>> 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 *don't* 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 *don't* have the activity instance on which I can
>>>> attach a NotificationAlert.
>>>>
>>>
>>> Are you trying to start one activity from another activity?
>>> What code you use to start the activity?
>>>
>>> Gonzalo
>>>
>>>
>>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140720/c5964df8/attachment.html>
More information about the Sugar-devel
mailing list