summaryrefslogtreecommitdiff
path: root/clients/tui/nmt-editor-section.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-09-24 17:00:50 -0400
committerDan Winship <danw@redhat.com>2014-11-21 09:01:01 -0500
commit04ef74b16f75d285940463919ff6bd65fb170fba (patch)
tree08e57a2810d465c93826a9255adb99d266de4f0d /clients/tui/nmt-editor-section.c
parent5f6b0be525d2d61fae207a4d5be79c44d396b412 (diff)
downloadNetworkManager-04ef74b16f75d285940463919ff6bd65fb170fba.tar.gz
tui: tweak NmtEditorGrid column rules
If an NmtEditorGrid row has a widget, but no label, then we make the widget span both the label and widget columns. But previously we weren't doing the same for rows with labels but no widgets. (In fact, we didn't even allow rows with no widgets; label-only rows had to specify dummy widgets.) Fix it so that labels will span into an empty widget column. (This ensures that a long section name won't force the entire grid to have an overwide label column). Also, in both the "no label" and "no widget" cases, still show the "extra" column if it's present.
Diffstat (limited to 'clients/tui/nmt-editor-section.c')
-rw-r--r--clients/tui/nmt-editor-section.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/tui/nmt-editor-section.c b/clients/tui/nmt-editor-section.c
index 9d892cc521..ad970a90d7 100644
--- a/clients/tui/nmt-editor-section.c
+++ b/clients/tui/nmt-editor-section.c
@@ -87,7 +87,7 @@ rebuild_header (NmtEditorSection *section)
nmt_editor_grid_append (priv->header,
priv->title,
- priv->header_widget ? priv->header_widget : nmt_newt_separator_new (),
+ priv->header_widget,
priv->toggle);
nmt_editor_grid_set_row_flags (priv->header,
priv->toggle,