Fri, 16 Sep 2022 01:54:11 -0500
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 | 1 | /* pidgin |
| 2 | * | |
| 3 | * Pidgin is the legal property of its developers, whose names are too numerous | |
| 4 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 5 | * source distribution. | |
| 6 | * | |
| 7 | * This program is free software; you can redistribute it and/or modify | |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 18 | * along with this program; if not, write to the Free Software | |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA | |
| 20 | */ | |
| 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 | 26 | #ifndef PIDGIN_TALKATU_H |
| 27 | #define PIDGIN_TALKATU_H | |
| 28 | ||
| 29 | #include <gtk/gtk.h> | |
| 30 | ||
| 31 | #include <talkatu.h> | |
| 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 | 34 | |
| 35 | G_BEGIN_DECLS | |
| 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 | 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 | 56 | GtkTextBuffer *pidgin_talkatu_buffer_new_for_connection(PurpleConnection *pc); |
| 57 | ||
| 58 | G_END_DECLS | |
| 59 | ||
| 60 | #endif /* PIDGIN_TALKATU_H */ |