Changeset 0dcf20b290d256e042d559c2d8b8cdaf18ba6c13 for awayonlock.c
- Timestamp:
- 03/13/09 00:10:52 (3 years ago)
- Children:
- c954bfe63faa9d655b8f94c13a9b8e2fbaa6df96
- Parents:
- 56547456e406341caca65cfab1abe64869a0ffa0
- git-committer:
- Leo Antunes <leo@…> (03/13/09 00:10:52)
- Files:
-
- 1 modified
-
awayonlock.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
awayonlock.c
r826d0d3 r0dcf20b 34 34 #include "i18n.h" 35 35 #include "callback.h" 36 #include "prefs.h" 36 37 37 38 static DBusGConnection *dbus_conn = NULL; … … 48 49 49 50 if(dbus_conn == NULL) { 51 purple_debug(PURPLE_DEBUG_ERROR, PACKAGE, N_("failed to get DBus connection\n")); 50 52 purple_notify_error(plugin, "Away-on-lock", _("Failed to get a DBus connection."), g_strdup_printf("DBus error: %s\n",error->message)); 51 53 return FALSE; … … 60 62 61 63 if(dbus_proxy == NULL) { 64 purple_debug(PURPLE_DEBUG_ERROR, PACKAGE, N_("failed to get DBus proxy\n")); 62 65 purple_notify_error(plugin, "Away-on-lock", _("Failed to create a DBus Proxy."), NULL); 66 63 67 return FALSE; 64 68 } … … 113 117 NULL, 114 118 NULL, 115 NULL,119 &prefs, 116 120 NULL, 117 121 NULL, … … 129 133 info.description = _("This plugin sets your status to the default away status whenever your screensaver gets activated."); 130 134 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); 131 138 } 132 139