| 66 | } |
| 67 | |
| 68 | static void |
| 69 | send_notification (const char *title, const char *body, const char *category) |
| 70 | { |
| 71 | g_autoptr(GNotification) notification = g_notification_new(title); |
| 72 | g_autoptr(GIcon) icon = g_themed_icon_new("fr.handbrake.ghb"); |
| 73 | if (body != NULL) |
| 74 | { |
| 75 | g_notification_set_body(notification, body); |
| 76 | } |
| 77 | g_notification_set_icon(notification, icon); |
| 78 | g_application_send_notification(g_application_get_default(), category, notification); |
| 79 | } |
| 80 | |
| 81 | static void |
| 82 | notify_done (gboolean final, gboolean success, int64_t idx, signal_user_data_t *ud) |
no outgoing calls
no test coverage detected