Logo Search packages:      
Sourcecode: libnotify version File versions  Download package

void notify_notification_set_hint_double ( NotifyNotification *  notification,
const gchar *  key,
gdouble  value 
)

notify_notification_set_hint_double: : The notification. : The hint. : The hint's value.

Sets a hint with a double value.

Definition at line 1009 of file notification.c.

{
      GValue *hint_value;

      g_return_if_fail(notification != NULL);
      g_return_if_fail(NOTIFY_IS_NOTIFICATION(notification));
      g_return_if_fail(key != NULL && *key != '\0');

      hint_value = g_new0(GValue, 1);
      g_value_init(hint_value, G_TYPE_FLOAT);
      g_value_set_float(hint_value, value);
      g_hash_table_insert(notification->priv->hints,
                                    g_strdup(key), hint_value);
}


Generated by  Doxygen 1.6.0   Back to index