diff options
author | Maksym Hazevych <mhazevych@proton.me> | 2023-01-17 01:09:34 +0200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2023-03-29 14:26:55 +1300 |
commit | d831e5cb48100b27536194cad52b937498b93cd6 (patch) | |
tree | a1e32478f2ca5d6558b982d6a475aeaafc49e0e0 /shell | |
parent | 645b6d1c8a8c7ec4cf6e8cbbeda74f8b6c80d9cf (diff) | |
download | gnome-control-center-d831e5cb48100b27536194cad52b937498b93cd6.tar.gz |
Replace all occurrences of 'gtk_widget_show'
Replace all occurrences of 'gtk_widget_show(smth)' with
'gtk_widget_set_visible(smth, TRUE)'.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cc-panel-list.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/cc-panel-list.c b/shell/cc-panel-list.c index 76a978abc..5373ed597 100644 --- a/shell/cc-panel-list.c +++ b/shell/cc-panel-list.c @@ -533,7 +533,7 @@ header_func (GtkListBoxRow *row, separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_widget_set_hexpand (separator, TRUE); - gtk_widget_show (separator); + gtk_widget_set_visible (separator, TRUE); gtk_list_box_row_set_header (row, separator); } @@ -967,7 +967,7 @@ cc_panel_list_add_panel (CcPanelList *self, /* Only show the Devices/Details rows when there's at least one panel */ if (category == CC_CATEGORY_PRIVACY) - gtk_widget_show (GTK_WIDGET (self->privacy_row)); + gtk_widget_set_visible (GTK_WIDGET (self->privacy_row), TRUE); } /** @@ -1017,7 +1017,7 @@ cc_panel_list_set_active_panel (CcPanelList *self, listbox = gtk_widget_get_parent (data->row); /* The row might be hidden now, so make sure it's visible */ - gtk_widget_show (data->row); + gtk_widget_set_visible (data->row, TRUE); gtk_list_box_select_row (GTK_LIST_BOX (listbox), GTK_LIST_BOX_ROW (data->row)); gtk_widget_grab_focus (data->row); |