pidgin/pidgintalkatu.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 41124
95555046173e
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/

39223
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /* pidgin
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 *
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Pidgin is the legal property of its developers, whose names are too numerous
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 * to list here. Please refer to the COPYRIGHT file distributed with this
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * source distribution.
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 *
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * (at your option) any later version.
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 *
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * GNU General Public License for more details.
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 *
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 * along with this program; if not, write to the Free Software
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 */
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21
40502
875489636847 pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents: 40360
diff changeset
22 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
875489636847 pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents: 40360
diff changeset
23 # error "only <pidgin.h> may be included directly"
875489636847 pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents: 40360
diff changeset
24 #endif
875489636847 pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents: 40360
diff changeset
25
39223
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 #ifndef PIDGIN_TALKATU_H
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 #define PIDGIN_TALKATU_H
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29 #include <gtk/gtk.h>
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31 #include <talkatu.h>
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32
40360
e21f3bbcc2a5 Update all of the pidgin code to include purple.h
Gary Kramlich <grim@reaperworld.com>
parents: 39397
diff changeset
33 #include <purple.h>
39223
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35 G_BEGIN_DECLS
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36
39394
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
37 /**
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
38 * pidgin_talkatu_editor_new_for_connection:
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
39 * @pc: The connection for which the editor should be created
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
40 *
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
41 * Creates a new #TalkatuEditor appropriate for use with @pc.
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
42 *
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
43 * Returns: (transfer full): the new #TalkatuEditor
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
44 */
39223
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 GtkWidget *pidgin_talkatu_editor_new_for_connection(PurpleConnection *pc);
39394
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
46
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
47 /**
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
48 * pidgin_talkatu_buffer_new_for_connection:
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
49 * @pc: The connection for which the buffer should be created
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
50 *
39397
ed156296b47a pidgin: Improve pidgin_talkatu_buffer_new_for_connection() docstring
Mike Ruprecht <cmaiku@gmail.com>
parents: 39394
diff changeset
51 * Creates a new #TalkatuBuffer. Depending on @pc's #PurpleConnectionFlags,
ed156296b47a pidgin: Improve pidgin_talkatu_buffer_new_for_connection() docstring
Mike Ruprecht <cmaiku@gmail.com>
parents: 39394
diff changeset
52 * it will create a plain, HTML, or markdown buffer.
39394
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
53 *
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
54 * Returns: (transfer full): the new #TalkatuBuffer
837a999f0ee3 pidgin: Add documentation for functions in pidgintalkatu.h
Mike Ruprecht <cmaiku@gmail.com>
parents: 39223
diff changeset
55 */
39223
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56 GtkTextBuffer *pidgin_talkatu_buffer_new_for_connection(PurpleConnection *pc);
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
57
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 G_END_DECLS
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59
7016ec26cd75 Move GtkPounce to Talkatu
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
60 #endif /* PIDGIN_TALKATU_H */

mercurial