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