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

@@ -24,7 +24,7 @@ GtkWidget *create_window_iface_none(GtkApplication *app) {
GTK_APPLICATION_WINDOW(w), TRUE
);
add_window_action_map(GTK_WINDOW(w));
gtk_widget_show(w);
gtk_widget_set_visible(w, TRUE);
return w;
}