src/gaim-send-async

Sun, 30 Oct 2005 23:36:51 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Sun, 30 Oct 2005 23:36:51 +0000
changeset 11911
797cf405943c
parent 11332
35bbaaee70a7
child 13221
98e6b83ab770
permissions
-rwxr-xr-x

[gaim-migrate @ 14202]
SF Patch #1339005 from Sadrul

"This patch is a fix for this small bug:

(1) open a new conversation with some buddy in a contact.
(2) open another conversation with another buddy in the
same contact.
(3) now press space/enter on the first buddy in the
buddy-list. you will notice that the active-buddy in
the conversation doesn't change to the buddy you just
activated."

committer: Richard Laager <rlaager@pidgin.im>

#!/bin/bash

METHOD_NAME=$1

if test -z "$METHOD_NAME" 
then
    cat <<EOF 
This program calls gaim API functions using DBus.  As opposed to gaim-send, 
it does not print the return value.

Usage:

   $0 method-name type1:parameter1 type2:parameter2 ...

This shell script just invokes dbus-send, see man dbus-send for how 
to specify the parameters.  

Examples:

   $0 GaimCoreQuit

Use dbus-viewer to get the list of supported functions and their parameters.
EOF
    exit 1
fi

shift
dbus-send --dest=org.gaim.GaimService --type=method_call /org/gaim/GaimObject org.gaim.GaimInterface.$METHOD_NAME "$@"

echo 

mercurial