Package: gaim
Version: 1:2.0.0+beta5-10
Severity: wishlist
Tags: patch

There's a 'setstatus' command implemented in 'gaim-remote', but there's
no 'getstatus'. For some tasks (eg. setting status to 'offline' on
hibernation and restoring it on resume) it would be useful if such
command existed.

I've attached a patch that implements this command.

Best regards,

norbi

-- System Information:
Debian Release: 4.0
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=C, LC_CTYPE=hu_HU (charmap=ISO-8859-2)

Versions of packages gaim depends on:
ii  gaim-data               1:2.0.0+beta5-10 multi-protocol instant messaging c
ii  libatk1.0-0             1.12.4-3         The ATK accessibility toolkit
ii  libavahi-compat-howl0   0.6.16-3etch1    Avahi Howl compatibility library
ii  libc6                   2.3.6.ds1-13     GNU C Library: Shared libraries
ii  libcairo2               1.2.4-4          The Cairo 2D vector graphics libra
ii  libdbus-1-3             1.0.2-1          simple interprocess messaging syst
ii  libdbus-glib-1-2        0.71-3           simple interprocess messaging syst
ii  libfontconfig1          2.4.2-1.2        generic font configuration library
ii  libglib2.0-0            2.12.4-2         The GLib library of C routines
ii  libgstreamer0.10-0      0.10.10-3        Core GStreamer libraries and eleme
ii  libgtk2.0-0             2.8.20-7         The GTK+ graphical user interface 
ii  libgtkspell0            2.0.10-3+b1      a spell-checking addon for GTK's T
ii  libice6                 1:1.0.1-2        X11 Inter-Client Exchange library
ii  libncursesw5            5.5-5            Shared libraries for terminal hand
ii  libnspr4-0d             1.8.0.11-2       NetScape Portable Runtime Library
ii  libnss3-0d              1.8.0.11-2       Network Security Service libraries
ii  libpango1.0-0           1.14.8-5         Layout and rendering of internatio
ii  libperl5.8              5.8.8-7          Shared Perl library
ii  libsm6                  1:1.0.1-3        X11 Session Management library
ii  libstartup-notification 0.8-2            library for program launch feedbac
ii  libx11-6                2:1.0.3-7        X11 client-side library
ii  libxcursor1             1.1.7-4          X cursor management library
ii  libxext6                1:1.0.1-2        X11 miscellaneous extension librar
ii  libxfixes3              1:4.0.1-5        X11 miscellaneous 'fixes' extensio
ii  libxi6                  1:1.0.1-4        X11 Input extension library
ii  libxinerama1            1:1.0.1-4.1      X11 Xinerama extension library
ii  libxml2                 2.6.27.dfsg-1    GNOME XML library
ii  libxrandr2              2:1.1.0.2-5      X11 RandR extension library
ii  libxrender1             1:0.9.1-3        X Rendering Extension client libra
ii  libxss1                 1:1.1.0-1        X11 Screen Saver extension library

Versions of packages gaim recommends:
ii  gstreamer0.10-alsa            0.10.10-4  GStreamer plugin for ALSA
ii  gstreamer0.10-plugins-base    0.10.10-4  GStreamer plugins from the "base" 
ii  gstreamer0.10-plugins-good    0.10.4-4   GStreamer plugins from the "good" 
ii  python                        2.4.4-2    An interactive high-level object-o
ii  python-dbus                   0.71-3     simple interprocess messaging syst

-- debconf-show failed
diff -Naur gaim-2.0.0+beta5/libgaim/gaim-remote 
gaim-2.0.0+beta5-fixed/libgaim/gaim-remote
--- gaim-2.0.0+beta5/libgaim/gaim-remote        2006-11-10 08:24:19.000000000 
+0100
+++ gaim-2.0.0+beta5-fixed/libgaim/gaim-remote  2007-06-03 17:45:32.000000000 
+0200
@@ -125,6 +125,12 @@
 
         return None
 
+    elif command == "getstatus":
+        current = gaim.GaimSavedstatusGetCurrent()
+        status_type = gaim.GaimSavedstatusGetType(current)
+        status_id = gaim.GaimPrimitiveGetIdFromType(status_type)
+        return status_id
+
     elif command == "getinfo":
         account = findaccount(accountname, protocol)
         connection = cgaim.GaimAccountGetConnection(account)

Reply via email to