Show
Ignore:
Timestamp:
03/13/09 00:10:52 (3 years ago)
Author:
Leo Antunes <leo@…>
Children:
c954bfe63faa9d655b8f94c13a9b8e2fbaa6df96
Parents:
56547456e406341caca65cfab1abe64869a0ffa0
git-committer:
Leo Antunes <leo@…> (03/13/09 00:10:52)
Message:

preferences screen

not yet implemented on callback.c

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • awayonlock.c

    r826d0d3 r0dcf20b  
    3434#include "i18n.h" 
    3535#include "callback.h" 
     36#include "prefs.h" 
    3637 
    3738static DBusGConnection *dbus_conn = NULL; 
     
    4849         
    4950        if(dbus_conn == NULL) {  
     51                purple_debug(PURPLE_DEBUG_ERROR, PACKAGE, N_("failed to get DBus connection\n")); 
    5052                purple_notify_error(plugin, "Away-on-lock", _("Failed to get a DBus connection."), g_strdup_printf("DBus error: %s\n",error->message)); 
    5153                return FALSE; 
     
    6062 
    6163        if(dbus_proxy == NULL) { 
     64                purple_debug(PURPLE_DEBUG_ERROR, PACKAGE, N_("failed to get DBus proxy\n")); 
    6265                purple_notify_error(plugin, "Away-on-lock", _("Failed to create a DBus Proxy."), NULL); 
     66 
    6367                return FALSE; 
    6468        } 
     
    113117        NULL, 
    114118        NULL, 
    115         NULL, 
     119        &prefs, 
    116120        NULL, 
    117121        NULL, 
     
    129133        info.description = _("This plugin sets your status to the default away status whenever your screensaver gets activated."); 
    130134        info.author = _("Leo Antunes <leo@costela.net>"); 
     135 
     136        purple_prefs_add_none("/plugins/core/awayonlock"); 
     137        purple_prefs_add_string("/plugins/core/awayonlock/status", NULL); 
    131138} 
    132139