Line |
Branch |
Exec |
Source |
1 |
|
|
/* cc-firmware-security-dialog.c |
2 |
|
|
* |
3 |
|
|
* Copyright (C) 2022 Red Hat, Inc |
4 |
|
|
* |
5 |
|
|
* This program is free software; you can redistribute it and/or modify |
6 |
|
|
* it under the terms of the GNU General Public License as published by |
7 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
8 |
|
|
* (at your option) any later version. |
9 |
|
|
* |
10 |
|
|
* This program is distributed in the hope that it will be useful, |
11 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
|
|
* GNU General Public License for more details. |
14 |
|
|
* |
15 |
|
|
* You should have received a copy of the GNU General Public License |
16 |
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>. |
17 |
|
|
* |
18 |
|
|
* Author: Kate Hsuan <hpa@redhat.com> |
19 |
|
|
* |
20 |
|
|
* SPDX-License-Identifier: GPL-2.0-or-later |
21 |
|
|
*/ |
22 |
|
|
|
23 |
|
|
#include "config.h" |
24 |
|
|
|
25 |
|
|
#include <glib/gi18n-lib.h> |
26 |
|
|
|
27 |
|
|
#include "cc-firmware-security-help-dialog.h" |
28 |
|
|
|
29 |
|
|
struct _CcFirmwareSecurityHelpDialog |
30 |
|
|
{ |
31 |
|
|
AdwDialog parent; |
32 |
|
|
}; |
33 |
|
|
|
34 |
|
✗ |
G_DEFINE_TYPE (CcFirmwareSecurityHelpDialog, cc_firmware_security_help_dialog, ADW_TYPE_DIALOG) |
35 |
|
|
|
36 |
|
|
|
37 |
|
|
static void |
38 |
|
✗ |
cc_firmware_security_help_dialog_class_init (CcFirmwareSecurityHelpDialogClass *klass) |
39 |
|
|
{ |
40 |
|
✗ |
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); |
41 |
|
|
|
42 |
|
✗ |
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/privacy/firmware-security/cc-firmware-security-help-dialog.ui"); |
43 |
|
✗ |
} |
44 |
|
|
|
45 |
|
|
static void |
46 |
|
✗ |
cc_firmware_security_help_dialog_init (CcFirmwareSecurityHelpDialog *dialog) |
47 |
|
|
{ |
48 |
|
✗ |
gtk_widget_init_template (GTK_WIDGET (dialog)); |
49 |
|
✗ |
} |
50 |
|
|
|
51 |
|
|
GtkWidget * |
52 |
|
✗ |
cc_firmware_security_help_dialog_new (void) |
53 |
|
|
{ |
54 |
|
✗ |
return g_object_new (CC_TYPE_FIRMWARE_SECURITY_HELP_DIALOG, NULL); |
55 |
|
|
} |
56 |
|
|
|