pidgin/pidginstatusbox.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 41320
1695e758b590
child 42464
5de142a471e0
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/

41320
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /*
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 * Pidgin - Internet Messenger
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 *
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * Pidgin is the legal property of its developers, whose names are too numerous
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * source distribution.
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 *
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or modify
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * it under the terms of the GNU General Public License as published by
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * (at your option) any later version.
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 *
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 * GNU General Public License for more details.
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 *
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 */
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 # error "only <pidgin.h> may be included directly"
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25 #endif
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 #ifndef PIDGIN_STATUS_BOX_H
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28 #define PIDGIN_STATUS_BOX_H
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 #include <gtk/gtk.h>
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32 G_BEGIN_DECLS
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34 #define PIDGIN_TYPE_STATUS_BOX (pidgin_status_box_get_type ())
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35 G_DECLARE_FINAL_TYPE(PidginStatusBox, pidgin_status_box, PIDGIN, STATUS_BOX,
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 GtkBox)
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
37
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38 GtkWidget *pidgin_status_box_new(void);
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 G_END_DECLS
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41
1695e758b590 Overhaul the status box
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 #endif /* PIDGIN_STATUS_BOX_H */

mercurial