/* * call-seq: * hint_double(key, value) * * key = The hint * * value = The hint's value * * Sets a hint with a double value */ static VALUE _wrap_notification_set_hint_double(VALUE self, VALUE key, VALUE value) { char *vkey = NIL_P(key) ? NULL : StringValuePtr(key); NotifyNotification *n = NOTIFY_NOTIFICATION(RVAL2GOBJ(self)); #ifdef DEBUG if(NOTIFY_IS_NOTIFICATION(n)) rb_warn("set_hint_double, ok"); else rb_warn("set_hint_double, no ok"); #endif notify_notification_set_hint_double(n, vkey, NUM2DBL(value)); return Qnil; }