GCC Code Coverage Report


Directory: ./
File: panels/network/ui-helpers.c
Date: 2024-05-04 07:58:27
Exec Total Coverage
Lines: 0 6 0.0%
Functions: 0 2 0.0%
Branches: 0 16 0.0%

Line Branch Exec Source
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16 *
17 * (C) Copyright 2014 Red Hat, Inc.
18 */
19
20 #include "config.h"
21
22 #include "ui-helpers.h"
23
24 void
25 widget_set_error (GtkWidget *widget)
26 {
27 g_return_if_fail (GTK_IS_WIDGET (widget));
28
29 gtk_widget_add_css_class (widget, "error");
30 }
31
32 void
33 widget_unset_error (GtkWidget *widget)
34 {
35 g_return_if_fail (GTK_IS_WIDGET (widget));
36
37 gtk_widget_remove_css_class (widget, "error");
38 }
39