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

void notify_notification_set_hint_string ( NotifyNotification *  notification,
const gchar *  key,
const gchar *  value 
)

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

Sets a hint with a string value.

Definition at line 1095 of file notification.c.

Referenced by notify_notification_set_geometry_hints().

{
      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_STRING);
      g_value_set_string(hint_value, value);
      g_hash_table_insert(notification->priv->hints,
                                    g_strdup(key), hint_value);
}


Generated by  Doxygen 1.6.0   Back to index