Skip to content

Replace all occurrences of 'gtk_widget_show' and 'gtk_widget_hide'

Maksym Hazevych requested to merge mks-h/gnome-control-center:no_show into main

Replace all occurrences of deprecated gtk_widget_show and gtk_widget_hide with gtk_widget_set_visible.

P.S. This is the script used:

for file in `find $1 -name '*.c' -type f`
do
	sed -E -i \
		's/gtk_widget_hide\ ?\((.*)\);/gtk_widget_set_visible (\1, FALSE);/gi' \
	"$file"
done

To replace show variant, edit hide and FALSE accordingly

Edited by Maksym Hazevych

Merge request reports