pidgin/pidginaddbuddydialog.h

Fri, 16 Sep 2022 01:54:11 -0500

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Fri, 16 Sep 2022 01:54:11 -0500
changeset 41694
83e6692c76a3
parent 41491
565b31cc5238
child 42465
b7d530551c1b
permissions
-rw-r--r--

Change the credential provider row active indicator to a CheckButton

Because I noticed that Adw has a style that is for this sort of thing.

Testing Done:
Opened Credential prefs, and changed selected provider. Also checked that clicking the check button didn't accidentally change its state without changing the row, and that it could not be selected by keyboard separately from the row.

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

41491
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /*
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 * Pidgin - Internet Messenger
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 *
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * Pidgin is the legal property of its developers, whose names are too numerous
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * source distribution.
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 *
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or modify
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * it under the terms of the GNU General Public License as published by
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * (at your option) any later version.
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 *
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 * GNU General Public License for more details.
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 *
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 */
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 # error "only <pidgin.h> may be included directly"
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25 #endif
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 #ifndef PIDGIN_ADD_BUDDY_DIALOG_H
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28 #define PIDGIN_ADD_BUDDY_DIALOG_H
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 #include <gtk/gtk.h>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32 #include <purple.h>
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34 G_BEGIN_DECLS
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 /**
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
37 * PidginAddBuddyDialog:
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38 *
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 * A dialog for adding buddies to your contact list.
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 *
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41 * Since: 3.0.0
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 */
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
43
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44 #define PIDGIN_TYPE_ADD_BUDDY_DIALOG (pidgin_add_buddy_dialog_get_type())
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 G_DECLARE_FINAL_TYPE(PidginAddBuddyDialog, pidgin_add_buddy_dialog, PIDGIN,
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46 ADD_BUDDY_DIALOG, GtkDialog)
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 /**
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 * pidgin_add_buddy_dialog_new:
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 * @account: (nullable): The [class@Purple.Account] to pre-select.
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 * @username: (nullable): The username to pre-fill.
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 * @alias: (nullable): The alias to pre-fill.
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53 * @message: (nullable): The invite message to pre-fill.
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54 * @group: (nullable): The group anem to pre-fill.
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 *
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56 * Creates a add buddy dialog with the pre-filled optional values.
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
57 *
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 * Returns: (transfer full): The widget.
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59 *
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
60 * Since: 3.0.0
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61 */
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62 GtkWidget *pidgin_add_buddy_dialog_new(PurpleAccount *account, const gchar *username, const gchar *alias, const gchar *message, const gchar *group);
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 G_END_DECLS
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65
565b31cc5238 Create PidginAddBuddyDialog.
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66 #endif /* PIDGIN_ADD_BUDDY_DIALOG_H */

mercurial