Patches item #1672389, was opened at 2007-03-02 13:12
Message generated for change (Comment added) made by filippo_a
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300235&aid=1672389&group_id=235

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: newfeature
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: filippo_a (filippo_a)
Assigned to: Nobody/Anonymous (nobody)
Summary: Attention request signals..

Initial Comment:
Hi i was trying to write, just for fun, a plugin that shakes the window when a 
nudge arrives but the only way i've found to do it was listening to 
displayed-im-msg signal. Since i don't think that's the better way i've added 
two conversation signals that are emitted when msn receives and sends a nudge. 
They can also be emitted by yahoo buzz or whenever an "attention request" event 
is needed. The received-attention-request signal takes also a string as an 
argument to contain the buddy name who requested our attention.
Please let me know if am i doing something wrong or if it isn't the right way 
to do it.
I've also writed a small plugin to test the signals and make window shake on 
nudge.. let me know if you want to test it.
Thanks
Filippo


----------------------------------------------------------------------

>Comment By: filippo_a (filippo_a)
Date: 2007-03-02 21:38

Message:
Logged In: YES 
user_id=1733309
Originator: YES

Hey, I've written another patch to better follow what rlaager said and
what i've discussed with etan on irc..
I've added gaim_conv_bell_send and _receive functions to the core, and a
new prpl_info function pointer send_bell.
gaim_conv_bell_receive simply prints a system message and emits a bell
receive signal that can be catched on plugins.
gaim_conv_bell_send just prints a system message.
prpl->send_bell is intended for future use for example bell sending button
or something else.
I've just changed the msn protocol only, still have to make yahoo use my
core api. I don't know if other protocols support sending attention
requests.
I've moved part of msn_cmd_nudge to msn_send_bell leaving the command
function just to manage command return value.
As i recall that's all. Please let me know if it is the right way to fit
your requests!
Thanks
Filippo

PS.
as i said before i've written also a sample plugin to make the window
shake (please don't hate me for this :P) if you want to try it let me know!
File Added: gaim-bell.diff

----------------------------------------------------------------------

Comment By: filippo_a (filippo_a)
Date: 2007-03-02 16:00

Message:
Logged In: YES 
user_id=1733309
Originator: YES

i didnt't catch you on im..
i don't know if i understood what you mean.. you want me to write the
common function to replace msn_nudge and the equivalent of yahoo with a
cross-protocol one? and emit my signal from there? i'm new to gaim
development what do you mean when you say core? libgaim? isn't
conversation.c the right place to register my signals?


----------------------------------------------------------------------

Comment By: Richard Laager (rlaager)
Date: 2007-03-02 14:32

Message:
Logged In: YES 
user_id=156487
Originator: NO

The plan we've had for this is to add a concept of a "bell" (or similar)
to the core. The protocols would call some common function to deal with the
receipt of a nudge or buzz, and the core would sent the signal and print
the message to the conversation window. If you're going to start adding
signals for this, I'd like to see the core functionality taken care of at
the same time.

If you want to talk about this more, feel free to catch me online. Given
that you've written patches for them, the following protocols will probably
work best for you: Yahoo: rlaager or MSN: [EMAIL PROTECTED]

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300235&aid=1672389&group_id=235

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gaim-patches mailing list
Gaim-patches@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gaim-patches

Reply via email to