
These SPDX license identifiers are deprecated ([1]). Update them. [1] https://spdx.org/licenses/ sed \ -e '1 s%^/\* SPDX-License-Identifier: \(GPL-2.0\|LGPL-2.1\)+ \*/$%/* SPDX-License-Identifier: \1-or-later */%' \ -e '1,2 s%^\(--\|#\|//\) SPDX-License-Identifier: \(GPL-2.0\|LGPL-2.1\)+$%\1 SPDX-License-Identifier: \2-or-later%' \ -i \ $(git grep -l SPDX-License-Identifier -- \ ':(exclude)shared/c-*/' \ ':(exclude)shared/n-*/' \ ':(exclude)shared/systemd/src' \ ':(exclude)src/systemd/src')
52 lines
1.2 KiB
C
52 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2013 Red Hat, Inc.
|
|
*/
|
|
|
|
/**
|
|
* SECTION:nmt-newt-separator
|
|
* @short_description: Separator
|
|
*
|
|
* #NmtNewtSeparator is just a blank label, which is used in a few places
|
|
* where a widget is needed but none is desired, or to add blank space
|
|
* between widgets in containers that don't implement padding.
|
|
*/
|
|
|
|
#include "nm-default.h"
|
|
|
|
#include "nmt-newt-separator.h"
|
|
|
|
G_DEFINE_TYPE(NmtNewtSeparator, nmt_newt_separator, NMT_TYPE_NEWT_COMPONENT)
|
|
|
|
/**
|
|
* nmt_newt_separator_new:
|
|
*
|
|
* Creates a new #NmtNewtSeparator.
|
|
*
|
|
* Returns: a new #NmtNewtSeparator
|
|
*/
|
|
NmtNewtWidget *
|
|
nmt_newt_separator_new(void)
|
|
{
|
|
return g_object_new(NMT_TYPE_NEWT_SEPARATOR, NULL);
|
|
}
|
|
|
|
static void
|
|
nmt_newt_separator_init(NmtNewtSeparator *separator)
|
|
{}
|
|
|
|
static newtComponent
|
|
nmt_newt_separator_build_component(NmtNewtComponent *component, gboolean sensitive)
|
|
{
|
|
return newtLabel(-1, -1, " ");
|
|
}
|
|
|
|
static void
|
|
nmt_newt_separator_class_init(NmtNewtSeparatorClass *separator_class)
|
|
{
|
|
NmtNewtComponentClass *component_class = NMT_NEWT_COMPONENT_CLASS(separator_class);
|
|
|
|
/* virtual methods */
|
|
component_class->build_component = nmt_newt_separator_build_component;
|
|
}
|