* Withdraws all notifications of the specified type. If there is a notification * of a different type which would otherwise replace this type, it will also be * withdrawn. */
| 200 | * withdrawn. |
| 201 | */ |
| 202 | void |
| 203 | ghb_withdraw_notification (GhbNotification type) |
| 204 | { |
| 205 | switch (type) |
| 206 | { |
| 207 | case GHB_NOTIFY_ITEM_FAILED: |
| 208 | case GHB_NOTIFY_ITEM_DONE: |
| 209 | case GHB_NOTIFY_QUEUE_DONE: |
| 210 | g_application_withdraw_notification(g_application_get_default(), "hb-done"); |
| 211 | break; |
| 212 | case GHB_NOTIFY_PAUSED_LOW_DISK_SPACE: |
| 213 | case GHB_NOTIFY_PAUSED_POWER_SAVE: |
| 214 | case GHB_NOTIFY_PAUSED_LOW_BATTERY: |
| 215 | case GHB_NOTIFY_PAUSED_ON_BATTERY: |
| 216 | g_application_withdraw_notification(g_application_get_default(), "hb-paused"); |
| 217 | break; |
| 218 | default: |
| 219 | g_debug("Notification not implemented"); |
| 220 | break; |
| 221 | } |
| 222 | } |
no outgoing calls
no test coverage detected