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

gboolean notify_notification_close ( NotifyNotification *  notification,
GError **  error 

notify_notification_close: : The notification. : The returned error information.

Tells the notification server to hide the notification on the screen.

Returns: TRUE if successful. On error, this will return FALSE and set .

Definition at line 1225 of file notification.c.

Referenced by notify_uninit().

      NotifyNotificationPrivate *priv;
      GError *tmp_error = NULL;

      g_return_val_if_fail(notification != NULL, FALSE);
      g_return_val_if_fail(NOTIFY_IS_NOTIFICATION(notification), FALSE);
      g_return_val_if_fail(error == NULL || *error == NULL, FALSE);

      priv = notification->priv;

      dbus_g_proxy_call(_notify_get_g_proxy(), "CloseNotification", &tmp_error,
                                G_TYPE_UINT, priv->id, G_TYPE_INVALID,

      if (tmp_error != NULL)
            g_propagate_error(error, tmp_error);
            return FALSE;

      return TRUE;

Generated by  Doxygen 1.6.0   Back to index