MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / ghb_withdraw_notification

Function ghb_withdraw_notification

gtk/src/notifications.c:202–222  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

200 * withdrawn.
201 */
202void
203ghb_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}

Callers 4

battery_level_cbFunction · 0.85
upower_status_cbFunction · 0.85
power_save_cbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected