![]() |
Re: Pidgin N900 Questions
ok... now i need help.
the dbus signal from pidgin looks like: Code:
void (*received_im_msg)(PurpleAccount *account, char *sender, char *message, PurpleConversation *conv, PurpleMessageFlags flags);Code:
signal sender=:1.12 -> dest=(null destination) serial=4223 path=/im/pidgin/purple/PurpleObject; interface=im.pidgin.purple.PurpleInterface; member=ReceivedImMsgso my marshaller has to look like: Code:
/* Register dbus signal marshaller */Code:
void received_im_msg_cb (DBusGProxy *purple_proxy, int account_id, that's why i can't use these three very cool functions: Code:
const char *purple_account_get_alias(const PurpleAccount *account);has anyone any idea how to solve this problem? :/ why does pidgin say that it sends a struct and my monitor recognizes an integer? and are there maybe any cool G_TYPE_xxx for getting structs from dbus? |
Re: Pidgin N900 Questions
I only just got my N900 and I'm totally new to Pidgin. It's mostly fine, I just have one little annoyance.
When I move away from the app (for example, if I switch to do something else, or even just when the screen goes off to save the battery), it changes my status to 'Away'. This really annoys me. I want my status to read 'Available' even if I don't have the app on the screen at the moment (it's running, I'm just looking at something else). Is there any way to make it keep my status as 'Available' all the time? |
Re: Pidgin N900 Questions
Quote:
then you could try to set your away-status: when you see your buddylist do a CTRL + P on your keyboard. this will open up the preferences. now click with your finger on the dot on the right side of the screen (on the right side of "proxy"). then the list should scroll to the right where you can find a tab called "status/idle". just uncheck the box next to "change to this status when idle". does that work?! (: |
Re: Pidgin N900 Questions
Quote:
Ahhh, that seems to have done the trick! Thankyou so much, I didn't realise there were extra tabs after the "proxy" one! |
Re: Pidgin N900 Questions
Quote:
Here's the major difference: The function takes a struct; the method call takes an PurpleAccount in the form of an int32, which is what the RecievedImMsg signal gives you. ;) Try, in X Terminal: dbus-send --session --type=method_call --print-reply --dest=im.pidgin.purple.PurpleService /im/pidgin/purple/PurpleObject im.pidgin.purple.PurpleInterface.PurpleAccountGetP rotocolName int32:1100 and you should realise what I mean. |
Re: Pidgin N900 Questions
just updated pidgin ! problem solved :)
|
Re: Pidgin N900 Questions
Quote:
mhm... if you want to you can take the C-code and improve it *laugh* i have already rewritten the code with the use of python and it's much easier, cleaner and smaller :D here's what i've got so far: Code:
#!/usr/bin/env pythonthen you can run it via "python pidginnotifyd.py" in your console. (if you have the right packages installed of course ^^) that's what the output looks like: Code:
b666m@xb666mx:~/pidgin$ python python/pidginnotifyd.py so we can create a nice notification with "Alias (Account)" on top and with "Message" below. of course we can use the buddys icon/avatar as picture for the notification. (maybe the icon requires some more work when you can't give the notification absolute paths - but i have some ideas in mind of how to solve it) |
Re: Pidgin N900 Questions
one picture before falling into my bed:
http://img203.imageshack.us/img203/3...0062502072.png 0. the notification is only shown when conversation hasn't focus. :) 1. callback function when notification is clicked doesn't work / isn't called - only the notification closes (would be cool if we could get the conversation window to foreground) 2. the buddy avatars are stored as ".jpg" - maybe pynotify only accepts ".png"?! - using the pidgin icon instead 3. icq looks ok but msn sends formatted messages like ""<FONT FACE="Times"><FONT COLOR="#000000">Hi!</FONT></FONT>" so there is some work needed to extract the message. haven't tested xmpp and other protocols yet. 4. notification has fixed width - so long messages are getting cut off. maybe a shorten-function would be cool to fit the size - like: "too long messages will be cut" -> "too long messag..." |
Re: Pidgin N900 Questions
Quote:
Quote:
Only thing is, python-xlib is lame so you'd have to resort to ctypes and I have no idea how to implement a D-Bus service in python-dbus (dbus-glib, however ;)); but I think Totem has a Python plugin implementing a remote control service in python-dbus. Quote:
Quote:
Quote:
|
Re: Pidgin N900 Questions
first of all: thanks for your reply - again ;)
Quote:
(i know... because of the numbers in front it looks like all of these points where "to do" - sorry for that ^^) Quote:
void purple_conversation_present (PurpleConversation *conv) Present a conversation to the user. there is already a plugin where you can bring the window to the foreground when someone wrote you - always. and that's the annoying part of it. i think i will try to catch the dbus signal via dbus-monitor and look if i could use it. Quote:
isn't there any dbus-method which i can pass an argument like the window-title or window-id and then it brings the window to foreground?! :// Quote:
Quote:
is there a chance to convert JPG into PNG? any api or cli tool available for fremantle? Quote:
pidgin_set_msn_message(' '.join(sys.argv[1:])) but only the other way around ^^ (i already used str() for getting the right name for getting the buddy-object which is necessary to get all other values (like alias and icon-path and so on)) Quote:
but mhm... i don't know if it's necessary... it would look prettier in my opinion but it's no must-have-feature ^^ |
| All times are GMT. The time now is 02:54. |
vBulletin® Version 3.8.8