pidgin/purple-plugin-pack

Core plugin is complete and builds without errors or warnings here
org.guifications.plugins.smartear
2007-07-08, rekkanoryo
2b2b2a199442
Parents 5768717220d6
Children 71810e45fd17
Core plugin is complete and builds without errors or warnings here
--- a/smartear/smartear.c Sun Jul 08 07:14:32 2007 -0400
+++ b/smartear/smartear.c Sun Jul 08 23:10:49 2007 -0400
@@ -86,10 +86,16 @@
static const char *
smartear_sound_get_default(SmartEarEvent event)
{
- /* TODO: Finish me! */
-#warning Finish me!!!
+ const char *prefname = NULL, *prefval = NULL;
+ char *prefpath = NULL;
- return NULL;
+ prefname = smartear_event_get_setting_string(event);
+ prefpath = g_strdup_printf("/plugins/core/smartear/%s", prefname);
+ prefval = purple_prefs_get_string(prefpath);
+
+ g_free(prefpath);
+
+ return prefval;
}
static const char *