pidgin/pidginnotificationauthorizationrequest.h

Sun, 03 Nov 2024 00:05:44 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Sun, 03 Nov 2024 00:05:44 -0500
changeset 43045
308e8d0ce68c
parent 42961
9b94dce254d8
child 43177
595a5f31003a
permissions
-rw-r--r--

remove purple3-url-handler.desktop.in.in

The application that did the launching was removed long ago. Also this should
be implemented by the user interfaces and they might provide separate files to
groups schemas as well.

Testing Done:
Called in the turtles.

Reviewed at https://reviews.imfreedom.org/r/3640/

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

mercurial