Replace deprecated gtk_widget_{show,hide} calls

The replacement, gtk_widget_set_visible(), is available since 2.18.
There is some code duplication in menu.c that could eventually be
unified.
This commit is contained in:
fenugrec
2023-11-16 17:42:43 -05:00
committed by Geoffrey D. Bennett
parent fb3429ba6c
commit 2936f110be
4 changed files with 13 additions and 28 deletions

View File

@@ -67,7 +67,7 @@ void create_card_window(struct alsa_card *card) {
GTK_WINDOW(card->window_main),
card->window_main_contents
);
gtk_widget_show(card->window_main);
gtk_widget_set_visible(card->window_main, TRUE);
}
void create_no_card_window(void) {