pidgin/pidgindialog.h

Thu, 21 Jul 2022 01:10:22 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Thu, 21 Jul 2022 01:10:22 -0500
changeset 41454
7cc69bde919d
parent 41124
95555046173e
permissions
-rw-r--r--

Update pidgin for the purple_account_manager_get_(in)active deprecations

Testing Done:
Compiled and made sure the menus still functioned as expected.

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

40533
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /*
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 * pidgin
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 *
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 * Pidgin is the legal property of its developers, whose names are too numerous
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * to list here. Please refer to the COPYRIGHT file distributed with this
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 * source distribution.
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 *
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 * This program is free software; you can redistribute it and/or modify
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 * it under the terms of the GNU General Public License as published by
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 * (at your option) any later version.
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 *
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 * This program is distributed in the hope that it will be useful,
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 * GNU General Public License for more details.
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 *
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License
40539
2941deda6d8d Use an https link to gnu.org in the license file headers
Gary Kramlich <grim@reaperworld.com>
parents: 40533
diff changeset
19 * along with this program; if not, see <https://www.gnu.org/licenses/>.
40533
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 */
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 # error "only <pidgin.h> may be included directly"
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 #endif
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 #ifndef PIDGIN_DIALOG_H
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 #define PIDGIN_DIALOG_H
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29 #include <glib.h>
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31 #include <gtk/gtk.h>
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33 G_BEGIN_DECLS
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34
41124
95555046173e Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 40539
diff changeset
35 /**
95555046173e Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 40539
diff changeset
36 * PidginDialog:
95555046173e Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 40539
diff changeset
37 *
95555046173e Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 40539
diff changeset
38 * #PidginDialog is a transitional widget as we slowly migrate everything to
95555046173e Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 40539
diff changeset
39 * glade.
95555046173e Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 40539
diff changeset
40 */
95555046173e Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 40539
diff changeset
41
40533
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 #define PIDGIN_TYPE_DIALOG (pidgin_dialog_get_type())
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
43 G_DECLARE_FINAL_TYPE(PidginDialog, pidgin_dialog, PIDGIN,
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44 DIALOG, GtkDialog)
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46 /**
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 * pidgin_dialog_new:
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 * @title: The dialog title, or %NULL.
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 * @border_width: The dialog's desired border width.
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 * @role: A string indicating what the dialog is responsible for doing, or
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 * %NULL.
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 * @resizable: Whether the dialog should be resizable.
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53 *
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54 * Creates a new #PidginDialog instance.
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 *
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56 * Returns: (transfer full): The new #PidginDialog instance.
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
57 *
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 * Since: 3.0.0
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59 */
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
60 GtkWidget *pidgin_dialog_new(const gchar *title, guint border_width, const gchar *role, gboolean resizable);
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62 G_END_DECLS
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63
b1921b17b683 Replace some utility functions with actual widgets
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 #endif /* PIDGIN_DIALOG_H */

mercurial