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:
committed by
Geoffrey D. Bennett
parent
fb3429ba6c
commit
2936f110be
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user