Mon, 30 Jun 2025 14:22:13 -0500
Update the flatpak to gnome 48 and to the matching birb version
The birb version was missed here when it was updated.
Testing Done:
Built the flatpak with the instructions in the readme.
Reviewed at https://reviews.imfreedom.org/r/4038/
| 43076 | 1 | /* |
| 2 | * Purple - Internet Messaging Library | |
| 3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> | |
| 4 | * | |
| 5 | * Purple 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 library is free software; you can redistribute it and/or modify it | |
| 10 | * under the terms of the GNU General Public License as published by the Free | |
| 11 | * Software Foundation; either version 2 of the License, or (at your option) | |
| 12 | * any later version. | |
| 13 | * | |
| 14 | * This library is distributed in the hope that it will be useful, but WITHOUT | |
| 15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| 16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
| 17 | * more details. | |
| 18 | * | |
| 19 | * You should have received a copy of the GNU General Public License along with | |
| 20 | * this library; if not, see <https://www.gnu.org/licenses/>. | |
| 21 | */ | |
| 22 | ||
| 23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) | |
| 24 | # error "only <purple.h> may be included directly" | |
| 25 | #endif | |
| 26 | ||
| 27 | #ifndef PURPLE_BADGE_MANAGER_H | |
| 28 | #define PURPLE_BADGE_MANAGER_H | |
| 29 | ||
| 30 | #include <glib.h> | |
| 31 | ||
| 32 | #include "purplebadge.h" | |
| 33 | ||
| 34 | G_BEGIN_DECLS | |
| 35 | ||
| 36 | #define PURPLE_TYPE_BADGE_MANAGER (purple_badge_manager_get_type()) | |
| 37 | ||
| 38 | /** | |
| 39 | * PurpleBadgeManager: | |
| 40 | * | |
| 41 | * A cache for badges. | |
| 42 | * | |
| 43 | * This can be used to reuse badges where necessary without having to create a | |
| 44 | * new instance every time. | |
| 45 | * | |
| 46 | * Since: 3.0 | |
| 47 | */ | |
| 48 | PURPLE_AVAILABLE_IN_3_0 | |
| 49 | G_DECLARE_FINAL_TYPE(PurpleBadgeManager, purple_badge_manager, | |
| 50 | PURPLE, BADGE_MANAGER, GObject) | |
| 51 | ||
| 52 | /** | |
| 53 | * purple_badge_manager_add: | |
| 54 | * @manager: The instance. | |
| 55 | * @badge: (transfer none): The badge to add. | |
| 56 | * | |
| 57 | * Adds @badge to @manager. | |
| 58 | * | |
| 59 | * Returns: %TRUE if @badge was not already added to @manager. | |
| 60 | * | |
| 61 | * Since: 3.0 | |
| 62 | */ | |
| 63 | PURPLE_AVAILABLE_IN_3_0 | |
| 64 | gboolean purple_badge_manager_add(PurpleBadgeManager *manager, PurpleBadge *badge); | |
| 65 | ||
| 66 | /** | |
| 67 | * purple_badge_manager_new: | |
| 68 | * | |
| 69 | * Creates a new badge manager. | |
| 70 | * | |
| 71 | * A badge manager is just a runtime cache to help protocols and plugins by | |
| 72 | * holding onto an instance which can be referenced instead of having to always | |
| 73 | * create a new instance. | |
| 74 | * | |
| 75 | * Returns: (transfer full): The new instance. | |
| 76 | * | |
| 77 | * Since: 3.0 | |
| 78 | */ | |
| 79 | PURPLE_AVAILABLE_IN_3_0 | |
| 80 | PurpleBadgeManager *purple_badge_manager_new(void); | |
| 81 | ||
| 82 | /** | |
| 83 | * purple_badge_manager_get_default: | |
| 84 | * | |
| 85 | * Gets the default instance of #PurpleBadgeManager. | |
| 86 | * | |
| 87 | * This instance can be used for any of the API including connecting to | |
| 88 | * signals. | |
| 89 | * | |
| 90 | * Returns: (transfer none): The default instance. | |
| 91 | * | |
| 92 | * Since: 3.0 | |
| 93 | */ | |
| 94 | PURPLE_AVAILABLE_IN_3_0 | |
| 95 | PurpleBadgeManager *purple_badge_manager_get_default(void); | |
| 96 | ||
| 97 | /** | |
| 98 | * purple_badge_manager_find: | |
| 99 | * @manager: The instance. | |
| 100 | * @id: The identifier of the badge. | |
| 101 | * | |
| 102 | * Looks for badge with the given id. | |
| 103 | * | |
| 104 | * Returns: (transfer none) (nullable): The [class@PurpleBadge] if found. | |
| 105 | * | |
| 106 | * Since: 3.0 | |
| 107 | */ | |
| 108 | PURPLE_AVAILABLE_IN_3_0 | |
| 109 | PurpleBadge *purple_badge_manager_find(PurpleBadgeManager *manager, const char *id); | |
| 110 | ||
| 111 | /** | |
| 112 | * purple_badge_manager_remove: | |
| 113 | * @manager: The instance. | |
| 114 | * @id: The identifier of the badge. | |
| 115 | * | |
| 116 | * Removes a badge with the given identifier. | |
| 117 | * | |
| 118 | * Returns: %TRUE if @badge was found and removed. | |
| 119 | * | |
| 120 | * Since: 3.0 | |
| 121 | */ | |
| 122 | PURPLE_AVAILABLE_IN_3_0 | |
| 123 | gboolean purple_badge_manager_remove(PurpleBadgeManager *manager, const char *id); | |
| 124 | ||
| 125 | G_END_DECLS | |
| 126 | ||
| 127 | #endif /* PURPLE_BADGE_MANAGER_H */ |