GTK3: replace deprecated gtk_widget_get_state