| |
1 /* |
| |
2 * Pidgin - Internet Messenger |
| |
3 * Copyright (C) Pidgin Developers <devel@pidgin.im> |
| |
4 * |
| |
5 * Pidgin is the legal property of its developers, whose names are too numerous |
| |
6 * to list here. Please refer to the COPYRIGHT file distributed with this |
| |
7 * source distribution. |
| |
8 * |
| |
9 * This program is free software; you can redistribute it and/or modify |
| |
10 * it under the terms of the GNU General Public License as published by |
| |
11 * the Free Software Foundation; either version 2 of the License, or |
| |
12 * (at your option) any later version. |
| |
13 * |
| |
14 * This program is distributed in the hope that it will be useful, |
| |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| |
17 * GNU General Public License for more details. |
| |
18 * |
| |
19 * You should have received a copy of the GNU General Public License |
| |
20 * along with this program; if not, see <https://www.gnu.org/licenses/>. |
| |
21 */ |
| |
22 |
| |
23 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION) |
| |
24 # error "only <pidgin.h> may be included directly" |
| |
25 #endif |
| |
26 |
| |
27 #ifndef PIDGIN_NOTIFICATION_AUTHORIZATION_REQUEST_H |
| |
28 #define PIDGIN_NOTIFICATION_AUTHORIZATION_REQUEST_H |
| |
29 |
| |
30 #include <glib.h> |
| |
31 |
| |
32 #include <gtk/gtk.h> |
| |
33 |
| |
34 #include <purple.h> |
| |
35 |
| |
36 #include "pidginnotification.h" |
| |
37 #include "pidginversion.h" |
| |
38 |
| |
39 G_BEGIN_DECLS |
| |
40 |
| |
41 /** |
| |
42 * PidginNotificationAuthorizationRequest: |
| |
43 * |
| |
44 * #PidginNotificationAuthorizationRequest is a widget that displays |
| |
45 * notifications from [class@Purple.NotificationManager] for |
| |
46 * [class@Purple.AuthorizationRequest]. |
| |
47 * |
| |
48 * Since: 3.0 |
| |
49 */ |
| |
50 |
| |
51 #define PIDGIN_TYPE_NOTIFICATION_AUTHORIZATION_REQUEST (pidgin_notification_authorization_request_get_type()) |
| |
52 |
| |
53 PIDGIN_AVAILABLE_IN_3_0 |
| |
54 G_DECLARE_FINAL_TYPE(PidginNotificationAuthorizationRequest, |
| |
55 pidgin_notification_authorization_request, |
| |
56 PIDGIN, NOTIFICATION_AUTHORIZATION_REQUEST, |
| |
57 PidginNotification) |
| |
58 |
| |
59 /** |
| |
60 * pidgin_notification_authorization_request_new: |
| |
61 * @notification: A [class@Purple.NotificationAuthorizationRequest] to display. |
| |
62 * |
| |
63 * Creates a new #PidginNotificationAuthorizationRequest instance that will |
| |
64 * display @notification. |
| |
65 * |
| |
66 * Returns: (transfer full): The new #PidginNotificationAuthorizationRequest |
| |
67 * instance. |
| |
68 * |
| |
69 * Since: 3.0 |
| |
70 */ |
| |
71 PIDGIN_AVAILABLE_IN_3_0 |
| |
72 GtkWidget *pidgin_notification_authorization_request_new(PurpleNotificationAuthorizationRequest *notification); |
| |
73 |
| |
74 G_END_DECLS |
| |
75 |
| |
76 #endif /* PIDGIN_NOTIFICATION_AUTHORIZATION_REQUEST_H */ |