pidgin/pidginnotificationconnectionerror.h

changeset 41441
e114ed471a1e
child 41556
aea59a349641
equal deleted inserted replaced
41440:348cc74f084e 41441:e114ed471a1e
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_CONNECTION_ERROR_H
28 #define PIDGIN_NOTIFICATION_CONNECTION_ERROR_H
29
30 #include <glib.h>
31
32 #include <gtk/gtk.h>
33
34 #include <handy.h>
35
36 #include <purple.h>
37
38 G_BEGIN_DECLS
39
40 /**
41 * PidginNotificationConnectionError:
42 *
43 * #PidginNotificationConnectionError is a widget that displays notifications from
44 * [class@Purple.NotificationManager].
45 *
46 * Since: 3.0.0
47 */
48
49 #define PIDGIN_TYPE_NOTIFICATION_CONNECTION_ERROR (pidgin_notification_connection_error_get_type())
50 G_DECLARE_FINAL_TYPE(PidginNotificationConnectionError, pidgin_notification_connection_error,
51 PIDGIN, NOTIFICATION_CONNECTION_ERROR, HdyActionRow)
52
53 /**
54 * pidgin_notification_connection_error_new:
55 * @notification: A [class@Purple.Notification] to display.
56 *
57 * Creates a new #PidginNotificationConnectionError instance that will display
58 * @notification.
59 *
60 * Returns: (transfer full): The new #PidginNotificationConnectionError
61 * instance.
62 */
63 GtkWidget *pidgin_notification_connection_error_new(PurpleNotification *notification);
64
65 /**
66 * pidgin_notification_connection_error_get_notification:
67 * @error: The instance.
68 *
69 * Gets the [class@Purple.Notification] that @error is displaying.
70 *
71 * Returns: (transfer none): The notification.
72 *
73 * Since: 3.0.0
74 */
75 PurpleNotification *pidgin_notification_connection_error_get_notification(PidginNotificationConnectionError *error);
76
77 G_END_DECLS
78
79 #endif /* PIDGIN_NOTIFICATION_CONNECTION_ERROR_H */

mercurial