![]() |
Pidgin Notification Script or Plugin
I will try to cut my development out of this thread:
http://talk.maemo.org/showthread.php?t=38483&page=7 So the python script is ready to use - the source code is posted some lines under this introduction. This python source should be the base for porting it to C/C++ to make it a full pidgin plugin because an extern script isn't good enough. ;) Code:
#!/usr/bin/env python http://img85.imageshack.us/img85/527...0062612374.png |
Re: Pidgin Notification Script or Plugin
can someone upload the "hildon-notification.h" please? :)
|
Re: Pidgin Notification Script or Plugin
and one more question:
Quote:
doesn't that mean that the pidgin-libnotify plugin (which is available and implemented in normal (not-maemo) pidgin) should also work on the n900 without changing anything!? (: i was just taking a look into the source code: http://sourceforge.net/projects/gaim-libnotify/files/ and it seems that the adaption to hildon-notification isn't hard at all - if needed because it should/could work "out of the box" as the page above states. |
Re: Pidgin Notification Script or Plugin
Well, this is an interesting project. Do you think you'll make an plugin and put it in maemo-devel? I know that would be a bit more ambitious, but it might broaden the target user base. And maybe inspire similar projects.
|
Re: Pidgin Notification Script or Plugin
tried to port some functions from python to c++ in a very quick way.
but unfortunately i get MANY warnings and errors - i think i miss something IMPORTant ^^ the main-loop is running - only the things in my callback-function aren't working at all - BUT: that would be how it should look in the end :) c++/glib: (ONLY(!) the basic how-it-should-look/run ^^) Code:
#include <glib.h> |
Re: Pidgin Notification Script or Plugin
and because i had some time for looking into the gaim-notify source code (thx @ the author - http://sourceforge.net/projects/gaim-libnotify/files/) i tried to adapt the code a little bit. i'm just curious if the "gtk pixbuf" is working on the n900 - if not: that should be kicked from the code :P
c++/plugin: (first part) Code:
* |
Re: Pidgin Notification Script or Plugin
c++/plugin: (second part)
Code:
static void |
Re: Pidgin Notification Script or Plugin
these are just some code snippets if anybody is interested to look into it.
right now it would be very helpful if someone could upload the "hildon-notification.h" for me :) |
Re: Pidgin Notification Script or Plugin
GTK+ and PixBuf works as intended, no problem there.
|
Re: Pidgin Notification Script or Plugin
to bad this project got into a slow down, i would help but got zero knowledge about programmin or so
|
Re: Pidgin Notification Script or Plugin
I modified the pidgin-libnotify plugin (since Maemo uses a libnotify compatible notification daemon) so it shows the very same notifications the python script does and also makes the phone vibrate.
I guess if anyone is interested I could create a .deb package an upload it to extras-devel or extra-testing. |
Re: Pidgin Notification Script or Plugin
Quote:
|
Re: Pidgin Notification Script or Plugin
Care to test it first? Just copy the pidgin-libnotify.so in /usr/lib/pidgin in your Maemo device, and activate it in pidgin in Tools -> Plugins.
http://rapidshare.com/files/41865374...n-libnotify.so I will do some others optimizations/testing before packaging, but you could try it out. |
Re: Pidgin Notification Script or Plugin
Quote:
is there a way to use the notification light for this too? |
Re: Pidgin Notification Script or Plugin
Did you check your settings selecting the plugin and pressing the "Configure Plugin" button?
You can select the notification you want to receive there. Right now I have selected "Vibrate" and "New messages" and I receive the notification when I receive a message from a pidgin window that is not focused. |
Re: Pidgin Notification Script or Plugin
it works for me.
wonder what kind of optimizations you got in mind. Good to move it to repo. |
Re: Pidgin Notification Script or Plugin
Well we could release this as a first version 0.14.1.
I was thinking for example: right now the notification is auto-closed in 3 seconds. I was thinking to put an option to not close the notifications but if you click on them instead it goes to the pidgin window that sent the notification. I think that's the Conversations behavior. To me it's really annoying because if you receive a lot of messages from different people you have to click on them to close them & go to the window. But maybe there's people out there that like that. BTW the original maintainer of the plugin looks like he abandoned it in 2008. It's still his software that's why he's on the credits, I just added a few lines to port it to Maemo. |
Re: Pidgin Notification Script or Plugin
Quote:
is there a way you can make the notification stay till it gets clicked? |
Re: Pidgin Notification Script or Plugin
Quote:
|
Re: Pidgin Notification Script or Plugin
first of all:
nice porting. the plugin works as it should. thank you. :) Quote:
for me the best solution is to let the user set the popup-timeout. and make a checkbox if a click on the popup brings the conversation to foreground or just removes the popup. (: |
Re: Pidgin Notification Script or Plugin
Where can i download pidgin-libnotify.so from?
|
Re: Pidgin Notification Script or Plugin
I just released the version 0.14.2 of the pidgin-libnotify plugin. It now includes autoclose as an option, as well as the led alert.
So if you have the led option enabled when you receive an alert it will blink the led (just like it does when you receive an SMS) until the notification is closed. If autoclose is enabled, the notification will be closed automatically in 3 seconds. Otherwise it stays open. If you click on it, it'll focus the IM window of the buddy that talked to you (and caused the notification). If that window was previously closed, it'll reopen it. I'm waiting for the upload permission on the repo, so if you're one of the first 10 people that read this post, you can download it from: http://rapidshare.com/files/42024550....2-1_armel.deb Install with dpkg -i pidgin-libnotify_0.14.2-1_armel.deb |
Re: Pidgin Notification Script or Plugin
can you release this for other MSN plugins? (i have Pecan on my N900). That would be great! See this:
http://talk.maemo.org/showthread.php?t=62492 |
Re: Pidgin Notification Script or Plugin
Quote:
I think Conversations is closed source software anyway. You could edit the MSN Pecan plugin to add notifications for it but if you want them in Skype or any other that's closed you would be in trouble. I also use MSN pecan but for pidgin. Since Conversations and pidgin use libpurple their protocols can be used in both. pidgin > Conversations |
Re: Pidgin Notification Script or Plugin
scorpius it says incompatible application package
|
Re: Pidgin Notification Script or Plugin
Quote:
I think you need Maemo 5 Fremantle for it to work and maybe on a N900... |
Re: Pidgin Notification Script or Plugin
Quote:
|
Re: Pidgin Notification Script or Plugin
Quote:
Quote:
|
Re: Pidgin Notification Script or Plugin
I'd love this script but is there a way that i can enable autoclose but still get the led light on? because if i enabled autoclose the led light blinks twice and then gone so it didnt really notify me anything, i want to be able to get new messages without having to close each additional window open... thanks :)
|
Re: Pidgin Notification Script or Plugin
Quote:
I can't put the code when the message window is focused because it's autofocused when you receive a message so it would be the same behavior. Maybe when you answer the message but if you don't want to answer: same problem. |
Re: Pidgin Notification Script or Plugin
Hello,
I have used the plugin in pidgin. Good work. I wonder if it is possible/easy enough to implement, so that the user can set the time for the autoclose option; eg autoclose in 5, 10 or whatever seconds. Thanks |
Re: Pidgin Notification Script or Plugin
Quote:
Right now I'm beta testing the version 0.12.4. In this version notifications are autoclosed if you focus the conversation window that triggered the notification, so you don't have to close all notifications because it can get really annoying all those open notifications. I'm also thinking a sound alert as an option as well (like the email does), sometimes I put my phone in the bed and people talk to me and I don't notice because I can't feel the vibration. |
Re: Pidgin Notification Script or Plugin
Will there be an option for this plugin to just vibrate without any other notifications? (Just Vibrate on any incoming messages, without showing any yellow "balloon" notifications or blinking leds)
It'll be great to have the ability to turn this feature on/off. |
Re: Pidgin Notification Script or Plugin
Quote:
Anyway if you use the autoclose and turn off the led notification you would get (more or less) what you want. |
Re: Pidgin Notification Script or Plugin
Quote:
I want to preserve the LED blink and vibrate, but not the yellow balloon thing. And the next time I get focus to the conversation window, the LED will just stop blinking (right now I still have to tap the new message notification to stop the LED) but then, this is a great plug-in I've been searching for a while. Thanks a lot edit. oops, you're just saying that you're still beta testing 0.12.4 while I'm already using 0.14.2 now is this the same plug-in as in http://maemo.org/packages/view/pidgin-libnotify/ or was I posting to the wrong thread? :D |
Re: Pidgin Notification Script or Plugin
I can not have the LED notification? how to implement it?
|
Re: Pidgin Notification Script or Plugin
Quote:
|
Re: Pidgin Notification Script or Plugin
Hi Scorpius.
I have question, if all options can be switched separately on seperate events ? I want to auto close option disabled for message, but enabled for contact signing in ... Is that possible ? |
All times are GMT. The time now is 17:54. |
vBulletin® Version 3.8.8