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

void notify_notification_clear_actions ( NotifyNotification *  notification  ) 

notify_notification_clear_actions: : The notification.

Clears all actions from the notification.

Definition at line 1140 of file notification.c.

{
      g_return_if_fail(notification != NULL);
      g_return_if_fail(NOTIFY_IS_NOTIFICATION(notification));

      g_hash_table_foreach_remove(notification->priv->action_map,
                                                (GHRFunc)_remove_all, NULL);

      if (notification->priv->actions != NULL)
      {
            g_slist_foreach(notification->priv->actions, (GFunc)g_free, NULL);
            g_slist_free(notification->priv->actions);
      }

      notification->priv->actions = NULL;
      notification->priv->has_nondefault_actions = FALSE;
}


Generated by  Doxygen 1.6.0   Back to index